Bug 517463 - needless battery drain while idle: 100x/sec
Summary: needless battery drain while idle: 100x/sec
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: squid
Version: 11
Hardware: x86_64
OS: Linux
low
low
Target Milestone: ---
Assignee: Jiri Skala
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F11PowerSaving
TreeView+ depends on / blocked
 
Reported: 2009-08-14 07:59 UTC by Jan Kratochvil
Modified: 2014-11-09 22:32 UTC (History)
5 users (show)

Fixed In Version: squid-3.1.0.13-6.fc12.x86_64
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-19 19:17:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jan Kratochvil 2009-08-14 07:59:22 UTC
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:

Comment 1 Jan Kratochvil 2009-09-19 19:17:42 UTC
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)


Note You need to log in before you can comment on or make changes to this bug.