<?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: memory (cache in Filesystem) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193096#M165124</link>
    <description>Hi (again) Carmen,&lt;BR /&gt;&lt;BR /&gt;As usual - it depends...&lt;BR /&gt;&lt;BR /&gt;On whether nbuf &amp;amp; bufpages are non-zero. IF they are they take precedent &amp;amp; you'll have a fixed size buffer cache determined by the bufpages value.&lt;BR /&gt;&lt;BR /&gt;IF the *are* zero AND you're under memory pressure then 10% would be "better" than 15%.&lt;BR /&gt;I've found the "sweet spot" for buffer cache to be between 400 &amp;amp; 800MB - But that's just my opinion others may vary. &lt;BR /&gt;SO if you have between 4 &amp;amp; 8GB of system memory than 10% would be good....&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
    <pubDate>Mon, 16 Feb 2004 10:51:19 GMT</pubDate>
    <dc:creator>Jeff Schussele</dc:creator>
    <dc:date>2004-02-16T10:51:19Z</dc:date>
    <item>
      <title>memory (cache in Filesystem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193090#M165118</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to know, how may S.O. memory used for cache in FileSystem.&lt;BR /&gt;How it is defined and how it can changed?, maybe in the kernel?? It's possible??&lt;BR /&gt;&lt;BR /&gt;Thanks!,&lt;BR /&gt;Carmen.</description>
      <pubDate>Mon, 16 Feb 2004 10:19:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193090#M165118</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2004-02-16T10:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: memory (cache in Filesystem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193091#M165119</link>
      <description>Hi Carmen,&lt;BR /&gt;&lt;BR /&gt;Disk buffer cache is allocated:&lt;BR /&gt;&lt;BR /&gt;Dynamically - using dbc_max_pct &amp;amp; dbc_min_pct kernel parameters defing maximum &amp;amp; minimum amount fo system memory.&lt;BR /&gt;&lt;BR /&gt;Fixed amount - using bufpages &amp;amp; nbuf kernel paramters where the former is the number of buffer pages &amp;amp; the latter is the number of buffer cache headers.&lt;BR /&gt;&lt;BR /&gt;Setting *both* nbuf &amp;amp; bufpages to zero enables the dynamic. Setting any values other than zero enable the fixed size buffer cache.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 16 Feb 2004 10:28:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193091#M165119</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-02-16T10:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: memory (cache in Filesystem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193092#M165120</link>
      <description>Carmen,&lt;BR /&gt;&lt;BR /&gt;If I'm reading you correctly, these excerpts from SAM's help on configurable kernel parameters may help:&lt;BR /&gt;&lt;BR /&gt;"Allocating system physical memory resources for file system buffer cache space. Includes the&lt;BR /&gt;                     dynamic buffer allocation parameters dbc_min_pct and dbc_max_pct , and the static buffer&lt;BR /&gt;                     allocation parameters bufpages and nbuf ."&lt;BR /&gt;&lt;BR /&gt;" bufpages interacts with XYX as follows: &lt;BR /&gt;&lt;BR /&gt;   * bufpages = 0, nbuf = 0: Enables dynamic buffer cache. &lt;BR /&gt;&lt;BR /&gt;   * bufpages not zero, nbuf = zero: Creates bufpages/2 buffer headers and allocates (bufpages x4 Kbytes) of buffer&lt;BR /&gt;     pool space at system boot time. &lt;BR /&gt;&lt;BR /&gt;   * bufpages = 0, nbuf not zero: Allocates nbuf*2 pages of buffer pool space and creates nbuf headers at boot time.. &lt;BR /&gt;&lt;BR /&gt;   * bufpages not 0, nbuf not zero: Allocates bufpages pages of buffer pool space and creates nbuf buffer headers at&lt;BR /&gt;     boot time. If the two values conflict such that it is impossible to configure a system using both of them, bufpages takes&lt;BR /&gt;     precedence. &lt;BR /&gt;&lt;BR /&gt; bufpages controls how much actual memory is allocated to the buffer pool. See nbuf. &lt;BR /&gt;&lt;BR /&gt; If bufpages is zero at system boot time, the system allocates two pages for every buffer header defined by nbuf. If &lt;BR /&gt; bufpages and nbuf are both zero, the system enables dynamic buffer cache allocation and allocates a percentage of&lt;BR /&gt; available memory not less than dbc_min_pct nor more than dbc_max_pct , depending on system needs at any given&lt;BR /&gt; time. &lt;BR /&gt;The maximum amount of memory that can be allocated to the buffer pool is also affected by the amount of memory allocated&lt;BR /&gt; to the system for other purposes. Thus, modifying parameters that affect system memory may also affect the maximum&lt;BR /&gt; amount of memory can be made available to the buffer pool. "&lt;BR /&gt;&lt;BR /&gt;"During file-system I/O operations, data is stored in a buffer cache, the size of which can be fixed or dynamically allocated.&lt;BR /&gt; When the parameters bufpages and nbuf are both set to their default value of 0, the size of the buffer cache grows or&lt;BR /&gt; shrinks dynamically, depending on competing requests for system memory. &lt;BR /&gt;&lt;BR /&gt; The value of dbc_min_pct specifies the minimum percentage of physical memory that is reserved for use by the dynamic&lt;BR /&gt; buffer cache. &lt;BR /&gt;&lt;BR /&gt; It is possible to set both dbc_min_pct and dbc_max_pct to the same value, 12 for example, and create a kernel that&lt;BR /&gt; uses exactly that percentage of physical memory for the buffer cache, regardless of the size of physical memory. "&lt;BR /&gt;&lt;BR /&gt;"When the parameters bufpages and nbuf are both set to their default value of 0, the size of the buffer cache grows or&lt;BR /&gt; shrinks dynamically, depending on competing requests for system memory. &lt;BR /&gt;&lt;BR /&gt; The value of dbc_max_pct sets the maximum percentage of physical memory that can be allocated to the dynamic buffer&lt;BR /&gt; cache. &lt;BR /&gt;&lt;BR /&gt; It is possible to set both dbc_max_pct and dbc_min_pct to the same value, 12 for example, and create a kernel that&lt;BR /&gt; uses exactly that percentage of physical memory for the buffer cache, regardless of the size of physical memory. "&lt;BR /&gt;&lt;BR /&gt;"This parameter is for backwards compatibility and should be set to zero because dynamic buffer cache is preferred. See &lt;BR /&gt; Configurable File-System Buffer Parameters and Overview of File-System Configurable Parameters for more information. &lt;BR /&gt; If set to a non-zero value, nbuf specifies the number of buffer headers to be allocated for the file system buffer-cache. Each&lt;BR /&gt; buffer is allocated 4096 bytes of memory unless overridden by a conflicting value for bufpages. &lt;BR /&gt;&lt;BR /&gt; If nbuf is set to a non-zero value that is less than 16 or greater than the maximum supported by the system, or to a value&lt;BR /&gt; that is inconsistent with the value of bufpages, the number will be increased or decreased as appropriate, and a message&lt;BR /&gt; printed at boot time. "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 16 Feb 2004 10:32:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193092#M165120</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-02-16T10:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: memory (cache in Filesystem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193093#M165121</link>
      <description>Hi Carmen,&lt;BR /&gt;&lt;BR /&gt;By default 50% of the memory is configured to be used as buffer cache. It may grow|shrink over a period of time but to a maximum of 50% of the memory. If you changed the default settings, then you can run&lt;BR /&gt;&lt;BR /&gt;#kmtune -l -q dbc_max_pct &lt;BR /&gt;#kmtune -l -q dbc_min_pct&lt;BR /&gt;#kmtune -l -q nbuf&lt;BR /&gt;#kmtune -l -q bufpages&lt;BR /&gt;&lt;BR /&gt;If nbuf and bufpages are 0 above, then you have dynamic buffer caching in effect. At any point of time you could see a minimum of dbc_min_pct as your buffer cache. &lt;BR /&gt;&lt;BR /&gt;You can get the usage better from glance's "m" window. You can alter the settings by changing dbc_max_pct and min_pct values. &lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Feb 2004 10:32:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193093#M165121</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-16T10:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: memory (cache in Filesystem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193094#M165122</link>
      <description>Thanks Jef!!,&lt;BR /&gt;I have in a model 9000/800/N4000-75&lt;BR /&gt;/&amp;gt;&lt;BR /&gt;kmtune |grep dbc&lt;BR /&gt;dbc_max_pct          15&lt;BR /&gt;dbc_min_pct          5&lt;BR /&gt;&lt;BR /&gt;Is it high value?, I could change maybe dbc_max_pct to 10???&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Feb 2004 10:40:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193094#M165122</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2004-02-16T10:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: memory (cache in Filesystem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193095#M165123</link>
      <description>How much RAM do you have in your machine?  The 15 value is in percent, so the max will be 15% of the amount of RAM you have.</description>
      <pubDate>Mon, 16 Feb 2004 10:47:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193095#M165123</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-02-16T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: memory (cache in Filesystem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193096#M165124</link>
      <description>Hi (again) Carmen,&lt;BR /&gt;&lt;BR /&gt;As usual - it depends...&lt;BR /&gt;&lt;BR /&gt;On whether nbuf &amp;amp; bufpages are non-zero. IF they are they take precedent &amp;amp; you'll have a fixed size buffer cache determined by the bufpages value.&lt;BR /&gt;&lt;BR /&gt;IF the *are* zero AND you're under memory pressure then 10% would be "better" than 15%.&lt;BR /&gt;I've found the "sweet spot" for buffer cache to be between 400 &amp;amp; 800MB - But that's just my opinion others may vary. &lt;BR /&gt;SO if you have between 4 &amp;amp; 8GB of system memory than 10% would be good....&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 16 Feb 2004 10:51:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193096#M165124</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-02-16T10:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: memory (cache in Filesystem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193097#M165125</link>
      <description>I,&lt;BR /&gt;&lt;BR /&gt;I have 4Gb!!, then 15% is 629145Kb. Is it correct?&lt;BR /&gt;Thanks!,</description>
      <pubDate>Mon, 16 Feb 2004 10:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193097#M165125</guid>
      <dc:creator>Carme Torca</dc:creator>
      <dc:date>2004-02-16T10:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: memory (cache in Filesystem)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193098#M165126</link>
      <description>Carmen,&lt;BR /&gt;&lt;BR /&gt;That's another "it depends" question.  The only way to be sure, is to tune the amount of cache downward and monitor (through Glance or sar) your cache hits.  As long as the number of cache hits remains high (in the upper 90% range), you can keep tuning buffer cache downward.  When the hit ration starts to drop, you've gone too far!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 16 Feb 2004 11:00:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/memory-cache-in-filesystem/m-p/3193098#M165126</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2004-02-16T11:00:02Z</dc:date>
    </item>
  </channel>
</rss>

