Re: [PATCH] [next-next-2.6] net: configurable device name hash

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephen Hemminger
Date: Wednesday, November 11, 2009 - 3:24 pm

On Wed, 11 Nov 2009 23:47:41 +0200
Octavian Purdila <opurdila@ixiacom.com> wrote:


Remember though that really hash sizes really don't buy that much more speed.
Going from 256 to 1024 gives a 4x benefit but with 10,000 devices that
just means scanning 10 vs. 40 names. It is not like the file system cache
where name lookup is a major component of overhead.

You can still use alloc_large_system_hash, but just constrain it to a maximum
of order 10 or something.

-- 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] [next-next-2.6] net: configurable device name hash, Octavian Purdila, (Wed Nov 11, 12:16 pm)
Re: [PATCH] [next-next-2.6] net: configurable device name hash, Octavian Purdila, (Wed Nov 11, 12:38 pm)
Re: [PATCH] [next-next-2.6] net: configurable device name hash, Stephen Hemminger, (Wed Nov 11, 2:33 pm)
Re: [PATCH] [next-next-2.6] net: configurable device name hash, Stephen Hemminger, (Wed Nov 11, 3:24 pm)