pykmem¶
SUMMARY¶
Kernel memory inspection
kmem [-s] [-S] addr - information about address
kmem -s [cache] - check consistency of single or all kmem cache
kmem -S[SS...] [cache] - list details / objects in a single or all kmem caches
kmem -z - report zones
kmem -V - report vmstats
DESCRIPTION¶
This command currently offers very basic kmem cache query and checking. Currently it reports whether addr is a struct page, or slab object. If it’s a slab object, the -s parameter will tell more about the slab page and the -S parameter will list all objects on the same slab page.
The -s and -S parameters can be also used with a kmem cache name or address, to check consistency or list details. If no cache is name is given, it will check/list all caches. The -S parameter can be repeated multiple times (up to 4), increasing the verbosity of listing.
The -S parameter currently only works for SLUB kernels.