- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
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
12-19-2000 08:02 AM
12-19-2000 08:02 AM
Buffer Cache
Can I get your feedback on the use of buffer cache in HP-UX? Are there drawbacks to having 4GB (or more) of buffer cache, on a system with 8GB of RAM, assuming that memory demands are fairly low?
Any feedback/experiences are welcome. Thanks for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 08:07 AM
12-19-2000 08:07 AM
Re: Buffer Cache
On a system with 8GB memory i'd set the kernel parameter:
dbc_max_pct 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 08:14 AM
12-19-2000 08:14 AM
Re: Buffer Cache
To set buffer cache dynamic within 10% of dbc_min_pct(value=10) and 50% of dbc_max_pct(value=50). Set bufpages and nbuf to zero. Also set swapmem_on=1 to get 75% of Physical memory for pseudo memory. These changes in jernel will require a system reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 08:20 AM
12-19-2000 08:20 AM
Re: Buffer Cache
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 08:22 AM
12-19-2000 08:22 AM
Re: Buffer Cache
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 08:23 AM
12-19-2000 08:23 AM
Re: Buffer Cache
I see no reason not to allocaate the buffer cache as you see fit if you are doing IO via LVM and a database engine isn't already managing buffering. If you have an excess of memory, you can eliminate a large fraction of physical IO by setting dbc_min_pct and dbc_max_pct a fairly large percentage.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 08:26 AM
12-19-2000 08:26 AM
Re: Buffer Cache
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 08:33 AM
12-19-2000 08:33 AM
Re: Buffer Cache
It will be a good idea to keep dbc_max_pct at 25% so as not to put more load on the system while deactivating or flushing the buffer cache.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 08:37 AM
12-19-2000 08:37 AM
Re: Buffer Cache
I might add that on a 10.20 server with 1GB memory and and application that doesn't use a database engine, my dbc_min_pct=25 and dbc_max_pct=50.
The "downside" on larger memory systems would be the time and amount of work that the syncer daemon would take flushing the buffer cache.
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 09:33 AM
12-19-2000 09:33 AM
Re: Buffer Cache
The "maximum recommended" value does not exist. It is a general consensus in this forum.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 02:00 PM
12-19-2000 02:00 PM
Re: Buffer Cache
i have a few large systems with 24 gig of memory. I too have been told conflicting reports on the "best practice" of buffer cache. I was told to keep it under 1 gig. however, i think that may have been the "old way" of thinking. Now, I have it set around 1.5 gig, and the system runs great. in fact, i may decide to increase it. Basically, in my opinion, if you have the downtime available to you to make these changes, i would just play around untill it looks good to you and more importantly, your users.
One piece of advice though, is to keep the min and max values the same. especially when you get into the larger formulas. that way the system isnt bothered with trying to be too dynamic.
Matt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2000 02:37 PM
12-19-2000 02:37 PM
Re: Buffer Cache
1. The buffer cache defaults are way out of whack for systems with large RAM (more than 4Gb). Having a buffer cache set to 5% to 50% just doesn't make a lot of sense. A 4Gb system with 2000 megs of buffer cache is overkill. Start with a range of 200 to 1500 megs of RAM.
2. Now adjust the maximum buffer cache to match your system. Start with RAM: for small RAM systems (less than 500 megs), make the buffer cache about 5-10% of RAM. If your applications are swapping a lot, it's time for a lot more RAM (multiple Gb).
3. Now 200 megs is probably fine for most systems with a read/write ratio of 50% or so. Writing is the biggest issue--when continuous writes are taking place, the buffere cache manager will have a lot of work to do in kernel mode to flush these requests out to the disk. These will be bursts of activity every time the syncer runs and if the data stream is fairly steady, the buffer cache should be smaller. Note that a fast system (CPU + I/O + disk) can tolerate a bigger cache with heavy writes.
4. For systems that perform lots of reads (more than 60%), a large buffer cache is good, the bigger the better up to a couple of gigabytes.
5. For Oracle, the rules change a bit. Your DBA can change the Oracle SGA to perform high levels of data caching, so a big buffer cache means double buffering...a waste of RAM. To avoid this and to take advantage of Oracle's data cache, you need to disable the buffer cache for Oracle data volumes. This can only be done with Advanced JFS options on vxfs filesystems:
convosync=direct,mincache=direct,nodatainlog
Use these options on Oracle data disks only. Don't use them on rollback logs, archives, etc.
6. The buffer cache is only effective for filesystems--it has no effect on raw disk access.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2000 02:43 AM
12-21-2000 02:43 AM
Re: Buffer Cache
with something that makes sense for your system. Sometimes, coming up with this value takes a little bit of playing, testing, and gut feel.
I would recommend that you start by setting your "dbc_max_pct" to about 10%
of memory.
If you then run sar -b, it will show you your buffer cache hit rate.
A great rate is about 95% for reads, 75% for writes, but rarely will a system hit that. For example, you won't hit a rate that high if
you do lots of raw I/O, or a lot of metadata LVM queueing.
If you fave a XP, EMC or Autoraid connected to the system, it's recommended to lower the dbc_max_pct, because on those diskfarms there are loads of Cache. So why stressing the resources on the system.
Check the following url:
http://docs.hp.com//hpux/onlinedocs/os/KCparam.FilesysParmsOverview.html