aboutsummaryrefslogtreecommitdiffstats
path: root/main/lvm2/mlockall-default-config.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-07-08 07:43:27 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-07-08 07:44:57 +0000
commit7cfe57d546e6a336fc5e0eb9c305bb9c3707bee2 (patch)
treec3c20f16d611e8883c2ec2d7b6d5f75f23808ec1 /main/lvm2/mlockall-default-config.patch
parent3b171f1e37492b0de6fcd5b11b2315336f725406 (diff)
downloadaports-7cfe57d546e6a336fc5e0eb9c305bb9c3707bee2.tar.bz2
aports-7cfe57d546e6a336fc5e0eb9c305bb9c3707bee2.tar.xz
main/lvm2: use mlockall by default
this works around issue with the "smart" memory locking ref #3107
Diffstat (limited to 'main/lvm2/mlockall-default-config.patch')
-rw-r--r--main/lvm2/mlockall-default-config.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/lvm2/mlockall-default-config.patch b/main/lvm2/mlockall-default-config.patch
new file mode 100644
index 0000000000..78eecf0a76
--- /dev/null
+++ b/main/lvm2/mlockall-default-config.patch
@@ -0,0 +1,11 @@
+--- ./conf/example.conf.in.orig
++++ ./conf/example.conf.in
+@@ -1246,7 +1246,7 @@
+ # Use the old behavior of mlockall to pin all memory.
+ # Prior to version 2.02.62, LVM used mlockall() to pin
+ # the whole process's memory while activating devices.
+- use_mlockall = 0
++ use_mlockall = 1
+
+ # Configuration option activation/monitoring.
+ # Monitor LVs that are activated.