netlink-based ifconfig() routine replacement
Peter V. Saveliev
peet at altlinux.org
Tue Jul 19 09:56:34 UTC 2011
...
Hi there. I prepared an RT Netlink based netinfo.ifconfig() routine
replacement. It works from 3 to 6 time faster than /sbin/ifconfig
exec|parse and uses netlink(7) socket to communicate with kernel.
I tested it as a blackbox on several platforms:
* ALT Linux ia32, amd64 (kernel 2.6.18,2.6.35)
* Debian arm32 (kernel 2.6.21)
* Ubuntu ia32, amd64 (kernel 2.6.38)
It should work with Python from 2.5 to 2.7. Library requirements:
* socket
* ctypes
* copy
And so far I hope that it can be used as a faster replacement for
netinfo.ifconfig().
To get it from my git clone, checkout `nlconfig` branch:
$ git clone git://projects.radlinux.org/vdsm
...
$ cd vdsm/
$ git checkout -b nlconfig remotes/origin/nlconfig
...
Plain diff is attached.
--
Peter V. Saveliev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nlconfig.diff
Type: text/x-patch
Size: 17198 bytes
Desc: not available
Url : https://fedorahosted.org/pipermail/vdsm-patches/attachments/20110719/df03cdee/attachment.bin
More information about the vdsm-patches
mailing list