| To: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [patch] do not readlock all buckets in /proc/net/tcp |
| From: | Marcus Meissner <meissner@xxxxxxx> |
| Date: | Mon, 5 Jul 2004 13:35:55 +0200 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <E1BhRda-0001Rs-00@xxxxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20040705110949.GA1092@xxxxxxx> <E1BhRda-0001Rs-00@xxxxxxxxxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.6i |
On Mon, Jul 05, 2004 at 09:27:54PM +1000, Herbert Xu wrote: > 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. Not sure if you want / can fix all proprietary software. Oh, and NETLINK+TCP_DIAG seems to have the same readlock contention problem, see tcpdiag_dump(). Ciao, Marcus |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [patch] do not readlock all buckets in /proc/net/tcp, Herbert Xu |
|---|---|
| Next by Date: | Re: [patch] do not readlock all buckets in /proc/net/tcp, YOSHIFUJI Hideaki / 吉藤英明 |
| Previous by Thread: | Re: [patch] do not readlock all buckets in /proc/net/tcp, Herbert Xu |
| Next by Thread: | Re: [patch] do not readlock all buckets in /proc/net/tcp, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |