lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 28 Aug 2008 09:45:36 +0200
From:	Andi Kleen <>
To:	Eric Dumazet <>
Cc:	David Miller <>,,,,
Subject: Re: cat /proc/net/tcp takes 0.5 seconds on x86_64

> When scanning route cache hash table, we can avoid taking locks for empty 
> buckets.

I'm not sure it's worth it in this case.  A rcu_read_lock() is a nop
(on non preemptible kernel) to very cheap (non atomic increment/decrement in 
cached task_struct) 

If you really wanted to make it faster I think a better strategy
would be to not take it every bucket, but maybe only every 100th
or so. That would still keep preempt off times reasonably low, but
even help when the table is filled. But not sure it would 
be even measurable, really it should be quite cheap.


To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists