summaryrefslogtreecommitdiffstats
path: root/net/8021q
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-07-07 00:27:05 -0700
committerDavid S. Miller <davem@davemloft.net>2011-07-07 00:27:05 -0700
commitf03d78db65085609938fdb686238867e65003181 (patch)
tree03b8e492d91ad6819a44e0d454af2292e884964c /net/8021q
parenteebb02b1f03b3722d678bfcb560f3b26661ab0d2 (diff)
downloadblackbird-op-linux-f03d78db65085609938fdb686238867e65003181.tar.gz
blackbird-op-linux-f03d78db65085609938fdb686238867e65003181.zip
net: refine {udp|tcp|sctp}_mem limits
Current tcp/udp/sctp global memory limits are not taking into account hugepages allocations, and allow 50% of ram to be used by buffers of a single protocol [ not counting space used by sockets / inodes ...] Lets use nr_free_buffer_pages() and allow a default of 1/8 of kernel ram per protocol, and a minimum of 128 pages. Heavy duty machines sysadmins probably need to tweak limits anyway. References: https://bugzilla.stlinux.com/show_bug.cgi?id=38032 Reported-by: starlight <starlight@binnacle.cx> Suggested-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud