Skip to content

collectors KSMCollector

Rob Smith edited this page Aug 11, 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

  • Generic Options
  • ksm_path: location where KSM kernel data can be found
  • enabled: Enable collecting these metrics
  • byte_unit: Default numeric output(s)

Example Output

__EXAMPLESHERE__
Clone this wiki locally