CPU Usage
-
- Dr Z Level
- Posts: 2246
- Joined: Sun Mar 20, 2005 4:03 pm
- Location: IM: [email protected]
CPU Usage
Why is my (idle) AA server constantly using as much CPU as it can?
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6711
- Joined: Thu Dec 18, 2003 7:03 pm
-
- Dr Z Level
- Posts: 2246
- Joined: Sun Mar 20, 2005 4:03 pm
- Location: IM: [email protected]
These syscalls seem to be looping (strace):
ioctl(4, FIONREAD, [0]) = 0
recvfrom(4, 0x70e7b0, 4000, 0, 0x7fffffa40e50, 0x7fffffa40d18) = -1 EAGAIN (Resource temporarily unavailable)
nanosleep({0, 10000000}, NULL) = 0
nanosleep({0, 100000000}, NULL) = 0
read(0, 0x6a6440, 1) = -1 EAGAIN (Resource temporarily unavailable)
ioctl(4, FIONREAD, [0]) = 0
recvfrom(4, 0x70e7b0, 4000, 0, 0x7fffffa40e50, 0x7fffffa40d18) = -1 EAGAIN (Resource temporarily unavailable)
nanosleep({0, 10000000}, NULL) = 0
nanosleep({0, 100000000}, NULL) = 0
read(0, 0x6a6440, 1) = -1 EAGAIN (Resource temporarily unavailable)
-
- Dr Z Level
- Posts: 2246
- Joined: Sun Mar 20, 2005 4:03 pm
- Location: IM: [email protected]
??? That's an eternity for every CPU that still has electricity flowing through its veins I'd use non-polling network IO if there was a crossplatform way, but no, it's handled by signals in Unix and window events in Windows.
Signals, there was something... nanosleep aborts when signals are received. If someone could find out how to enable signals when a socket receives new data (ioctl probably), we could make the Unix server more responsive.
Signals, there was something... nanosleep aborts when signals are received. If someone could find out how to enable signals when a socket receives new data (ioctl probably), we could make the Unix server more responsive.
-
- Dr Z Level
- Posts: 2246
- Joined: Sun Mar 20, 2005 4:03 pm
- Location: IM: [email protected]