Module Expr Str Import alias Import alias Import alias ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad AttributeLoad NameLoad attr Index Str Str body If Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Pass Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
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](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:-)

 N/A os N/A glob N/A diamond.collector KSMCollector N/A N/A N/A diamond collector Collector N/A get_default_config_help N/A N/A self N/A N/A N/A config_help N/A N/A N/A super KSMCollector self get_default_config_help N/A N/A N/A config_help update N/A ksm_path location where KSM kernel data can be found N/A config_help N/A get_default_config N/A N/A self N/A N/A N/A 
        Return default config.

        path: Graphite path output
        ksm_path: location where KSM kernel data can be found
         N/A config N/A N/A N/A super KSMCollector self get_default_config N/A N/A N/A config update N/A path ksm_path ksm /sys/kernel/mm/ksm N/A config N/A collect N/A N/A self N/A N/A N/A item N/A N/A glob glob N/A N/A N/A os path join N/A N/A self config N/A ksm_path * N/A N/A N/A N/A os access item N/A os R_OK N/A N/A filehandle N/A open item N/A N/A N/A N/A N/A self publish N/A N/A N/A os path basename item N/A float N/A N/A N/A N/A filehandle readline rstrip N/A N/A N/A ValueError N/A N/A N/A N/A N/A filehandle close N/A N/A