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)
commitbd68a2a854ad5a85f0c8d0a9c8048ca3f6391efb
tree0cb804e92986b27471e99a0473f02f9d91b2a256
parenta13925a46ebc176c4703c25b5f2edebba5bd2506
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