From c6e89e8a31eeeb82c5711cba8235e7e55d9be6a8 Mon Sep 17 00:00:00 2001 From: Adrian Calianu Date: Tue, 11 May 2021 09:42:24 +0200 Subject: boot_time_opt: update patches to 5.10 kernel Patches used in boot time optimization are coming from clearlinux distribution. Update patches correspuding to 5.10 kernel: https://github.com/clearlinux-pkgs/linux/tree/5.10.32-1034 We selected a list of patches from ClearLinux. Those we have considered risky, unknown impact on functionality have been avoided. Change-Id: If01459292a5a383b49944645bd8536d9a62d9de3 Signed-off-by: Adrian Calianu --- ...low-the-memory-tuning-for-tcp-to-go-a-lit.patch | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 patches/boot_time_opt/0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch (limited to 'patches/boot_time_opt/0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch') diff --git a/patches/boot_time_opt/0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch b/patches/boot_time_opt/0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch new file mode 100644 index 0000000..8b95edf --- /dev/null +++ b/patches/boot_time_opt/0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch @@ -0,0 +1,28 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Arjan van de Ven +Date: Fri, 6 Jan 2017 15:34:09 +0000 +Subject: [PATCH] ipv4/tcp: allow the memory tuning for tcp to go a little + bigger than default + +--- + net/ipv4/tcp.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c +index 2384ac048bea..222581b07b85 100644 +--- a/net/ipv4/tcp.c ++++ b/net/ipv4/tcp.c +@@ -4195,8 +4195,8 @@ void __init tcp_init(void) + tcp_init_mem(); + /* Set per-socket limits to no more than 1/128 the pressure threshold */ + limit = nr_free_buffer_pages() << (PAGE_SHIFT - 7); +- max_wshare = min(4UL*1024*1024, limit); +- max_rshare = min(6UL*1024*1024, limit); ++ max_wshare = min(16UL*1024*1024, limit); ++ max_rshare = min(16UL*1024*1024, limit); + + init_net.ipv4.sysctl_tcp_wmem[0] = SK_MEM_QUANTUM; + init_net.ipv4.sysctl_tcp_wmem[1] = 16*1024; +-- +https://clearlinux.org + -- cgit v1.2.3-54-g00ecf