- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: OS buffer cache vs. DB shmem 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
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
тАО04-20-2007 10:06 AM
тАО04-20-2007 10:06 AM
What would you anticipate?
Which glance metrics would tell if you are correct?
TIA.
Ed
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2007 03:26 PM
тАО04-20-2007 03:26 PM
SolutionOne nice feature for 11.23 and 11.31: the max_dbc_pct value is dynamic and can be changed at any time while the system is running.
Glance will only give relationships between user and system overhead. You can look at the disk I/O rates for some useful numbers. But don't even think about testing this without a very well-defined benchmark. The test must be repeatable since the first run will always have a lot of disk I/O.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2007 06:47 PM
тАО04-20-2007 06:47 PM
Re: OS buffer cache vs. DB shmem cache
If u set dbc_max_pct to 20-40% this much of memory
would not be available to DB(I assume it to be
Oracle). U have to set it very small if u r
using DB cache, hence ur initial setting of
dbc_max_pct=3% is OK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-20-2007 08:41 PM
тАО04-20-2007 08:41 PM
Re: OS buffer cache vs. DB shmem cache
Also to use raw/aynch option rather than file systems.
But with the latest HP-UX versions and also with the new VxVM, I am not sure how things are performed better and benchmarked accordingly.
I would also like know the expert opinions vis a vis the latest OS versions.
Regards,
Rasheed Tamton.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2007 03:53 AM
тАО04-21-2007 03:53 AM
Re: OS buffer cache vs. DB shmem cache
just fwiw... Under HP-UX 11i Version 3 all of dbc_max_pct, dbc_min_pct, bufcache_max_pct, bufpages, nbuf are OBSOLETED kernel tunable parameter.
Use the file cache tunables filecache_max and filecache_min
Please consider carefully reading pages 7 thru 16 in: "Common Misconfigured HP-UX Resources"
http://docs.hp.com/en/5992-0732/5992-0732.pdf
Of course it all depends... on the the system usage. If the system is 100% dedicated to a database, with the only file IO being some image activations, shell scripts and log files then a large buffer cache will server no purpose... but with the new hpux versions you can also trust it not to grow too big.
Now if the system also does some moonlighting as NFS server and (flat) file massaging or program development, then a large filecache is likely to help it a bunch.
Ed wrote: 64GB ram, dbc_max_pct 3% (~2GB), DB shmem caches 30GB.
So that other 30GB plus is available for kernel memory and user process memory (resident set). Those might 'only' take a few GB, leave 10+ GB completely free? Might as well give it to the and see whether it helps. Nothing else will be clamouring for it!
Santosh wrote : "If u set dbc_max_pct to 20-40% this much of memory would not be available to DB."
I beg to differ. The amount specified by MIN will not be available but the MAX amount is just that, a max. The system is supposed to only use that when there is no other pressure for that memory. Admittedly it would serve no purpose to tell the filecache that is might be allowed to use up to x% when only ever y% will be available, but at the same time that _should_ not hurt, and is hurting less and less, notably with v3.
It would be nice to see someone (hp) documenting a benchmark with filecache settings in the 1 GB - 16 GB zone, but I did not readily find one. Anyone?
If I were to run the box in question, would certainly try with dbc_max set to as much as 10% (6.4GB) for a period.
For very stable / predictable systems (like a TPC or SAP benchmarks :-) I would lean towards making min=max, to stop the system even considering whether it should grab more or less.
I'll close with a reference to the full disclosure for the recent super superdome 4M TPS TPC result.
This document is highly recommended reading for anyone with hpux/oracle/performance interest (which is more than 1/2 of the folks reading this topic! :-).
http://www.tpc.org/results/FDR/TPCC/tpcc.hp.SD.fdr.022707.pdf
3 cute details:
- 2 Tera bytes of physical memory
- 1 Tera byte + SGA: db_keep_cache_size = 1220G
- filecache_min=640MB filecache_max=640MB
... that is just 0.3 % on that box.
Hope this helps some,
Hein van den Heuvel (at gmail dot com)
HvdH Performance Consulting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-21-2007 06:31 AM
тАО04-21-2007 06:31 AM
Re: OS buffer cache vs. DB shmem cache
For what its worth to others, we currently have one 64GB machine, call it "db4-64", running with a 19.2GB dbc_max setting, one 16GB-RAM machine (call it "db3-16") running with 40% dbc_max_pct (6.4GB), both without issues so far (and without any "wow" improvement, either). Neither the global cache hit rate (Glance's GBL_MEM_CACHE_HIT_PCT), FS IO rate, physical IO rate, nor the number of IO-blocked processes have improved (or degraded) after increasing these cache sizes. The db4-64 cache size went from 3% or 1.9GB to 40% or 19.2GB. That all makes me wonder if it's doing any good at all. db3-16 and db4-64 both have 80% cache hit rates. Every night, db3-16 dumps 91GB of data and db4-64 dumps 140GB, all over the course of 6-8 hours. I think the dumps are effectively flushing all caches for that period, negatively impacting performance.
We're moving soon to incremental DB backups via async replication so the caches never have to be fully cleared and we can perhaps reduce the consumption down to a more sensible working set size.
Computers were going to make life simpler; I now see that was not my life they were talking about.:) Thanks to all of you for your input.
Ed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-22-2007 03:23 AM
тАО04-22-2007 03:23 AM
Re: OS buffer cache vs. DB shmem cache
mincache=direct
mount option in the fstab. THis way your buffer cache will be for the other filesystems.