On Wed, 2006-18-01 at 19:12 -0800, Ben Greear wrote:
> jamal wrote:

> > And if you are serious about performance you should use netlink.
> 
> If you can show me a snippet of user-space code similar to the
> complexity of what I posted earlier, I'll actually do a benchmark
> against it and my code to see if they are roughly equal.  If so, I'll
> purge this from my patch set and never bother anyone with it again...
> 
> On the other hand, if it requires hard to find and/or half-assed libraries
> and lots of code, don't bother.
> 

Well, i can give you pointers and if you are really serious you will
invest the time.

- use iproute2 and see how one dumps netdevice stats
-  Continue by looking at iproute2/ip/
files iplink.c and ipaddress.c
and note that: 
stats are stored in a TLV IFLA_STATS and are printed in
print_linkinfo() 

The code is not much to study if you are serious about performance.

Thomas Graf as well has been trying to make it simpler to do this kind
stuff. I havent looked at it lately but should make it simpler.

If you can beat the performance of that with your half-assed tool
then i will be interested in showing up. For now you are on your own on
or maybe someone else has time.

cheers,
jamal

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to