summaryrefslogtreecommitdiffstats
path: root/src/basic
diff options
context:
space:
mode:
authorStefan Roesch <shr@devkernel.io>2023-02-28 21:39:35 +0100
committerLennart Poettering <lennart@poettering.net>2023-06-05 11:22:43 +0200
commit85614c6e2fb791b742941a8f98ea1851cf705240 (patch)
tree2a2f24529253d08cb5e8426ca9fec82a56bdcbaa /src/basic
parentchase: fix triggering assertion (diff)
downloadsystemd-85614c6e2fb791b742941a8f98ea1851cf705240.tar.xz
systemd-85614c6e2fb791b742941a8f98ea1851cf705240.zip
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.
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/missing_prctl.h4
1 files changed, 4 insertions, 0 deletions
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