[Twisted-Python] carbon-relay eating CPU - EAGAIN (Resource temporarily unavailable)?

Quan Tong Anh anhquankitty at gmail.com
Tue Nov 26 06:54:39 MST 2013


On Tue, Nov 26, 2013 at 6:51 PM, Phil Mayers <p.mayers at imperial.ac.uk>wrote:

>
> I assume xen-domU means "Linux" as the guest OS; which kernel version, out
> of interest.


3.2.0-53-virtual


>
> I don't know about anyone else, but I don't know what carbon-relay is. A
> quick google suggests it's part of that graphite monitoring/RRD replacement
> thing; which version are you running (Or: what reactor is it using)?
>

Yes, it's here:
https://graphite.readthedocs.org/en/latest/carbon-daemons.html#carbon-relay-py

The version I'm using is 0.9.12.


>
> How many open files do you have?
>

1664.


>
>
>  `strace`:
>>
>
> Without timestamps it's difficult to interpret this unambiguously; that
> could be a microsecond or minute we're seeing ;o)


Here's for you:

13:51:31 accept(7, {sa_family=AF_INET, sin_port=htons(57236),
sin_addr=inet_addr("198.61.194.221")}, [16]) = 216

13:51:31 accept(7, {sa_family=AF_INET, sin_port=htons(39755),
sin_addr=inet_addr("50.56.175.61")}, [16]) = 216

13:51:31 accept(7, 0x7fff2eebc270, [16]) = -1 EAGAIN (Resource temporarily
unavailable)

13:51:31 accept(7, {sa_family=AF_INET, sin_port=htons(49236),
sin_addr=inet_addr("198.101.238.239")}, [16]) = 216

13:51:31 accept(7, {sa_family=AF_INET, sin_port=htons(49639),
sin_addr=inet_addr("166.78.2.103")}, [16]) = 216
13:51:31 accept(7, 0x7fff2eebc270, [16]) = -1 EAGAIN (Resource temporarily
unavailable)
...

There are about 20 to 30 connections per second.


>> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://twistedmatrix.com/pipermail/twisted-python/attachments/20131126/ac20f814/attachment.html>


More information about the Twisted-Python mailing list