162306a36Sopenharmony_ciWhat:		/sys/kernel/mm/ksm
262306a36Sopenharmony_ciDate:		September 2009
362306a36Sopenharmony_ciKernelVersion:	2.6.32
462306a36Sopenharmony_ciContact:	Linux memory management mailing list <linux-mm@kvack.org>
562306a36Sopenharmony_ciDescription:	Interface for Kernel Samepage Merging (KSM)
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciWhat:		/sys/kernel/mm/ksm/full_scans
862306a36Sopenharmony_ciWhat:		/sys/kernel/mm/ksm/pages_shared
962306a36Sopenharmony_ciWhat:		/sys/kernel/mm/ksm/pages_sharing
1062306a36Sopenharmony_ciWhat:		/sys/kernel/mm/ksm/pages_to_scan
1162306a36Sopenharmony_ciWhat:		/sys/kernel/mm/ksm/pages_unshared
1262306a36Sopenharmony_ciWhat:		/sys/kernel/mm/ksm/pages_volatile
1362306a36Sopenharmony_ciWhat:		/sys/kernel/mm/ksm/run
1462306a36Sopenharmony_ciWhat:		/sys/kernel/mm/ksm/sleep_millisecs
1562306a36Sopenharmony_ciDate:		September 2009
1662306a36Sopenharmony_ciContact:	Linux memory management mailing list <linux-mm@kvack.org>
1762306a36Sopenharmony_ciDescription:	Kernel Samepage Merging daemon sysfs interface
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci		full_scans: how many times all mergeable areas have been
2062306a36Sopenharmony_ci		scanned.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci		pages_shared: how many shared pages are being used.
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci		pages_sharing: how many more sites are sharing them i.e. how
2562306a36Sopenharmony_ci		much saved.
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci		pages_to_scan: how many present pages to scan before ksmd goes
2862306a36Sopenharmony_ci		to sleep.
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci		pages_unshared: how many pages unique but repeatedly checked
3162306a36Sopenharmony_ci		for merging.
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci		pages_volatile: how many pages changing too fast to be placed
3462306a36Sopenharmony_ci		in a tree.
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci		run: write 0 to disable ksm, read 0 while ksm is disabled.
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci			- write 1 to run ksm, read 1 while ksm is running.
3962306a36Sopenharmony_ci			- write 2 to disable ksm and unmerge all its pages.
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ci		sleep_millisecs: how many milliseconds ksm should sleep between
4262306a36Sopenharmony_ci		scans.
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci		See Documentation/mm/ksm.rst for more information.
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ciWhat:		/sys/kernel/mm/ksm/merge_across_nodes
4762306a36Sopenharmony_ciDate:		January 2013
4862306a36Sopenharmony_ciKernelVersion:	3.9
4962306a36Sopenharmony_ciContact:	Linux memory management mailing list <linux-mm@kvack.org>
5062306a36Sopenharmony_ciDescription:	Control merging pages across different NUMA nodes.
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ci		When it is set to 0 only pages from the same node are merged,
5362306a36Sopenharmony_ci		otherwise pages from all nodes can be merged together (default).
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ciWhat:		/sys/kernel/mm/ksm/general_profit
5662306a36Sopenharmony_ciDate:		April 2023
5762306a36Sopenharmony_ciKernelVersion:  6.4
5862306a36Sopenharmony_ciContact:	Linux memory management mailing list <linux-mm@kvack.org>
5962306a36Sopenharmony_ciDescription:	Measure how effective KSM is.
6062306a36Sopenharmony_ci		general_profit: how effective is KSM. The formula for the
6162306a36Sopenharmony_ci		calculation is in Documentation/admin-guide/mm/ksm.rst.
62