| To: | meissner@xxxxxxx (Marcus Meissner) |
|---|---|
| Subject: | Re: [patch] do not readlock all buckets in /proc/net/tcp |
| From: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
| Date: | Mon, 05 Jul 2004 21:27:54 +1000 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20040705110949.GA1092@xxxxxxx> |
| Organization: | Core |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | tin/1.7.4-20040225 ("Benbecula") (UNIX) (Linux/2.4.26-1-686-smp (i686)) |
Marcus Meissner <meissner@xxxxxxx> wrote: > > This patch makes the files /proc/net/tcp and /proc/net/tcp6 not acquire > the readlock for every bucket. > > On ppc64 and ia64 the readlocks are so expensive, that reading /proc/net/tcp > takes 0.25 seconds on a usual p670 LPAR. > > And it locks 65536 buckets where just 20 chains are used at all in a normal > non-netserver setup. Why not use NETLINK+TCP_DIAG instead? It's much faster. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [patch] do not readlock all buckets in /proc/net/tcp, Marcus Meissner |
|---|---|
| Next by Date: | Re: [patch] do not readlock all buckets in /proc/net/tcp, Herbert Xu |
| Previous by Thread: | [patch] do not readlock all buckets in /proc/net/tcp, Marcus Meissner |
| Next by Thread: | Re: [patch] do not readlock all buckets in /proc/net/tcp, Marcus Meissner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |