Some time ago I wrote a tool which I call arc_summary. It is a kstat based PERL application that runs some calculations and presents you with a pretty report of ZFS ARC. The idea is to help you interpret the data more appropriately. Lets look at some output:
benr@quadra ~$ ./arc_summary.pl
System Memory:
Physical RAM: 4083 MB
Free Memory : 130 MB
LotsFree: 63 MB
ZFS Tunables (/etc/system):
ARC Size:
Current Size: 1530 MB (arcsize)
Target Size (Adaptive): 1555 MB (c)
Min Size (Hard Limit): 382 MB (zfs_arc_min)
Max Size (Hard Limit): 3062 MB (zfs_arc_max)
ARC Size Breakdown:
Most Recently Used Cache Size: 100% 1555 MB (p)
Most Frequently Used Cache Size: 0% 0 MB (c-p)
ARC Efficency:
Cache Access Total: 2090556
Cache Hit Ratio: 71% 1493620 [Defined State for buffer]
Cache Miss Ratio: 28% 596936 [Undefined State for Buffer]
REAL Hit Ratio: 70% 1472533 [MRU/MFU Hits Only]
Data Demand Efficiency: 98%
Data Prefetch Efficiency: 1%
CACHE HITS BY CACHE LIST:
Anon: 0% 12854 [ New Customer, First Cache Hit ]
Most Recently Used: 55% 825782 (mru) [ Return Customer ]
Most Frequently Used: 43% 646751 (mfu) [ Frequent Customer ]
Most Recently Used Ghost: 0% 3619 (mru_ghost) [ Return Customer Evicted, Now Back ]
Most Frequently Used Ghost: 0% 4614 (mfu_ghost) [ Frequent Customer Evicted, Now Back ]
CACHE HITS BY DATA TYPE:
Demand Data: 60% 900081
Prefetch Data: 0% 9547
Demand Metadata: 38% 572127
Prefetch Metadata: 0% 11865
CACHE MISSES BY DATA TYPE:
Demand Data: 2% 12318
Prefetch Data: 87% 524549
Demand Metadata: 9% 55222
Prefetch Metadata: 0% 4847
---------------------------------------------
First notice that you do not need to be root to run the report. I ran this on my personal workstation, an Intel QuadCore with 4GB of RAM.
So looking at the report, first I output some general memory data for you, then output any ZFS tunable you placed in /etc/system (this will not utilize MDB, but may one day).
Then we look at the ARC Sizing data. The “Current Size” is how large the ARC really is, whereas the “Target Size” is a constantly changing number, like a stock price, of what the ARC thinks it should be. I also include the Min and Max hard sizes for ARC, these are tunable.
The ARC Size Breakdown shows the division of the cache between “Most Recently Used” (MRU) and “Most Frequently Used”. More on this later. When you see parenthesis in the output those are the variable names, for those using DTrace or getting into the code.
I wrote arc_summary to answer the question “Why is my ARC so damned big!?!” The ARC Efficiency section helps you determine where or not your getting bang for your buck. ZFS ARC stats presented by Kstat provide several breakdowns of cache hits, so this section really runs computation on those values to present them in a sane manner.
In the report above, we have a cache hit ratio of 70%. The “Cache Hit Ratio” and “REAL Hit Ratio” differ in that ZFS considers an Anon buffer as a hit… but its not really, so I remove those for the “REAL” ratio.
We then breakdown Demand vs Prefetch hits. ZFS does aggressively caches data via prefetch; in the example above, only 1% of hits are a result of prefetched data already being in the cache, 98% of it was hit in the cache because it was explicitly asked for. So in this case, pre-fetch isn’t helping me.
Perhaps the most interesting information here is the “Cache Hits by Cache List”. ARC maintains multiple cache lists, including:
- Most Recently Used: Cache hit once.
- Most Frequently Used: Cache hit multiple times.
- Most Recently Used Ghost: Objects that were in MRU cache, but removed to save space.
- Most Frequently Used Ghost: Same but for MFU.
These Ghosts lists are magic. If you get a lot of hits to the ghost lists, it means that ARC is WAY too small and that you desperately need either more RAM or an L2 ARC device (likely, SSD). Please note, if you are considering investing in L2 ARC, check this FIRST.
So by looking at the spread between MRU and MFU hits, we get an idea of how much the cache is rolling over…. 55% of hits are MRU (1 hit), whereas 43% are MFU (multiple hits), so, not bad. The higher MFU is, the better, but this all depends on your workload. Workstations will tend toward MRU, but on one of my servers, for instance, the ARC was 99% MFU.
Looking on we can see what type of requests are hits or misses. Notice that cache hits are 60% demand (explicitly requested) data blocks, and 38% demand metadata…. prefetch isn’t helping on this box.
Its all really pretty self explanatory, if its not, let me know and I’ll do an ARC expose, but I tried to create the output report to be pretty intuitive.
Please note, this report is cumulative since boot. It should compliment the arcstats tool. arcstat can tell you want is happening, arc_summary can tell you what has been happening. Any serious ZFS deployment should have both of these bad boys around in your toolbag.
On a closing note… I hope this tool helps you appreciate the innovation of the ARC. Designed at IBM (IBM ARC page) and then implemented and improved for ZFS, ARC is elegant, powerful and extremely efficient! I hope my tool can help you better appreciate this amazing innovation in some small way.
hello, thanks authors. exellent post
Thanks for the post, again. I love your descriptive posts on the neat features of Solaris. It reminds me why it’s a great operating system at times.
When using your arc_summary.pl script (just downloaded), I get “Attempt to access disallowed key ‘zfs’ in a restricted hash at arc_summary.pl line 41.” when it first tries to do ${Kstat}->{zfs}. I don’t have time to investigate it now, but I thought I’d give you the heads up that the hash isn’t always accessible. The test system is SunOS 5.10 Generic_118855-33
Drew: I do everything on Nevada… I several S10 releases likely do not include some or all the ARC kstats. I’ll add a check to the next release to gracefully catch it.
Thanks
good site. Continue also
Ben,
While arc_summary does not work with 6/06, it does work with 8/07. Nice work!
The good convenient site is made.
hp laptop
Good site, comfortable navigation.
used laptop sale
good site. it was very interestingly to wande
digital music laptop
Hello! Very good site and stylish design
dollhouse and miniatures supplies
Hello, excellent site, very rich in content and correctly carefully thought out
pizza
Hello! Very good site and stylish design
Thank you for such good site. It is sorry that before him did not find
What is a “Cache Miss: Prefetch Data”? I imaine if ARC is asked “give me Data or give me Metadata” and that is not in a cache, its a Miss. Is somebody else above ARC prefetching and telling that to ARC?
good site. Continue also
Hello! good site, thank you!
Hello! Very good site! All is done neatly, beautifully
Hello, excellent site, very rich in content and correctly carefully thought out
god site. Continue also
In actual fact very good site…successes are in advancement
The good convenient site is made.
Hello! Good site, much useful
Hello! good site, thank you!
Hello! good site, thank you!
Hello I am a soviet that I called on this site I very like here
Hello, excellent site, very rich in content and correctly carefully thought out
Hello, excellent site, very rich in content and correctly carefully thought out
Thank you for such good site. It is sorry that before him did not find
Hallo everybody. By chance barged into this site and understood that finally got there, where it is nece
ssary
I am Very thank full the owner of this blog. Becouse of this blog is very imformative for me.. And I ask u some thiing You make more this type blog where we can get more knowledge. and any one tell me how can I find this type blog. http://www.penisenlargementz.com
Penis size always concern to men’s every where in every culture. In most cultures a large penis is considered the sign of virility, stamina and power. An average penis size is 5.2-6 inches. In this age of modern science various penis enlargement techniques offer penis enlargement for men. Natural Penis Enlargement
Effective and fast penis enlargement is entirely possible with the right techniques used consistently and correctly, and you can even see real results within two to three weeks! I used specific yet very simple and easy-to-duplicate techniques to increase
Cheap Video Games Cheap Ps3 Games Cheap Xbox 360 Games Wholesale Computers Wholesale Laptop Computers Wholesale Laptops Discount
I will make sure and bookmark this page, I will come back to follow you more.
New battery review module surface is black, not because of the positive electrode exists, the module is likely to be integrated back contact silicon solar cells, silicon, where the role is often to extend the service life of equipment.Mitsubishi motors in October 2009 28-30 at the yokohama exhibition center held the Pacific “GreenDevice2009″ displayed on the high efficiency solar camera battery 19.1% respectively. In the square 15cm in polysilicon solar cells, realized the highest efficiency. The research achievements in 2009 September 2009 and the application of physics to the international society in October EUPVSEC “, “said in a statement.
dfdsfds
links of london jewellery uk
This is well known that money can make people autonomous. But what to do when someone does not have money? The one way is to try to get the business loans or just auto loan.
in the article
five finger shoes
It is by no means unusual links of london rings to see women shuttling among jewelry stores where various jewelries have great attraction to them. No one chould links of london bracelet she refused the charming and the fatal attraction of these brilliant Links of London jewellery that is engraved with specila mark logo to identify Links of London goods different from other jewellery.
I’m a little late finding this article, but I loved it.
http://www.trademic.com/product/index.tm.keyword=bad%20gal%20mascara&bid=.html
very useful thank you
for best web online store
hi there, thanks for your great post, it help me so much! now i wonder if you linke the mbt shoes from my site: the url is http://www.thesuitshoes.com
Thanks for the information you provide, I really liked the topic you created. I hope this information can be useful for those who read it.
http://www.sizepenisenlargement.com
The idea is to help you interpret the data more appropriately. Lets look at some output: [url=http://www.mydiscountjordanshoes.com/air-jordan-xv-c-79.html] air-jordan-xv
[/url]
thank you for this outstanding article
thank you for sharing the article.
The easy-to-use Video Converter for Mac lets you to enjoy your videos on all sorts of palyback including PSP, iPod, Mobile Phone, Zune, iPhone, Apple TV and MP4/MP3 player.
Free download supported. http://www.videoconverterformac.com
http://www.airjordanshoescheap.com/
Air Max
Good post, thanks for sharing, I enjoy it very much! There is a site: http://www.cheapinsanitydvds.com/
百度
[url=http://www.sina.com]sina[/url]
Top Online Stores is a SEO Friendly http://www.toponlinestores.org free directory where you can find the best online shopping stores selected by hand and sorted by category.
woman’s replica handbags has been Replica Handbags called “second face” shows a woman’s designer handbags represents a grade. Pursuit of the perfect OL who prefer the simple generosity and distinctive designer replica handbags. Bring out the city of more than casual style, but also fully shown the beauty of simplicity OL generous. Spring garden extra duty, love the girls took advantage chloe of packet arrival of spring, they began wondering what a package that is good-looking ride. So even at home, but also will open the closet, will be straightened a mirror, a one eyed, fine time, when overcast, when it rains, finds the time to wear that dress, go take what section package. Spring jimmy choo replica with: a good small replica louis vuitton Spring, Spring replica balenciaga may only put a cell phone and a small purse, but the girls always go out without coach replica would feel very awkward, so this gouache of a small burberry handbags Messenger Bar, Spring replica fendi give you free day, springtime in the juicy couture replica to do your personal little housekeeper. Spring celine bags with: the same dress, then put on Monogram Denim marc jacobs bags. This Xiekua dual front shoulder dior replica, a beautiful jade encrusted above the rivet, in one direction, as if arranged in a geometric prada replica handbags 96800 patchwork of feeling, in the sun radiates light. A little rock flavor. Spring balenciaga replica with: see Cecilia’s hand before the usual wide range of vehicles carrying ysl bags, we introduced a hand-painted bottega veneta house, the top students of the Central Academy of Fine Arts of hand painted, carved in a fairy tale cottage on a small show your heart destination. The skeleton of a crystal-studded black jimmy choo handbags to bring rock and roll feel, with a proposal: Daren favorite TEE, of course, choose jeans enough personality to match, fastened with long celine handbags black scarf, in Early spring to keep a trace of warmth, a studded black prada handbags Crystal Skull brings rock feel, like in the streets hand replica balenciaga handbags, numerous enough to attract attention. hermes replica handbags will not take away the thunder of beautiful dresses, with proposals: one-piece full of exotic Skirt, with fringed boots, and reveal a different kind of woman style, this dress is Xiaobian favorite outfit, light brown mulberry bayswater will not take away the paul smith bag thunder of beautiful dresses, fringed boots and color echo, so that the overall dress more attractive.
There are various kinds of ghd hair straighteners on hot sell. GHD styler specialized in ghd australia market and ghd outlet. It provides many cheap ghd, ghd iv styler, pink ghd, purple ghd, which save up to 50%, with free shipping!
cheap cell phones Buy Cheap Cell Phones Or Wholesale Cell Phones Accessories From Best Cheap Cell Phones China Wholesaler.We Are Offering All Kinds Of Discount Cell Phone With Brands Like: Nokia,Apple, Blackberry,etc.”
Wholesale polo shirts Best Polo Shirts Wholesale :Buy China Polo Shirts Wholesale from China Supplier. owning a selection of cheap Wholesale Polo Shirts products you like.