]> git.baikalelectronics.ru Git - kernel.git/commit
net: set SK_MEM_QUANTUM to 4096
authorEric Dumazet <edumazet@google.com>
Mon, 31 Oct 2016 20:32:55 +0000 (13:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Nov 2016 00:59:58 +0000 (20:59 -0400)
commit6f3d17864887fcc5b933b7f3eb688ad372330d3c
tree0cb804e92986b27471e99a0473f02f9d91b2a256
parent6e3b9e0b28f29c8afab08b0413fc966d03e53a6c
net: set SK_MEM_QUANTUM to 4096

Systems with large pages (64KB pages for example) do not always have
huge quantity of memory.

A big SK_MEM_QUANTUM value leads to fewer interactions with the
global counters (like tcp_memory_allocated) but might trigger
memory pressure much faster, giving suboptimal TCP performance
since windows are lowered to ridiculous values.

Note that sysctl_mem units being in pages and in ABI, we also need
to change sk_prot_mem_limits() accordingly.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h