android_kernel_samsung_msm8976/net/sctp
Eric Dumazet f03d78db65 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>
2011-07-07 00:27:05 -07:00
..
associola.c sctp: stop pending timers and purge queues when peer restart asoc 2011-05-31 15:29:17 -07:00
auth.c
bind_addr.c sctp: Fix build failure. 2011-05-21 02:10:23 -04:00
chunk.c
command.c
debug.c
endpointola.c
input.c
inqueue.c
ipv6.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2011-05-20 13:43:21 -07:00
Kconfig
Makefile
objcnt.c
output.c
outqueue.c
primitive.c
probe.c
proc.c net: convert %p usage to %pK 2011-05-24 01:13:12 -04:00
protocol.c net: refine {udp|tcp|sctp}_mem limits 2011-07-07 00:27:05 -07:00
sm_make_chunk.c
sm_sideeffect.c sctp: stop pending timers and purge queues when peer restart asoc 2011-05-31 15:29:17 -07:00
sm_statefuns.c sctp: stop pending timers and purge queues when peer restart asoc 2011-05-31 15:29:17 -07:00
sm_statetable.c
socket.c
ssnmap.c
sysctl.c
transport.c
tsnmap.c
ulpevent.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2011-05-20 13:43:21 -07:00
ulpqueue.c