Solved

Cache hit rate and performance

Posted on 2006-11-01
6
1,126 Views
Last Modified: 2013-11-17
Hi

Take the following data for example, basically:
1. Is it good if cache hit rate is high? How high should be normally?
2. Miss rate is high means the cache size is not big enough, right?

Jirong

mvfsstat -c
----------------- Wed Nov  1 11:37:55 2006 ---------------------
dnlc:   7342936  7260055( 98.9%) hit    54331 dot 6364243 dir 746652 reg 94829 noent
                82881 (  1.1%) miss     15113 events
                114575(  1.6%) add      18633 dir 64784 reg 31158 noent
attr:   8693955     8598294( 98.9%) hit  183 lvut
                     95661(  1.1%) miss (53565cto+0gen+102timo+415new,41579ev;2839lvut)
                    329505 updates      51269unexp+32108exp mod, 3817 vmod
rddir:   64770       54001( 83.4%) hit  10769 miss
0
Comment
Question by:hujirong
  • 2
6 Comments
 
LVL 14

Expert Comment

by:sjm_ee
ID: 17861678
You are starting from the wrong point. What is the problem that the user is experiencing? If none then stop.
0
 

Author Comment

by:hujirong
ID: 17861728
Thank you. I guess you mean nothing is wrong with that cache setting.

Jirong
0
 
LVL 57

Accepted Solution

by:
giltjr earned 100 total points
ID: 17864178
I don't think sjm_ee is saying that nothing is wrong with your cache stats.  He is trying to figure out what your problem is and then make suggestions as to what you should look at to help resolve the problem.

A high cache hit ratio means either:  You are reading the same data over and over and over .... and over again, you have the right amount of cache for you environment, or you have too much cache .

Miss rate just means that when the system went to read the data, it was not in cache and a "real" I/O had to be done.  Miss rates are not bad.  The first time you go to read data it will not be in cache, so it will be a miss.

If your system is meeting your SLA's, then what you should do is just keep an eye on your cache stats, along with memory usage, paging/swap rates, I/O rates, transaction rates, file/data base size, and CPU utilization.  Then if (when) your system does not meet your SLA', look at what is different from the stats and try and find out why it changed.
0
 

Author Comment

by:hujirong
ID: 17866860
Thank you very much. It's very well explained.

Jirong
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now