[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200910252158.53921.opurdila@ixiacom.com>
Date: Sun, 25 Oct 2009 21:58:53 +0200
From: Octavian Purdila <opurdila@...acom.com>
To: netdev@...r.kernel.org
Subject: [PATCH next-next-2.6] netdev: better dev_name_hash
The current dev_name_hash is not very good at spreading entries when a
large number of interfaces of the same type (e.g. ethXXXXX) are used.
Here are some performance numbers for creating 16000 dummy interfaces with
and without the patch (with per device sysctl entries disabled)
With patch Without patch
real 0m 2.27s real 0m 4.32s
user 0m 0.00s user 0m 0.00s
sys 0m 1.13s sys 0m 2.16s
Signed-off-by: Octavian Purdila <opurdila@...acom.com>
---
net/core/dev.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
View attachment "5504c10b4f96275a4b60d0705f71614b6eba6b5c.diff" of type "text/x-patch" (524 bytes)
Powered by blists - more mailing lists