I finally got a new enough kernel on one of my servers so I could run powertop.
On an otherwise idle system, fail2ban is generating nearly 30 wakeups a second:
64.9% ( 28.0) fail2ban-server : schedule_timeout (process_timeout)
Stracing the process reveals a lot of lines like this:
select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout)
futex(0x9320600, FUTEX_WAKE, 1) = 0
gettimeofday({1185303825, 615120}, NULL) = 0
So it looks like it's basically polling a socket or something with a
short timeout (50k nanoseconds if I'm reading the strace correct which
is basically nothing) on the select. I'm not familiar with python so I
haven't been able to track it down further yet, but a quick check
seemed to reveal that any reads on sockets were done with a timeout of
1 second.
Anyone familiar with python have any other ideas?
-Dave
_______________________________________________
Power mailing list
[email protected]
http://www.bughost.org/mailman/listinfo/power