<?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: Refresh buffer cache in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116248#M149840</link>
    <description>Hi Maurizio,&lt;BR /&gt;&lt;BR /&gt;the command to use is&lt;BR /&gt;&lt;BR /&gt;sync&lt;BR /&gt;&lt;BR /&gt;Do it several times to completely flush the buffer cache.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
    <pubDate>Tue, 11 Nov 2003 11:41:55 GMT</pubDate>
    <dc:creator>Jeff Schussele</dc:creator>
    <dc:date>2003-11-11T11:41:55Z</dc:date>
    <item>
      <title>Refresh buffer cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116246#M149838</link>
      <description>Hi guys,&lt;BR /&gt;I'm doing a performance test on a superdome's partition, i want to refresh the buffer cache everytime my process stop to work.&lt;BR /&gt;Can i do this operation?&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;Maurizio</description>
      <pubDate>Tue, 11 Nov 2003 11:36:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116246#M149838</guid>
      <dc:creator>Maurizio Fulli</dc:creator>
      <dc:date>2003-11-11T11:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh buffer cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116247#M149839</link>
      <description>To flush the buffer cache to disk do;&lt;BR /&gt;&lt;BR /&gt;sync; sync; sync&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Nov 2003 11:37:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116247#M149839</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2003-11-11T11:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh buffer cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116248#M149840</link>
      <description>Hi Maurizio,&lt;BR /&gt;&lt;BR /&gt;the command to use is&lt;BR /&gt;&lt;BR /&gt;sync&lt;BR /&gt;&lt;BR /&gt;Do it several times to completely flush the buffer cache.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 11 Nov 2003 11:41:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116248#M149840</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-11-11T11:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh buffer cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116249#M149841</link>
      <description>It sounds like you want to remove the data from the cache in order to do some perfomance testing, to ensure that you're testing disk performance more than cache perfomance.&lt;BR /&gt;If so, the sync won't help much, in that the data in cache won't change.&lt;BR /&gt;&lt;BR /&gt;What you can try is do a massive i/o of unrelated data before you start your test, to load cache with 'new' data.&lt;BR /&gt;&lt;BR /&gt;Then when you start your test, the system will have to go to disk to get this 'new' test data.</description>
      <pubDate>Tue, 11 Nov 2003 11:49:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116249#M149841</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-11-11T11:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh buffer cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116250#M149842</link>
      <description>ok i've tried to use this command (sync) but it doesn't seems to have effect.&lt;BR /&gt;Through sar command i see that the %wcache and  %rcache statistics are the same, before and after sync!&lt;BR /&gt;I've modified the kernel parametes 'dbc_min' and 'dbc_max', min to 5 and max to 50.&lt;BR /&gt;I want to know how the O.S. refresh the cache after a couple of processes finish to work, and if it is possible to set a timeout.&lt;BR /&gt;Someone tells me that the buffer cache is on the disk!!!!!&lt;BR /&gt;Is it real?&lt;BR /&gt;Thanks&lt;BR /&gt;Maurizio&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Nov 2003 13:05:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116250#M149842</guid>
      <dc:creator>Maurizio Fulli</dc:creator>
      <dc:date>2003-11-11T13:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh buffer cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116251#M149843</link>
      <description>dbc_max defaults to 50, and dbc_min defaults to 5. BC is not on disk, it's a memory region.&lt;BR /&gt;&lt;BR /&gt;You should reduce them down. &lt;BR /&gt;&lt;BR /&gt;You can mount your filesystem with convosync=direct, and mincache=direct to bypass the OS buffer cache entirely. &lt;BR /&gt;&lt;BR /&gt;Or you could run a memory hogging program to reduce the cache way down to almost nothing after it builds up.</description>
      <pubDate>Tue, 11 Nov 2003 13:20:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116251#M149843</guid>
      <dc:creator>Kevin Wright</dc:creator>
      <dc:date>2003-11-11T13:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh buffer cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116252#M149844</link>
      <description>Hi (again) Maurizio,&lt;BR /&gt;&lt;BR /&gt;I'm not fully understanding what you're trying to do.&lt;BR /&gt;&lt;BR /&gt;If you want to fully flush the cache of all entries for a specific filesystem, then you have to do the following&lt;BR /&gt;&lt;BR /&gt;1)unmount filesystem&lt;BR /&gt;2)issue multiple sync commands - 3 one after the other ought to do it.&lt;BR /&gt;3)mount filesystem&lt;BR /&gt;&lt;BR /&gt;Now, having the buffer max % at 50% is a huge waste &amp;amp; depending on installed RAM on this system you may want to bring this way down.&lt;BR /&gt;&lt;BR /&gt;The only other thing you can do to manipulate the cache buffer would be to adjust the sync interval&lt;BR /&gt;/usr/sbin/syncer XX&lt;BR /&gt;where XX=seconds - default is 30.&lt;BR /&gt;But this is *not* recommended unless you're having performance issues as it could cause issues by itself.&lt;BR /&gt;&lt;BR /&gt;Other thing that could be done is to bypass the buffer cache with mount options such as &lt;BR /&gt;convosync=direct&lt;BR /&gt;mincache=direct&lt;BR /&gt;then the buffer cache would not be used for this filesystem.&lt;BR /&gt;&lt;BR /&gt;I think you need to more fully explain just *what* it is you're trying to accomplish.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 11 Nov 2003 13:25:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116252#M149844</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-11-11T13:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh buffer cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116253#M149845</link>
      <description>An overview of cache:&lt;BR /&gt;When a disk i/o is performed, Unix looks in the buffer cache (memory) first for the data. If not there then unix gets the data from disk, uloads / erases from cache the least recently used data, and loads the new data into buffer cache. If you keep using this particular piece of data, it will stay in cache.&lt;BR /&gt;&lt;BR /&gt;Unix periodically looks at the cache, ( by default, every 30 seconds) to see if this data has changed since it was last written to disk. If so, it is written to disk. &lt;BR /&gt;&lt;BR /&gt;You can configure the period between flushes, (sync) and the amount of time since the data changed required before writting out to disk,(default I think is 10 seconds?) Altering this 2nd parameter could be usefull when altering the same block of data often the data.&lt;BR /&gt;&lt;BR /&gt;You don't really get to "refresh" the cache. It gets loaded with fresh data every time 'new' data is requested.&lt;BR /&gt;</description>
      <pubDate>Tue, 11 Nov 2003 13:42:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116253#M149845</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-11-11T13:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh buffer cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116254#M149846</link>
      <description>Sorry, but the specific request is how to refresh the Emc's buffer cache.&lt;BR /&gt;The person that had request this wasn't enought clear to explain what he want and what he done.&lt;BR /&gt;Sorry to all and thanks.</description>
      <pubDate>Tue, 11 Nov 2003 13:44:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116254#M149846</guid>
      <dc:creator>Maurizio Fulli</dc:creator>
      <dc:date>2003-11-11T13:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh buffer cache</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116255#M149847</link>
      <description>OK then, there is no way for the host to control EMC cache policies. This is normally done by the Admin for the Array &amp;amp; would, I assume, using the EMC utilities - but I'm not positive.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Tue, 11 Nov 2003 14:01:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/refresh-buffer-cache/m-p/3116255#M149847</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2003-11-11T14:01:27Z</dc:date>
    </item>
  </channel>
</rss>

