| To: | netdev@xxxxxxxxxxx |
|---|---|
| Subject: | [patch] do not readlock all buckets in /proc/net/tcp |
| From: | Marcus Meissner <meissner@xxxxxxx> |
| Date: | Mon, 5 Jul 2004 13:09:49 +0200 |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.6i |
Hi,
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.
Ciao, Marcus
Changelog:
Readlock only non-empty hash chains to avoid 65536 readlocks.
Signed-Off-By: Marcus Meissner <meissner@xxxxxxx>
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] more DECLARE_MUTEX() in headers crap, Christoph Hellwig |
|---|---|
| Next by Date: | Re: [patch] do not readlock all buckets in /proc/net/tcp, Herbert Xu |
| Previous by Thread: | Re: [PATCH] more DECLARE_MUTEX() in headers crap, Christoph Hellwig |
| Next by Thread: | Re: [patch] do not readlock all buckets in /proc/net/tcp, Herbert Xu |
| Indexes: | [Date] [Thread] [Top] [All Lists] |