All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] x86: x86_64_defconfig: Enable KSM.
@ 2018-06-14 22:50 Daniel Díaz
  2018-06-14 22:50   ` Daniel Díaz
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Daniel Díaz @ 2018-06-14 22:50 UTC (permalink / raw)
  To: x86
  Cc: anders.roxell, Daniel Díaz, Thomas Gleixner, Ingo Molnar,
	H. Peter Anvin, Josh Poimboeuf, Krzysztof Kozlowski,
	open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)

As per the documentation, Kernel Samepage Merging (available
since 2.6.32) is a memory-saving de-duplication feature,
enabled by CONFIG_KSM=y and activated via sysfs. More
information can be found here:
  https://www.kernel.org/doc/Documentation/vm/ksm.txt

When enabled in the kernel, the default is to not do anything
at all, until it is activated at run-time with:
  echo 1 > /sys/kernel/mm/ksm/run

Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
---
 arch/x86/configs/x86_64_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/x86/configs/x86_64_defconfig b/arch/x86/configs/x86_64_defconfig
index e32fc1f..8fd7396 100644
--- a/arch/x86/configs/x86_64_defconfig
+++ b/arch/x86/configs/x86_64_defconfig
@@ -48,6 +48,7 @@ CONFIG_MICROCODE_AMD=y
 CONFIG_X86_MSR=y
 CONFIG_X86_CPUID=y
 CONFIG_NUMA=y
+CONFIG_KSM=y
 CONFIG_X86_CHECK_BIOS_CORRUPTION=y
 # CONFIG_MTRR_SANITIZER is not set
 CONFIG_EFI=y
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-06-15 12:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-14 22:50 [PATCH 1/2] x86: x86_64_defconfig: Enable KSM Daniel Díaz
2018-06-14 22:50 ` [PATCH 2/2] arm: multi_v7_defconfig: " Daniel Díaz
2018-06-14 22:50   ` Daniel Díaz
2018-06-15  6:09   ` Geert Uytterhoeven
2018-06-15  6:09     ` Geert Uytterhoeven
2018-06-15  8:27 ` [PATCH 1/2] x86: x86_64_defconfig: " Thomas Gleixner
2018-06-15 12:23 ` Austin S. Hemmelgarn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.