diff options
author | Adrian Calianu <adrian.calianu@enea.com> | 2021-05-11 09:42:24 +0200 |
---|---|---|
committer | Adrian Calianu <Adrian.Calianu@enea.com> | 2021-05-12 21:56:14 +0100 |
commit | c6e89e8a31eeeb82c5711cba8235e7e55d9be6a8 (patch) | |
tree | 93a3d96c027a437fc9b168d07ab2ad62248d77d1 /patches/boot_time_opt/0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch | |
parent | 7a93e54032bb148a92e16b59736a1b76fedae319 (diff) | |
download | enea-kernel-cache-c6e89e8a31eeeb82c5711cba8235e7e55d9be6a8.tar.gz |
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 <adrian.calianu@enea.com>
Diffstat (limited to 'patches/boot_time_opt/0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch')
-rw-r--r-- | patches/boot_time_opt/0111-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch | 28 |
1 files changed, 28 insertions, 0 deletions
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 @@ | |||
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
2 | From: Arjan van de Ven <arjan@linux.intel.com> | ||
3 | Date: Fri, 6 Jan 2017 15:34:09 +0000 | ||
4 | Subject: [PATCH] ipv4/tcp: allow the memory tuning for tcp to go a little | ||
5 | bigger than default | ||
6 | |||
7 | --- | ||
8 | net/ipv4/tcp.c | 4 ++-- | ||
9 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
10 | |||
11 | diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c | ||
12 | index 2384ac048bea..222581b07b85 100644 | ||
13 | --- a/net/ipv4/tcp.c | ||
14 | +++ b/net/ipv4/tcp.c | ||
15 | @@ -4195,8 +4195,8 @@ void __init tcp_init(void) | ||
16 | tcp_init_mem(); | ||
17 | /* Set per-socket limits to no more than 1/128 the pressure threshold */ | ||
18 | limit = nr_free_buffer_pages() << (PAGE_SHIFT - 7); | ||
19 | - max_wshare = min(4UL*1024*1024, limit); | ||
20 | - max_rshare = min(6UL*1024*1024, limit); | ||
21 | + max_wshare = min(16UL*1024*1024, limit); | ||
22 | + max_rshare = min(16UL*1024*1024, limit); | ||
23 | |||
24 | init_net.ipv4.sysctl_tcp_wmem[0] = SK_MEM_QUANTUM; | ||
25 | init_net.ipv4.sysctl_tcp_wmem[1] = 16*1024; | ||
26 | -- | ||
27 | https://clearlinux.org | ||
28 | |||