- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Refresh buffer cache
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 03:36 AM
11-11-2003 03:36 AM
Refresh buffer cache
I'm doing a performance test on a superdome's partition, i want to refresh the buffer cache everytime my process stop to work.
Can i do this operation?
Regards
Maurizio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 03:37 AM
11-11-2003 03:37 AM
Re: Refresh buffer cache
sync; sync; sync
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 03:41 AM
11-11-2003 03:41 AM
Re: Refresh buffer cache
the command to use is
sync
Do it several times to completely flush the buffer cache.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 03:49 AM
11-11-2003 03:49 AM
Re: Refresh buffer cache
If so, the sync won't help much, in that the data in cache won't change.
What you can try is do a massive i/o of unrelated data before you start your test, to load cache with 'new' data.
Then when you start your test, the system will have to go to disk to get this 'new' test data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 05:05 AM
11-11-2003 05:05 AM
Re: Refresh buffer cache
Through sar command i see that the %wcache and %rcache statistics are the same, before and after sync!
I've modified the kernel parametes 'dbc_min' and 'dbc_max', min to 5 and max to 50.
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.
Someone tells me that the buffer cache is on the disk!!!!!
Is it real?
Thanks
Maurizio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 05:20 AM
11-11-2003 05:20 AM
Re: Refresh buffer cache
You should reduce them down.
You can mount your filesystem with convosync=direct, and mincache=direct to bypass the OS buffer cache entirely.
Or you could run a memory hogging program to reduce the cache way down to almost nothing after it builds up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 05:25 AM
11-11-2003 05:25 AM
Re: Refresh buffer cache
I'm not fully understanding what you're trying to do.
If you want to fully flush the cache of all entries for a specific filesystem, then you have to do the following
1)unmount filesystem
2)issue multiple sync commands - 3 one after the other ought to do it.
3)mount filesystem
Now, having the buffer max % at 50% is a huge waste & depending on installed RAM on this system you may want to bring this way down.
The only other thing you can do to manipulate the cache buffer would be to adjust the sync interval
/usr/sbin/syncer XX
where XX=seconds - default is 30.
But this is *not* recommended unless you're having performance issues as it could cause issues by itself.
Other thing that could be done is to bypass the buffer cache with mount options such as
convosync=direct
mincache=direct
then the buffer cache would not be used for this filesystem.
I think you need to more fully explain just *what* it is you're trying to accomplish.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 05:42 AM
11-11-2003 05:42 AM
Re: Refresh buffer cache
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.
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.
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.
You don't really get to "refresh" the cache. It gets loaded with fresh data every time 'new' data is requested.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 05:44 AM
11-11-2003 05:44 AM
Re: Refresh buffer cache
The person that had request this wasn't enought clear to explain what he want and what he done.
Sorry to all and thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 06:01 AM
11-11-2003 06:01 AM
Re: Refresh buffer cache
Rgds,
Jeff