[collectd] netlink patch against tcpconns.c

Jacek Jedrzejczak jacol at ids.gda.pl
Wed Aug 25 13:46:59 CEST 2010


Hi,

becasue reading from /proc/net/tcp[6] takes a LOT of time, especially 
when there are thousands of connections. I've adopted a patch on netstat 
that uses netlink interface:

http://www.ducksong.com/misc/netstat-netlink-diag-patch.txt

as described in:

http://amailbox.org/mailarchive/linux-netdev/2008/8/26/3086024

The difference is like night and day. (netstat -n -t vs ss -a -n t)

Maybe someone is interested in making it pretty so it could be added to 
the tree.

Thank you for collectd,

	Jack.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: collectd-4.x-tpconns-netlink.patch
Type: text/x-patch
Size: 3418 bytes
Desc: not available
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20100825/32ec8ad0/attachment.bin 


More information about the collectd mailing list