2001-10-01 06:53:55

by Aneesh Kumar KV

[permalink] [raw]
Subject: /proc/slabinfo doesn't give details of what it is showing.

Hi ,

If will be really nice to list out what these values are when one does

$more /proc/slabinfo. It is just a one line code that busy people
really don't have time to look into :) Any how here is the one line code
with some lines above.


len += sprintf(page+len, "slabinfo - version: 1.1"
#if STATS
" (statistics)"
#endif
#ifdef CONFIG_SMP
" (SMP)"
#endif
"\n");
len += sprintf(page+len,
"(cache-name)-----(num-active-objs)--(total-objs)--(obj-size)--(num-active-slabs)--(total-slabs)--(num-pages-per-slab)\n");

-aneesh





2001-10-01 17:09:31

by Pete Zaitcev

[permalink] [raw]
Subject: Re: /proc/slabinfo doesn't give details of what it is showing.

> len += sprintf(page+len, "slabinfo - version: 1.1"
> #if STATS
> " (statistics)"
> #endif
> #ifdef CONFIG_SMP
> " (SMP)"
> #endif
> "\n");
> len += sprintf(page+len,
> "(cache-name)-----(num-active-objs)--(total-objs)--(obj-size)--(num-active-slabs)--(total-slabs)--(num-pages-per-slab)\n");

0. This is an incompatible change that is going to break userland.
1. Learn to use diff -u.
2. Headers are customarily separated by spaces, not dashes.

-- Pete