Skip to content

collectors KSMCollector

Rob Smith edited this page Apr 20, 2012 · 11 revisions

KSMCollector

This class collects 'Kernel Samepage Merging' statistics. KSM is a memory de-duplication feature of the Linux Kernel (2.6.32+).

It can be enabled, if compiled into your kernel, by echoing 1 to /sys/kernel/mm/ksm/run. You can find more information about KSM at http://www.linux-kvm.org/page/KSM.

Dependencies

  • KSM built into your kernel. It does not have to be enabled, but the stats will be less than useful if it isn't :-)

Options

Example Output

All keys are prefixed with nodes.hostname by default

ksm.full_scans
ksm.pages_sharing
ksm.pages_unshared
ksm.run
ksm.pages_shared
ksm.pages_to_scan
ksm.pages_volatile
ksm.sleep_millisecs
Clone this wiki locally