[collectd] warning: tcpconns can be expensive

Florian Forster octo at verplant.org
Wed May 7 11:05:02 CEST 2008


Hi James,

thanks for the notice. I'm surprised that the graph shows that the CPU
spends so much time in interrupt handlers.

On the system I'm using at the moment each line has about 150 bytes,
with 10.000 connections I'd expect about 1,5MByte to be processed by
collectd. I doubt that a few MBytes are a problem for any recent
processor, especially if they are in memory at all times.

So it seems to me that the implementation of /proc/net/tcp leaves room
for improvements. Maybe the connections are copied to user space line by
line which would probably cause a lot of context switches..?

Anyway, thanks for the hint, it's always good to know where problems may
occur.

Regards,
-octo
-- 
Florian octo Forster
Hacker in training
GnuPG: 0x91523C3D
http://verplant.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20080507/5de1376d/attachment.pgp 


More information about the collectd mailing list