HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- cache hit Ratio
Operating System - HP-UX
1827293
Members
2575
Online
109717
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-19-2005 10:57 AM
04-19-2005 10:57 AM
Hi,
What is "Cache hit Ratio" on a HP-UX server.
How can i tune this value. One of the HPUX server is giving 100% cache hit ratio
Tks,
What is "Cache hit Ratio" on a HP-UX server.
How can i tune this value. One of the HPUX server is giving 100% cache hit ratio
Tks,
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2005 12:15 PM
04-19-2005 12:15 PM
Solution
"Cache Hit Ratio" can mean many things but it is most often used to describe "Disk Read Cache Ratio" or "Disk Write Cache Ratio".
The HP-UX OS maintains a buffer cache that all filesystem i/o goes through. This is referred to as "cooked" i/o as opposed to "raw" i/o that bypasses the buffer cache.
Let's suppose that you want to read block 45 of "/xxx/yyy/myfile". The user process issues a read() system call, the OS then looks to see it that block has already been read and stored in cache, if so then the read is satisfied directly from memory and no disk i/o is needed. If block 45 is not currently in the cache then the disk block is read and stored into cache and the data are copied to the user's process space.
The fraction of reads satisfied by accessing the cache / total number of reads is the "hit ratio".
The kernel maintains a list of most accessed cache blocks so that as the cache fills it can flush the least used blocks to disk to make room for more blocks.
100% is a good thing if you have plenty of memory for other things. Typically, you would like to see read hits in the 90% range and writes in the 70% range but this can vary tremendously. For example, database programs do random i/o all over a filesystem and a given block might not often be reread so in that case, your cache hit ratios might be very low --- and normal.
There are two methods of tuning the buffer cache: dynamic: the size of the buffer cache varies between min_dbc_pct (of total memory) and max_dbc_pct. The other method is a fixed buffer cache size configured by setting bufpages to a non-zero value equal to the number of 4K pages.
The HP-UX OS maintains a buffer cache that all filesystem i/o goes through. This is referred to as "cooked" i/o as opposed to "raw" i/o that bypasses the buffer cache.
Let's suppose that you want to read block 45 of "/xxx/yyy/myfile". The user process issues a read() system call, the OS then looks to see it that block has already been read and stored in cache, if so then the read is satisfied directly from memory and no disk i/o is needed. If block 45 is not currently in the cache then the disk block is read and stored into cache and the data are copied to the user's process space.
The fraction of reads satisfied by accessing the cache / total number of reads is the "hit ratio".
The kernel maintains a list of most accessed cache blocks so that as the cache fills it can flush the least used blocks to disk to make room for more blocks.
100% is a good thing if you have plenty of memory for other things. Typically, you would like to see read hits in the 90% range and writes in the 70% range but this can vary tremendously. For example, database programs do random i/o all over a filesystem and a given block might not often be reread so in that case, your cache hit ratios might be very low --- and normal.
There are two methods of tuning the buffer cache: dynamic: the size of the buffer cache varies between min_dbc_pct (of total memory) and max_dbc_pct. The other method is a fixed buffer cache size configured by setting bufpages to a non-zero value equal to the number of 4K pages.
If it ain't broke, I can fix that.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP