1*f00dc0eeSPetr HolasekWhat: /sys/kernel/mm/ksm 2*f00dc0eeSPetr HolasekDate: September 2009 3*f00dc0eeSPetr HolasekKernelVersion: 2.6.32 4*f00dc0eeSPetr HolasekContact: Linux memory management mailing list <linux-mm@kvack.org> 5*f00dc0eeSPetr HolasekDescription: Interface for Kernel Samepage Merging (KSM) 6*f00dc0eeSPetr Holasek 7*f00dc0eeSPetr HolasekWhat: /sys/kernel/mm/ksm/full_scans 8*f00dc0eeSPetr HolasekWhat: /sys/kernel/mm/ksm/pages_shared 9*f00dc0eeSPetr HolasekWhat: /sys/kernel/mm/ksm/pages_sharing 10*f00dc0eeSPetr HolasekWhat: /sys/kernel/mm/ksm/pages_to_scan 11*f00dc0eeSPetr HolasekWhat: /sys/kernel/mm/ksm/pages_unshared 12*f00dc0eeSPetr HolasekWhat: /sys/kernel/mm/ksm/pages_volatile 13*f00dc0eeSPetr HolasekWhat: /sys/kernel/mm/ksm/run 14*f00dc0eeSPetr HolasekWhat: /sys/kernel/mm/ksm/sleep_millisecs 15*f00dc0eeSPetr HolasekDate: September 2009 16*f00dc0eeSPetr HolasekContact: Linux memory management mailing list <linux-mm@kvack.org> 17*f00dc0eeSPetr HolasekDescription: Kernel Samepage Merging daemon sysfs interface 18*f00dc0eeSPetr Holasek 19*f00dc0eeSPetr Holasek full_scans: how many times all mergeable areas have been 20*f00dc0eeSPetr Holasek scanned. 21*f00dc0eeSPetr Holasek 22*f00dc0eeSPetr Holasek pages_shared: how many shared pages are being used. 23*f00dc0eeSPetr Holasek 24*f00dc0eeSPetr Holasek pages_sharing: how many more sites are sharing them i.e. how 25*f00dc0eeSPetr Holasek much saved. 26*f00dc0eeSPetr Holasek 27*f00dc0eeSPetr Holasek pages_to_scan: how many present pages to scan before ksmd goes 28*f00dc0eeSPetr Holasek to sleep. 29*f00dc0eeSPetr Holasek 30*f00dc0eeSPetr Holasek pages_unshared: how many pages unique but repeatedly checked 31*f00dc0eeSPetr Holasek for merging. 32*f00dc0eeSPetr Holasek 33*f00dc0eeSPetr Holasek pages_volatile: how many pages changing too fast to be placed 34*f00dc0eeSPetr Holasek in a tree. 35*f00dc0eeSPetr Holasek 36*f00dc0eeSPetr Holasek run: write 0 to disable ksm, read 0 while ksm is disabled. 37*f00dc0eeSPetr Holasek write 1 to run ksm, read 1 while ksm is running. 38*f00dc0eeSPetr Holasek write 2 to disable ksm and unmerge all its pages. 39*f00dc0eeSPetr Holasek 40*f00dc0eeSPetr Holasek sleep_millisecs: how many milliseconds ksm should sleep between 41*f00dc0eeSPetr Holasek scans. 42*f00dc0eeSPetr Holasek 43*f00dc0eeSPetr Holasek See Documentation/vm/ksm.txt for more information. 44*f00dc0eeSPetr Holasek 45*f00dc0eeSPetr HolasekWhat: /sys/kernel/mm/ksm/merge_across_nodes 46*f00dc0eeSPetr HolasekDate: January 2013 47*f00dc0eeSPetr HolasekKernelVersion: 3.9 48*f00dc0eeSPetr HolasekContact: Linux memory management mailing list <linux-mm@kvack.org> 49*f00dc0eeSPetr HolasekDescription: Control merging pages across different NUMA nodes. 50*f00dc0eeSPetr Holasek 51*f00dc0eeSPetr Holasek When it is set to 0 only pages from the same node are merged, 52*f00dc0eeSPetr Holasek otherwise pages from all nodes can be merged together (default). 53