Description of problem: Needless battery drain when squid is in idle mode. Using squid for cross-application cache, intelligent parent cache selection, URLs remapping etc. Version-Release number of selected component (if applicable): squid-3.0.STABLE18-1.fc11.x86_64 How reproducible: Always Steps to Reproduce: 1. service squid start 2. powertop Actual results: Top causes for wakeups: 8.8% (101.6) squid : __mod_timer (process_timeout) Expected results: Top causes for wakeups: 0.0% ( 0.0) squid : __mod_timer (process_timeout) :-) Additional info:
The primary problem of regular timer got fixed. powertop now displays for squid only: Top causes for wakeups: 3.1% ( 2.3) squid : __mod_timer (process_timeout) Still strace displays for squid some IMO needless syscalls so it would be nice to check their reason: Process 4338 attached - interrupt to quit epoll_wait(6, {}, 16384, 62) = 0 epoll_wait(6, {}, 16384, 449) = 0 epoll_wait(6, {}, 16384, 0) = 0 epoll_wait(6, {}, 16384, 0) = 0 epoll_wait(6, {}, 16384, 0) = 0 epoll_wait(6, {}, 16384, 0) = 0 epoll_wait(6, {}, 16384, 0) = 0 epoll_wait(6, {}, 16384, 0) = 0 epoll_wait(6, {}, 16384, 0) = 0 epoll_wait(6, {}, 16384, 0) = 0 epoll_wait(6, {}, 16384, 550) = 0 epoll_wait(6, {}, 16384, 1) = 0 epoll_wait(6, {}, 16384, 0) = 0 epoll_wait(6, {}, 16384, 449) = 0 epoll_wait(6, {}, 16384, 0) = 0 epoll_wait(6, {}, 16384, 0) = 0 epoll_wait(6, {}, 16384, 0) = 0 (this number of lines is for approx. 1 sec)