[Crash-utility] wrong values shown by kmem -s

vinayak menon vinayakm.list at gmail.com
Thu Mar 10 14:27:29 UTC 2016


Hi,

With a ramdump of a system with 386MB of available memory, "kmem -s"
shows something like this

    CACHE       NAME                 OBJSIZE  ALLOCATED     TOTAL  SLABS  SSIZE
    dd801c00 kmalloc-2048            2048     670869         670960
41935    32k

The memory occupied by objects go beyond the total system memory if we
use the above numbers to calculate that. I think the output is wrong
because with SLUB, slabs can be of different sizes depending on the
order of allocation. And here objects are calculated considering slabs
are of fixed size.

The attached patch worked for me.

Thanks,
Vinayak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-for-the-wrong-calculation-of-slub-total-and-inus.patch
Type: application/octet-stream
Size: 6370 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20160310/c261868d/attachment.obj>


More information about the Crash-utility mailing list