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
..
2011-06-29 05:47:32 -07:00
2011-07-04 21:37:41 -07:00
2011-04-22 11:04:14 -07:00
2011-03-30 00:10:47 -07:00
2011-04-28 13:16:35 -07:00
2011-05-08 13:48:57 -07:00
2011-05-10 15:03:01 -07:00
2011-04-22 11:04:14 -07:00
2011-04-10 18:50:59 -07:00
2011-03-24 18:06:47 -07:00
2011-03-12 15:08:49 -08:00
2011-05-07 22:50:55 -07:00
2011-05-22 21:41:57 -07:00
2010-10-25 13:09:45 -07:00
2011-05-18 18:42:43 -04:00
2011-05-24 13:26:12 -04:00
2011-05-24 15:22:17 +02:00
2011-06-17 16:25:39 -04:00
2010-07-12 12:57:54 -07:00
2010-11-28 18:18:44 -08:00
2011-04-22 11:04:14 -07:00
2011-02-19 18:59:04 -08:00
2011-05-27 13:39:11 -04:00
2011-05-12 23:03:46 -04:00
2011-05-17 17:28:02 -04:00
2011-05-05 10:57:45 -07:00
2011-04-22 11:04:14 -07:00
2011-05-31 15:11:02 -07:00
2011-07-01 17:33:19 -07:00
2011-04-28 13:16:35 -07:00
2011-04-22 11:04:14 -07:00
2011-05-19 17:13:04 -04:00
2011-05-05 10:57:45 -07:00
2011-05-04 12:18:54 -07:00
2011-02-01 15:35:25 -08:00
2011-05-13 16:08:13 -04:00
2011-06-29 05:47:32 -07:00
2011-06-20 13:04:38 -07:00
2010-12-08 12:16:33 -08:00
2010-10-27 11:37:31 -07:00
2011-05-24 01:13:12 -04:00
2011-06-18 11:59:18 -07:00
2011-04-28 13:16:35 -07:00
2011-05-17 14:16:58 -04:00
2011-03-10 00:40:17 -08:00
2010-08-27 19:31:56 -07:00
2011-05-08 15:51:57 -07:00
2009-12-03 16:06:13 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-22 19:37:11 -07:00
2011-06-17 15:27:31 -04:00
2011-03-31 11:26:23 -03:00
2010-12-08 13:47:38 -08:00
2011-05-08 15:28:28 -07:00
2010-11-17 12:27:46 -08:00
2011-03-10 00:40:17 -08:00
2011-02-20 11:10:14 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-10 00:40:17 -08:00
2011-03-31 11:26:23 -03:00
2011-07-07 00:27:05 -07:00
2010-10-27 11:37:32 -07:00
2009-09-30 16:12:20 -07:00
2011-07-07 00:27:05 -07:00
2010-12-16 14:26:56 -08:00
2010-07-12 12:57:54 -07:00
2010-12-12 22:08:17 -08:00
2011-07-01 17:33:19 -07:00
2011-05-10 13:32:48 -07:00
2011-05-11 14:26:58 -04:00
2010-08-30 13:50:45 -07:00