- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Clear FileSystem Cache in Memory
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
09-26-2004 10:11 AM
09-26-2004 10:11 AM
Clear FileSystem Cache in Memory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2004 10:51 AM
09-26-2004 10:51 AM
Re: Clear FileSystem Cache in Memory
If you are talking about buffer cache, then the use of 'sync' command writes all the modified buffers to the disk. You don't need to run 'sync' directly either as commands like bdf/df will run it themselves.
Unmounting the filesystem is not required to flush the cache.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2004 11:05 AM
09-26-2004 11:05 AM
Re: Clear FileSystem Cache in Memory
Once the buffer cache is as small as it can get, stop the extra processes and start your test. Note that there is no way to flush the cache for a specific filesystem without a umount.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2004 11:27 AM
09-26-2004 11:27 AM
Re: Clear FileSystem Cache in Memory
Once the modified buffers are flushed, then whatever is sitting in the buffer cache related to the filesystem is irrelavent unless there is activity on the filesystem. I also do not think even unmouting the filesystem will completely wipe away all it's buffers from the buffer cache immediately. They will be gradually overwritten by other activity over the time.
I agree that it is just waste of memory. So, I just dedicate some memory (around min 50-100 and max 400-600MB) depending on the OS and do not bother about it. It will be a overkill if you haven't modified your default dbc_max_pct kernel parameter.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 06:31 AM
09-27-2004 06:31 AM
Re: Clear FileSystem Cache in Memory
My HP System
HP N4000(RP-7400) 8-way 650MHz 8GB RAM
dbc_max_pct = 50
dbc_min_pct = 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 07:07 AM
09-27-2004 07:07 AM
Re: Clear FileSystem Cache in Memory
If you know the routines which system uses by doing it, you can use them too. Example using some system call or OS routines, you should be able to acheive it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 07:12 AM
09-27-2004 07:12 AM
Re: Clear FileSystem Cache in Memory
I can't think of anyway to do it if your intention is not to use 'buffer cache'. Once the filesystem is unmounted, then the blocks corresponding to buffer cache will become invalid and will be overwritten subsequently. After mounting the filesystem, any subsequent reads/writes will make new mappings in the buffer cache. That's my understanding.
So, I believe you have to use unmount/mount process to ensure that you are not using buffer cache.
However, if these are VxFS filesystems, one idea may be to try OnlineJFS's mincache=direct, convosync=direct options. This way, buffer cache will be completely bypassed ensuring that your application effectively reads from the disks.
As Bill indicated, you can flood the buffer cache with random reads and writes from different filesystems but that cannot make it 100% though.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 07:51 AM
09-27-2004 07:51 AM
Re: Clear FileSystem Cache in Memory
With Glance or PerfView you can see how much space the Data Buffer Cache currently
allocates
There's no way to do this in 11.0 -- the necessary interfaces weren't added
until 11i.
_____________________________________________
It is recommended to leave nbuf and buff pages at 0.
If you absolutely want to change a parameter (if you have
many programs running and the system is running too slow)
you may want to experiment with the:
DBC_MAX_PCT = 50% (by default)
DBC_MIN_PCT = 5% (by default)
Start at 40% for the data buffer cache maximum percentage
or DBC_MAX_PCT. If running really huge programs that are CPU
intensive, you want to decrease the DBC_MAX_PCT because you
want memory for programs and not for buffers.
regards
Shine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2004 06:18 PM
09-27-2004 06:18 PM
Re: Clear FileSystem Cache in Memory
Then cheat and do a backup and populate the cache with the "cache populate backup". Then I would do my test backup. This should of course be done always on quiescient times on the machine as machine activity will directly influence you results.
Also make sure if you are talking to a disk array for the data that that is also quiescient when doing the backups as the values gleaned from the benchmarks can be severely skewed and erratic when doing it on a busy array.
Now off course benchmarks is never a definitive test ... this si just yet another curveball.
Sorry bout the rant ;), about a lot of things you prolly already have taken into account.
Regards
Gerhard