diff options
author | andrew (from workstation) | 2021-02-19 20:49:28 +0100 |
---|---|---|
committer | andrew (from workstation) | 2021-02-19 20:49:28 +0100 |
commit | ac93842818754236c131f82803a646f042267fe2 (patch) | |
tree | 30f28bdd042da0caee0edf01baf3167e43812764 /force_mmap.patch | |
download | aur-ac93842818754236c131f82803a646f042267fe2.tar.gz |
first commit
Diffstat (limited to 'force_mmap.patch')
-rw-r--r-- | force_mmap.patch | 21 |
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 |