At the time I was doing this, I downloaded the latest nettools version.
The hashing made a very noticable difference on 4000 interfaces, but
I haven't run any real solid benchmarkings at other levels. Can
you tell me some distinguishing mark (version?) on ifconfig that I
can look for?
I'm willing to run such benchmarks, but what would make a good benchmark,
other than ifconfig -a?
And a question for the socket gurus:
Suppose I bind a raw socket to device vlan4001 (ie I have 4k in the list
before that one!!). Currently, that means a linear search on all devices,
right? In that extreme example, I would expect the hash to be very
useful.
Binding to IP addresses have the same issue??
Also, though hashing by name is not horribly exact, hashing on the device
index should be nearly perfect, so finding device 666 might take a search
through only 5 or so devices (find the hash-bucket, walk down the list in
that bucket).
-- Ben Greear (greearb@candelatech.com) http://www.candelatech.com Author of ScryMUD: scry.wanfear.com 4444 (Released under GPL) http://scry.wanfear.com http://scry.wanfear.com/~greear - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/