diff options
author | Eric Dumazet <edumazet@google.com> | 2012-11-30 11:08:52 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-01 17:36:37 +0100 |
commit | fd90b29d757827ab12d6669292612308ec249532 (patch) | |
tree | ba0a7cbd8520e3e7d4a45ff91e9e1b5ea4850810 /include/net | |
parent | Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/bwh... (diff) | |
download | linux-fd90b29d757827ab12d6669292612308ec249532.tar.xz linux-fd90b29d757827ab12d6669292612308ec249532.zip |
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 <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions