<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Buffer Cache in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475418#M17397</link>
    <description>Thomas:&lt;BR /&gt;&lt;BR /&gt;I might add that on a 10.20 server with 1GB memory and and application that doesn't use a database engine, my dbc_min_pct=25 and dbc_max_pct=50.&lt;BR /&gt;&lt;BR /&gt;The "downside" on larger memory systems would be the time and amount of work that the syncer daemon would take flushing the buffer cache.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 19 Dec 2000 16:37:22 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2000-12-19T16:37:22Z</dc:date>
    <item>
      <title>Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475410#M17389</link>
      <description>I was told (by HP) several years ago, that it was not good to have more than 3-400MB of buffer cache.   Common sense tells me that it would be best to use all available memory as buffer cache.  In fact, this is the model that Solaris uses.   &lt;BR /&gt;&lt;BR /&gt;Can I get your feedback on the use of buffer cache in HP-UX?  Are there drawbacks to having 4GB (or more) of buffer cache, on a system with 8GB of RAM, assuming that memory demands are fairly low?  &lt;BR /&gt;&lt;BR /&gt;Any feedback/experiences are welcome.  Thanks for your help.</description>
      <pubDate>Tue, 19 Dec 2000 16:02:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475410#M17389</guid>
      <dc:creator>Thomas J. Harrold</dc:creator>
      <dc:date>2000-12-19T16:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475411#M17390</link>
      <description>buffer cache up to 500MB is sufficient for most configurations.&lt;BR /&gt;On a system with 8GB memory i'd set the kernel parameter:&lt;BR /&gt;&lt;BR /&gt;dbc_max_pct     10</description>
      <pubDate>Tue, 19 Dec 2000 16:07:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475411#M17390</guid>
      <dc:creator>Rainer_1</dc:creator>
      <dc:date>2000-12-19T16:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475412#M17391</link>
      <description>Hi Thomas,&lt;BR /&gt;&lt;BR /&gt;To set buffer cache dynamic within 10% of dbc_min_pct(value=10) and 50% of dbc_max_pct(value=50). Set bufpages and nbuf to zero. Also set swapmem_on=1 to get 75% of Physical memory for pseudo memory. These changes in jernel will require a system reboot.&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Dec 2000 16:14:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475412#M17391</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-12-19T16:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475413#M17392</link>
      <description>Let me clarify...I understand the buffer cache concepts, and I know how to set and tune the buffer cache.  I am asking about best practices.  I need to know if a "maximum recommended" amount of buffer cache still exists, and if so, why.</description>
      <pubDate>Tue, 19 Dec 2000 16:20:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475413#M17392</guid>
      <dc:creator>Thomas J. Harrold</dc:creator>
      <dc:date>2000-12-19T16:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475414#M17393</link>
      <description>I feel it depends on the application you are running. I have set up a system with 1Gb memory running a database application with dbc_max_pct=50 (max 500Mb) and all that happened was if memory got  a bit tight the OS would reduce the amount of buffer cache it was using.  For a system with 8Gb of memory, I would be inlined to agree with Rainer and keep dbc_max_pct to 10 possibly 20 maximum.</description>
      <pubDate>Tue, 19 Dec 2000 16:22:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475414#M17393</guid>
      <dc:creator>John Waller</dc:creator>
      <dc:date>2000-12-19T16:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475415#M17394</link>
      <description>Thomas:&lt;BR /&gt;&lt;BR /&gt;I see no reason not to allocaate the buffer cache as you see fit if you are doing IO via LVM and a database engine isn't already managing buffering. If you have an excess of memory, you can eliminate a large fraction of physical IO by setting dbc_min_pct and dbc_max_pct a fairly large percentage.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 19 Dec 2000 16:23:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475415#M17394</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-12-19T16:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475416#M17395</link>
      <description>You can check the bufpages value now from sysdef or use adb (echo "bufpages/D"| adb /stand/vmunix /dev/mem)</description>
      <pubDate>Tue, 19 Dec 2000 16:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475416#M17395</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-12-19T16:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475417#M17396</link>
      <description>As I posted earlier, you can check the bufpages value now from sysdef or use adb (echo "bufpages/D"| adb /stand/vmunix /dev/mem).&lt;BR /&gt;It will be a good idea to keep dbc_max_pct at 25% so as not to put more load on the system while deactivating or flushing the buffer cache.</description>
      <pubDate>Tue, 19 Dec 2000 16:33:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475417#M17396</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-12-19T16:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475418#M17397</link>
      <description>Thomas:&lt;BR /&gt;&lt;BR /&gt;I might add that on a 10.20 server with 1GB memory and and application that doesn't use a database engine, my dbc_min_pct=25 and dbc_max_pct=50.&lt;BR /&gt;&lt;BR /&gt;The "downside" on larger memory systems would be the time and amount of work that the syncer daemon would take flushing the buffer cache.&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 19 Dec 2000 16:37:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475418#M17397</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2000-12-19T16:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475419#M17398</link>
      <description>Hi Thomas,&lt;BR /&gt;&lt;BR /&gt;The "maximum recommended" value does not exist. It is a general consensus in this forum.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Tue, 19 Dec 2000 17:33:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475419#M17398</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-12-19T17:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475420#M17399</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;i have a few large systems with 24 gig of memory.  I too have been told conflicting reports on the "best practice" of buffer cache.  I was told to keep it under 1 gig.  however, i think that may have been the "old way" of thinking.  Now, I have it set around 1.5 gig, and the system runs great.  in fact, i may decide to increase it.  Basically, in my opinion, if you have the downtime available to you to make these changes, i would just play around untill it looks good to you and more importantly, your users.  &lt;BR /&gt;&lt;BR /&gt;One piece of advice though, is to keep the min and max values the same.  especially when you get into the larger formulas.  that way the system isnt bothered with trying to be too dynamic.&lt;BR /&gt;&lt;BR /&gt;Matt</description>
      <pubDate>Tue, 19 Dec 2000 22:00:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475420#M17399</guid>
      <dc:creator>Matt Walls</dc:creator>
      <dc:date>2000-12-19T22:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475421#M17400</link>
      <description>Here are a few recommendations from real world experiences:&lt;BR /&gt;&lt;BR /&gt;1. The buffer cache defaults are way out of whack for systems with large RAM (more than 4Gb).  Having a buffer cache set to 5% to 50% just doesn't make a lot of sense.  A 4Gb system with 2000 megs of buffer cache is overkill.  Start with a range of 200 to 1500 megs of RAM.&lt;BR /&gt;&lt;BR /&gt;2. Now adjust the maximum buffer cache to match your system.  Start with RAM: for small RAM systems (less than 500 megs), make the buffer cache about 5-10% of RAM.  If your applications are swapping a lot, it's time for a lot more RAM (multiple Gb).&lt;BR /&gt;&lt;BR /&gt;3. Now 200 megs is probably fine for most systems with a read/write ratio of 50% or so. Writing is the biggest issue--when continuous writes are taking place, the buffere cache manager will have a lot of work to do in kernel mode to flush these requests out to the disk.  These will be bursts of activity every time the syncer runs and if the data stream is fairly steady, the buffer cache should be smaller.  Note that a fast system (CPU + I/O + disk) can tolerate a bigger cache with heavy writes.&lt;BR /&gt;&lt;BR /&gt;4. For systems that perform lots of reads (more than 60%), a large buffer cache is good, the bigger the better up to a couple of gigabytes.&lt;BR /&gt;&lt;BR /&gt;5. For Oracle, the rules change a bit. Your DBA can change the Oracle SGA to perform high levels of data caching, so a big buffer cache means double buffering...a waste of RAM.  To avoid this and to take advantage of Oracle's data cache, you need to disable the buffer cache for Oracle data volumes.  This can only be done with Advanced JFS options on vxfs filesystems:&lt;BR /&gt;&lt;BR /&gt;convosync=direct,mincache=direct,nodatainlog&lt;BR /&gt;&lt;BR /&gt;Use these options on Oracle data disks only. Don't use them on rollback logs, archives, etc.&lt;BR /&gt;&lt;BR /&gt;6. The buffer cache is only effective for filesystems--it has no effect on raw disk access.</description>
      <pubDate>Tue, 19 Dec 2000 22:37:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475421#M17400</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2000-12-19T22:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Buffer Cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475422#M17401</link>
      <description>The buffer cache is used for synchronous file-system disk writes. This means that if you (or your applications) are doing lots of raw I/O, or asynchronous I/O, you have little need for buffer cache. If you are doing lots of synchronous file system disk writes, then you have to balance buffer cache with other performance considerations and come up&lt;BR /&gt;with something that makes sense for your system. Sometimes, coming up with this value takes a little bit of playing, testing, and gut feel. &lt;BR /&gt;I would recommend that you start by setting your "dbc_max_pct" to about 10%&lt;BR /&gt;of memory.&lt;BR /&gt;If you then run sar -b, it will show you your buffer cache hit rate.&lt;BR /&gt;A great rate is about 95% for reads, 75% for writes, but rarely will a system hit that. For example, you won't hit a rate that high if&lt;BR /&gt;you do lots of raw I/O, or a lot of metadata LVM queueing.&lt;BR /&gt;&lt;BR /&gt;If you fave a XP, EMC or Autoraid connected to the system, it's recommended to lower the dbc_max_pct, because on those diskfarms there are loads of Cache. So why stressing the resources on the system.&lt;BR /&gt;&lt;BR /&gt;Check the following url:&lt;BR /&gt;&lt;A href="http://docs.hp.com//hpux/onlinedocs/os/KCparam.FilesysParmsOverview.html" target="_blank"&gt;http://docs.hp.com//hpux/onlinedocs/os/KCparam.FilesysParmsOverview.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Dec 2000 10:43:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/buffer-cache/m-p/2475422#M17401</guid>
      <dc:creator>Darrel Louis</dc:creator>
      <dc:date>2000-12-21T10:43:21Z</dc:date>
    </item>
  </channel>
</rss>

