From 85614c6e2fb791b742941a8f98ea1851cf705240 Mon Sep 17 00:00:00 2001 From: Stefan Roesch Date: Tue, 28 Feb 2023 12:39:35 -0800 Subject: add support for KSM This adds support for KSM (kernel samepage merging). It adds a new boolean parameter called MemoryKSM to enable the feature. The feature can only be enabled with newer kernels. --- src/basic/missing_prctl.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/basic') diff --git a/src/basic/missing_prctl.h b/src/basic/missing_prctl.h index 016085bb02..7d9e395c92 100644 --- a/src/basic/missing_prctl.h +++ b/src/basic/missing_prctl.h @@ -20,3 +20,7 @@ #ifndef PR_MDWE_REFUSE_EXEC_GAIN #define PR_MDWE_REFUSE_EXEC_GAIN 1 #endif + +#ifndef PR_SET_MEMORY_MERGE +#define PR_SET_MEMORY_MERGE 67 +#endif -- cgit v1.2.3