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.
This commit is contained in:
Stefan Roesch
2023-06-05 11:22:43 +02:00
committed by Lennart Poettering
parent 308b189511
commit 85614c6e2f
11 changed files with 65 additions and 0 deletions
+4
View File
@@ -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