(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



2005/07/08 slabtop, /proc/slabinfo

If you ever noticed /proc/slabinfo, its contents surely mystified you. That documentation is as geeky as it gets. There's a "slabtop" command that supposedly makes it more comprehensible (see http://kerneltrap.org/node/1104), but probably does not. Basically, it's information about internal kernel caches. "Slabs" are small allocations of memory, less than a page or not a multiple of page size. The kernel needs a lot of these odd sized chunks for caches.

I first came across mention of /proc/slabinfo in a performance tuning book, which suggested that the statistics here could be useful in determining where your kernel is using too much memory. Of course that's true, but unless you have a baseline for comparision, you wouldn't know what's normal and what isn't. For example, here's part of "slabtop" on a 2.6 webserver:



223533 221207  98%    0.14K   8279       27     33116K dentry_cache
165902 165870  99%    0.34K  15082       11     60328K linvfs_icache
165902 165870  99%    0.36K  15082       11     60328K xfs_inode
 48636  39464  81%    0.27K   3474       14     13896K radix_tree_node
 37976  37493  98%    0.46K   4747        8     18988K ext3_inode_cache
 23550  20517  87%    0.05K    314       75      1256K buffer_head
  5734   5658  98%    0.08K    122       47       488K vm_area_struct
 

Obviously the biggest kernel caches here are for directory entries (dentry_cache). That probably makes sense; I guess I'd expect directory caches to be much higher than tcp related caches. But again, unless I had experience and knowledge of what's normal here, this doesn't help me.

You can find a few interesting threads that mention this by Googling "slabinfo tuning", but the few I looked at were disappointing and didn't enlighten me much.

.


Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.


book graphic unix and linux troubleshooting guide

My Troubleshooting E-Book will show you how to solve tough problems on Linux and Unix systems!



 I sell and support
 Kerio Mail server




pavatar.jpg
More:
       - Kernel/Internals
       - Linux
       - Unix


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress