Hi there,
Running powertop on my server reveals amule daemons (amuled, amuleweb) cause a lot of wake up (80 times per second), which is not good for the earth ....
Digging into the code, this is due to main loop composed like this :
loop {
ProcessPendingEvents()
select(some fds, 10ms)
}
The events we are talking about are wx events, but precisely i don't know what kind as i thought wx is a widget toolkit and we are talking about a command line daemon ... However, instrumenting the pending events lists shows that really, there are events to process.
Anyway, thinking i've no use for 'realtime' events handling on my non interactive daemon, i increased the timeout to 1s which results in a much lower power usage (around 10 wkaeup per seconds) and a happy feeling for my planet.
What do you think about this ?
+++
tonio