diff options
author | Adrian Calianu <adrian.calianu@enea.com> | 2017-05-22 08:43:50 +0200 |
---|---|---|
committer | Adrian Dudau <adrian.dudau@enea.com> | 2017-05-23 14:58:35 +0200 |
commit | 16b0e3313f53566481c106ace9992e477f8efe9b (patch) | |
tree | 5ec03a62db7836d2fb59813cb0c912751556c378 /patches/boot_time_opt/0122-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch | |
parent | 28da254d1c5ae012a6e064671aa14850c2a21a25 (diff) | |
download | enea-kernel-cache-16b0e3313f53566481c106ace9992e477f8efe9b.tar.gz |
patches: Boot time optimizations with ClearLinux patches
Signed-off-by: Adrian Calianu <adrian.calianu@enea.com>
Signed-off-by: Adrian Dudau <adrian.dudau@enea.com>
Diffstat (limited to 'patches/boot_time_opt/0122-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch')
-rw-r--r-- | patches/boot_time_opt/0122-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/0122-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch b/patches/boot_time_opt/0122-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch new file mode 100644 index 0000000..eb44cec --- /dev/null +++ b/patches/boot_time_opt/0122-ipv4-tcp-allow-the-memory-tuning-for-tcp-to-go-a-lit.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 5cf7ba4ba9c9d770aad9e52deaa3730f259df9f1 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 122/124] ipv4/tcp: allow the memory tuning for tcp to go a | ||
5 | little 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 6a90a0e130dc..32e43ce7c60e 100644 | ||
13 | --- a/net/ipv4/tcp.c | ||
14 | +++ b/net/ipv4/tcp.c | ||
15 | @@ -3341,8 +3341,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 | sysctl_tcp_wmem[0] = SK_MEM_QUANTUM; | ||
25 | sysctl_tcp_wmem[1] = 16*1024; | ||
26 | -- | ||
27 | 2.11.1 | ||
28 | |||