From 93416ccf731aedb8919237154d7b2f721c4411d9 Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Sun, 15 May 2022 22:11:25 +0200 Subject: [PATCH] Bump DEFAULT_MAX_MAP_COUNT to 16777216 (from 524288) Star Citizen was reportedly crashy again with "only" 524288 --- PKGBUILD | 12 ++++++------ README.md | 2 +- linux-tkg-patches/5.10/0003-glitched-base.patch | 2 +- linux-tkg-patches/5.15/0003-glitched-base.patch | 2 +- linux-tkg-patches/5.16/0003-glitched-base.patch | 2 +- linux-tkg-patches/5.17/0003-glitched-base.patch | 2 +- linux-tkg-patches/5.18/0003-glitched-base.patch | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 8df6007..506ac59 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -59,7 +59,7 @@ else fi pkgname=("${pkgbase}" "${pkgbase}-headers") pkgver="${_basekernel}"."${_sub}" -pkgrel=257 +pkgrel=258 pkgdesc='Linux-tkg' arch=('x86_64') # no i686 in here url="http://www.kernel.org/" @@ -314,7 +314,7 @@ case $_basever in '66a03c246037451a77b4d448565b1d7e9368270c7d02872fbd0b5d024ed0a997' 'f6383abef027fd9a430fd33415355e0df492cdc3c90e9938bf2d98f4f63b32e6' '35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0' - 'acc50cd9f88b9f12dc4321fab7af66f6cc8299bb83ebcb4056f6189fca22ec9c' + '3c110f4c0dba0a3e605e3bb4506c5f03f36f17100716c71fc98e4a71eeebfa45' '7058e57fd68367b029adc77f2a82928f1433daaf02c8c279cb2d13556c8804d7' 'e5ea0bb25ee294c655ac3cc30e1eea497799826108fbfb4ef3258c676c1e8a12' 'c605f638d74c61861ebdc36ebd4cb8b6475eae2f6273e1ccb2bbb3e10a2ec3fe' @@ -617,7 +617,7 @@ case $_basever in '66a03c246037451a77b4d448565b1d7e9368270c7d02872fbd0b5d024ed0a997' 'f6383abef027fd9a430fd33415355e0df492cdc3c90e9938bf2d98f4f63b32e6' '35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0' - '2e2c5c546fb2aabfa90f31310355324f58c6783d520b45b8898577bb7d1a5277' + 'd96a448d5d42c1836b28478930e085624f2341fc4001bd10acd84838d49f2d1d' '5efd40c392ece498d2d43d5443e6537c2d9ef7cf9820d5ce80b6577fc5d1a4b2' 'e5ea0bb25ee294c655ac3cc30e1eea497799826108fbfb4ef3258c676c1e8a12' '0b73ec751187d899a4c347b9287c7a76d06523abaeca985a76d0f7ae167d4b1f' @@ -671,7 +671,7 @@ case $_basever in '66a03c246037451a77b4d448565b1d7e9368270c7d02872fbd0b5d024ed0a997' 'f6383abef027fd9a430fd33415355e0df492cdc3c90e9938bf2d98f4f63b32e6' '35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0' - 'fc6b5f3d03cacbb8ac547a8829f0c7544aaf7548f26298f8783d693a617b81d9' + 'a22506f55cdf4208a842c8e32c5330aa06d672642ff936236f0a87f0dc108448' '5efd40c392ece498d2d43d5443e6537c2d9ef7cf9820d5ce80b6577fc5d1a4b2' 'e5ea0bb25ee294c655ac3cc30e1eea497799826108fbfb4ef3258c676c1e8a12' 'fca63d15ca4502aebd73e76d7499b243d2c03db71ff5ab0bf5cf268b2e576320' @@ -723,7 +723,7 @@ case $_basever in '66a03c246037451a77b4d448565b1d7e9368270c7d02872fbd0b5d024ed0a997' 'f6383abef027fd9a430fd33415355e0df492cdc3c90e9938bf2d98f4f63b32e6' '35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0' - 'fc6b5f3d03cacbb8ac547a8829f0c7544aaf7548f26298f8783d693a617b81d9' + 'a22506f55cdf4208a842c8e32c5330aa06d672642ff936236f0a87f0dc108448' '5efd40c392ece498d2d43d5443e6537c2d9ef7cf9820d5ce80b6577fc5d1a4b2' 'e5ea0bb25ee294c655ac3cc30e1eea497799826108fbfb4ef3258c676c1e8a12' 'fca63d15ca4502aebd73e76d7499b243d2c03db71ff5ab0bf5cf268b2e576320' @@ -774,7 +774,7 @@ case $_basever in '66a03c246037451a77b4d448565b1d7e9368270c7d02872fbd0b5d024ed0a997' 'f6383abef027fd9a430fd33415355e0df492cdc3c90e9938bf2d98f4f63b32e6' '35a7cde86fb94939c0f25a62b8c47f3de0dbd3c65f876f460b263181b3e92fc0' - '94eb8f15f4297057c8229bf75c9e08adbaa812f68999bb62dae0e226e37503eb' + '0b546da707b274d5c3722e0e1cd641567db401b7acb0b3bf6e422784b12aad76' '5efd40c392ece498d2d43d5443e6537c2d9ef7cf9820d5ce80b6577fc5d1a4b2' 'e5ea0bb25ee294c655ac3cc30e1eea497799826108fbfb4ef3258c676c1e8a12' #'fca63d15ca4502aebd73e76d7499b243d2c03db71ff5ab0bf5cf268b2e576320' diff --git a/README.md b/README.md index c85cd1a..dcb46bf 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ These alternative schedulers can offer a better performance/latency ratio for ga - Scheduling tweaks - `CFS` tweaks - Using the ["Cake"](https://www.bufferbloat.net/projects/codel/wiki/CakeTechnical/) network queue management system -- Using `vm.max_map_count=524288` by default +- Using `vm.max_map_count=16777216` by default - Cherry-picked patches from [Clear Linux's patchset](https://github.com/clearlinux-pkgs/linux) #### Optional tweaks diff --git a/linux-tkg-patches/5.10/0003-glitched-base.patch b/linux-tkg-patches/5.10/0003-glitched-base.patch index f613760..1cbe492 100644 --- a/linux-tkg-patches/5.10/0003-glitched-base.patch +++ b/linux-tkg-patches/5.10/0003-glitched-base.patch @@ -526,7 +526,7 @@ index b0cefe94920d..890165099b07 100644 * that. */ -#define DEFAULT_MAX_MAP_COUNT (262144) -+#define DEFAULT_MAX_MAP_COUNT (524288) ++#define DEFAULT_MAX_MAP_COUNT (16777216) extern int sysctl_max_map_count; diff --git a/linux-tkg-patches/5.15/0003-glitched-base.patch b/linux-tkg-patches/5.15/0003-glitched-base.patch index cd01ada..9641cca 100644 --- a/linux-tkg-patches/5.15/0003-glitched-base.patch +++ b/linux-tkg-patches/5.15/0003-glitched-base.patch @@ -526,7 +526,7 @@ index b0cefe94920d..890165099b07 100644 * that. */ -#define DEFAULT_MAX_MAP_COUNT (262144) -+#define DEFAULT_MAX_MAP_COUNT (524288) ++#define DEFAULT_MAX_MAP_COUNT (16777216) extern int sysctl_max_map_count; diff --git a/linux-tkg-patches/5.16/0003-glitched-base.patch b/linux-tkg-patches/5.16/0003-glitched-base.patch index 4ad1d55..b4088da 100644 --- a/linux-tkg-patches/5.16/0003-glitched-base.patch +++ b/linux-tkg-patches/5.16/0003-glitched-base.patch @@ -538,7 +538,7 @@ index b0cefe94920d..890165099b07 100644 * that. */ -#define DEFAULT_MAX_MAP_COUNT (262144) -+#define DEFAULT_MAX_MAP_COUNT (524288) ++#define DEFAULT_MAX_MAP_COUNT (16777216) extern int sysctl_max_map_count; diff --git a/linux-tkg-patches/5.17/0003-glitched-base.patch b/linux-tkg-patches/5.17/0003-glitched-base.patch index 4ad1d55..b4088da 100644 --- a/linux-tkg-patches/5.17/0003-glitched-base.patch +++ b/linux-tkg-patches/5.17/0003-glitched-base.patch @@ -538,7 +538,7 @@ index b0cefe94920d..890165099b07 100644 * that. */ -#define DEFAULT_MAX_MAP_COUNT (262144) -+#define DEFAULT_MAX_MAP_COUNT (524288) ++#define DEFAULT_MAX_MAP_COUNT (16777216) extern int sysctl_max_map_count; diff --git a/linux-tkg-patches/5.18/0003-glitched-base.patch b/linux-tkg-patches/5.18/0003-glitched-base.patch index 580b495..f220664 100644 --- a/linux-tkg-patches/5.18/0003-glitched-base.patch +++ b/linux-tkg-patches/5.18/0003-glitched-base.patch @@ -538,7 +538,7 @@ index b0cefe94920d..890165099b07 100644 * that. */ -#define DEFAULT_MAX_MAP_COUNT (262144) -+#define DEFAULT_MAX_MAP_COUNT (524288) ++#define DEFAULT_MAX_MAP_COUNT (16777216) extern int sysctl_max_map_count;