summarylogtreecommitdiffstats
path: root/force_mmap.patch
diff options
context:
space:
mode:
Diffstat (limited to 'force_mmap.patch')
-rw-r--r--force_mmap.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/force_mmap.patch b/force_mmap.patch
new file mode 100644
index 000000000000..07e919bc470e
--- /dev/null
+++ b/force_mmap.patch
@@ -0,0 +1,21 @@
+diff -Naur glibc-ok/malloc/malloc.c glibc-2.33/malloc/malloc.c
+--- glibc-ok/malloc/malloc.c 2021-02-01 18:15:33.000000000 +0100
++++ glibc-2.33/malloc/malloc.c 2021-02-19 20:30:18.521402639 +0100
+@@ -919,7 +919,7 @@
+ #define M_TRIM_THRESHOLD -1
+
+ #ifndef DEFAULT_TRIM_THRESHOLD
+-#define DEFAULT_TRIM_THRESHOLD (128 * 1024)
++#define DEFAULT_TRIM_THRESHOLD (512 * 1024)
+ #endif
+
+ /*
+@@ -961,7 +961,7 @@
+ */
+
+ #ifndef DEFAULT_MMAP_THRESHOLD_MIN
+-#define DEFAULT_MMAP_THRESHOLD_MIN (128 * 1024)
++#define DEFAULT_MMAP_THRESHOLD_MIN 0
+ #endif
+
+ #ifndef DEFAULT_MMAP_THRESHOLD_MAX