- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- buffer cache goes up, swap usage, then no free mem
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
Discussions
Discussions
Forums
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
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
тАО02-26-2004 01:58 AM
тАО02-26-2004 01:58 AM
buffer cache goes up, swap usage, then no free mem
The swapping caused 20 second hangs every ten minutes.
I have reduced buffercache to 20-20% and now I do not do any swapping. No more hangs.
However, I now have 20% free memory at peaks times. It seems that it could be utilised as buffercache, but as it doesn't reduce quickly, AND causes swapping I am lost.
How do I get buffer cache dynamic reduction to occur BEFORE swapping to disk? Turn off swap?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 02:04 AM
тАО02-26-2004 02:04 AM
Re: buffer cache goes up, swap usage, then no free mem
You have stopped the hangs, thats a great start.
Now its time to use the script I'm attaching to collect some data and plan your next move.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 02:05 AM
тАО02-26-2004 02:05 AM
Re: buffer cache goes up, swap usage, then no free mem
Do what most other people do - dont allow dynamic buffer cache, set it to a limit of X% which equates to Z MB. Thats what we do. If buffer cache is greate than around 400MB then it slows down performance a little anyway so we limit ours to 400MB.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 02:13 AM
тАО02-26-2004 02:13 AM
Re: buffer cache goes up, swap usage, then no free mem
Does swapinfo show any actual dev/filesystem swapping or it it all "memory/pseudoswap" which isn't swapping at all.
If you are going to use a 20-20% setting which may not be bad or any other dynamic buffer cache range where the delta is small, you might as well eliminate that bit of kernel overhead and used a fixed buffer cache by setting bufpages to a non-zero value. That's my preference.
Assuming that you have lots of memory here are my rules of thumb:
10.20 -- 200-400MB
11.0 -- 400-800MB
11.11 -- 800-1200MB
Buffer cache above these ranges tend to yield diminishing results. Bear in mind that there are cases where the time required to search large buffer cache can exceed the time to fetch the data from disk --- especially with modern arrays that already have lots of cache.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-26-2004 10:13 PM
тАО02-26-2004 10:13 PM
Re: buffer cache goes up, swap usage, then no free mem
I am still thinking of getting rid of fs swap. Do you think that as free memory approaches 0% that buffer cache would now reduce quickly?
ACS,
It was swapping to disk. I was a little suprised at how much it affected performance when the swapping was actually taking place. The system was hanging user processes for twenty seconds. I was rather more familiar with Windows workstation swapping; slowing down the system but not grinding to a halt.
I am running 11.11 with 2G memory. Therefore before I had 1G buffer in use (which went down very slowly indeed), 400 MB active swap, and 0 free mem. I will take up your suggestion on bufpages, sticking to around 400MB for now. Although still, it do now now have 200-400MB free memory at all times. If buffer was dynamic enough in reducing I could set it higher.
Re my comment to Stefan. Would getting rid of swap space make a dynamic buffer reduce quickly enough to stop out of memory condition?
Thanks all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-27-2004 03:08 AM
тАО02-27-2004 03:08 AM
Re: buffer cache goes up, swap usage, then no free mem
As for releasing cache, there's no fixed formula or rule of thumb in hp-ux altho I believe the later versions are a bit better. The speed with which the cache is released is a function of several variables. The most agonizing scenario is memory is allocated to cache due to an overnight backup by root when there's little competition for resources. Under these circumstances, the cache is released at a painfully slow rate.
You can try to influence cache management some by altering mainly the lotsfree parm in the master config file. You are in essences trying to unfluence scheduling for the vhand process. Lotsfree is the first low-water mark for cache and is usually around 100mb. However, realize the installation of any kind of update on the system that impacts the kernel may revert lotsfree to the default value. And, while it should work, there are no guarantees and it will require a great deal of trial and error to see if values other than the default provide any improvement.
I also recommend removing any file system swap and use device/psuedo-swap at least the size of your memory. Also, make sure there is only one swap area per disk/lun and 2 equal size swap devices will typically perform better than one large swap device.
Keith