From: Eric Dumazet Date: Fri, 30 Nov 2012 10:08:52 +0000 (+0000) Subject: tcp: change default tcp hash size X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~45^2~142 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd90b29d757827ab12d6669292612308ec249532;p=pandora-kernel.git tcp: change default tcp hash size As time passed, available memory increased faster than number of concurrent tcp sockets. As a result, a machine with 4GB of ram gets a hash table with 524288 slots, using 8388608 bytes of memory. Lets change that by a 16x factor (one slot for 128 KB of ram) Even if a small machine needs a _lot_ of sockets, tcp lookups are now very efficient, using one cache line per socket. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed