- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Clearing and Releasing 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-29-2000 12:40 PM
11-29-2000 12:40 PM
Clearing and Releasing Buffer Cache
Is there a utility to force release of buffer cache, thus clearing its contents giving a realistic reading of actual memory in use? We're trying to troubleshoot some memory leaks in code.
Thanks,
Chuck Lackey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2000 01:00 PM
11-29-2000 01:00 PM
Re: Clearing and Releasing Buffer Cache
Use the ipcs command to get the info needed and then you can remove via ipcrm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2000 01:06 PM
11-29-2000 01:06 PM
Re: Clearing and Releasing Buffer Cache
I agree with Rick's suggestion. You might also try 'sync', although I'm not sure that this is going to actually free memory if there is no pressure to overlay.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2000 09:33 PM
11-29-2000 09:33 PM
Re: Clearing and Releasing Buffer Cache
It appears that you will need to retune the kernel a little bit in order to prevent buffer cache from growing this large during your testing. The default kernel sets up the minimum buffer cache at 10% (dbc_min_pct) and can normally grow up to 50% (dbc_max_pct). I hope this is a test machine. I would reset these to allow enough room for your core processes, recompile the kernel and reboot. Your not talking about anything time consuming here - ten minutes to rebuild plus boot time. After you are done, save this kernel setup for future testing and move back the old one and reboot again.
I don't have Glance documentation handy, but I believe the metrics are there to track buffer cache utilization along with the memory eaten up by your problem processes. GUI Glance (gpm) is excellent when it comes to monitoring individual processes and their resource needs.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2000 08:03 AM
11-30-2000 08:03 AM
Re: Clearing and Releasing Buffer Cache
Also, you should keep an eye on your virtual memory pagout activities. Use vmstat to indicate to you if you are at the point of deactivating processes and swapping out pages of memory.
If your trying to detect memory leaks, what would help is to use the process list window of Glance and view the "Res Memory" and the "Virtual memory" fileds of your processes. This would indicate which processes may have a memory leak. If there was a memory leak, you would see the values increasing.
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2000 08:12 AM
11-30-2000 08:12 AM
Re: Clearing and Releasing Buffer Cache
Its very usual dbc_max_pct to be 50% of memory.
Reconfigure your kernel
dbc_max_pct=10# or 5, depending on your memory size ( 1Gb * 50% = 500Mb of memory cache).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2000 08:58 AM
11-30-2000 08:58 AM
Re: Clearing and Releasing Buffer Cache
Check the following url:
http://www.docs.hp.com//hpux/onlinedocs/os/KCparams.OverviewAll.html
Configurable File System Buffer-Cache Parameters:
bufpages
Pages of static buffer cache
dbc_min_pct
Minimum dynamic buffer cache
dbc_max_pct
Maximum dynamic buffer cache
nbuf
Number of static buffer headers
When you've a Database, like Oracle, I would recommend to make use of Dynamic Buffer Cache.
Bring dbc_max_pct and dbc_min_pct close or equal to each other (5 ; 2 %)
Make nbuf and bufpages 0.
This is all described in the url above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2000 09:06 AM
11-30-2000 09:06 AM
Re: Clearing and Releasing Buffer Cache
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2000 04:25 AM
12-01-2000 04:25 AM
Re: Clearing and Releasing Buffer Cache
are mounted too. You can play with buffering
parameter here too.
Bill
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2000 12:06 PM
12-02-2000 12:06 PM