Re: cat /proc/net/tcp takes 0.5 seconds on x86_64
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2008-08-27 04:19:37
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2008-08-27 04:19:37
Hans de Goede [off-list ref] wrote:
Eric Dumazet wrote:quoted
# dmesg | grep "TCP established hash" TCP established hash table entries: 262144 (order: 10, 4194304 bytes) # time cat /proc/net/tcp >/dev/null real 0m0.091s user 0m0.001s sys 0m0.090sAs quoted above my idle x86_64, using the exact same hash table size, running 2.6.27-rc2.git1 uses 0.520 seconds for that same command, thats a difference of more then a factor 50 !!
That looks like a factor of 5 to me, not 50. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} [off-list ref] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt