Re: Too many timer interrupts in NO_HZ

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <discuss@...>, Linux-pm mailing list <linux-pm@...>, Linux Kernel <linux-kernel@...>, Dipankar Sarma <dipankar@...>, Ingo Molnar <mingo@...>, <venkatesh.pallipadi@...>, <tglx@...>, Arjan van de Ven <arjan@...>, <suresh.b.siddha@...>, Gautham R Shenoy <ego@...>, Chanda Sethia <chanda.sethia@...>
Date: Sunday, March 16, 2008 - 2:17 pm

* Vaidyanathan Srinivasan <svaidy@linux.vnet.ibm.com> [2008-03-03 01:18:13]:

[sniped]
       
 

[sniped]
 

I think I have the answers to some of the above questions.  

Function        Count                   Name
Address

c0219922        : 5		blk_unplug_timeout
c014f464        : 55		wb_timer_fn
c02b2e67        : 350		bnx2_timer
c03efcbc        : 115		neigh_periodic_timer
c012894a        : 220		process_timeout
c027d1c4        : 2		hangcheck_fire
c03fe232        : 3		peer_check_expire
c012e830        : 25		delayed_work_timer_fn
c03afe92        : 2783		ehci_watchdog
c03f1a35        : 10		neigh_timer_handler
c01d7456        : 110		commit_timeout
c04381e9        : 2		addrconf_verify
c03f6d39        : 365		dev_watchdog
c04126bc        : 114		tcp_write_timer

These are roughly the list of functions that were responsible for the
timer interrupts across all cpus including the ones in idle.  Most of
the functions complete the job in interrupt context and also re-queue
the timer.  The count number is the call count in the 120s observation
window across all 4 CPUs.

I got these function addresses from __next_timer_interrupt() in
timer.c.  Previously, I did not look in timer.c since hrtimers were
enabled and I assumed all timer call will be through __run_hrtimer
from hrtimer.c.  The call count of __run_hrtimer was very minimal and
did not correspond to the local timer interrupt count.

These are device driver timers that we need to investigate.  We should
try to migrate them to CPU0 (or some other package) to get really long
uninterrupted CPU sleep time.  

I will post more results after tweaking some of the above timers.

Should PowerTop include local timer interrupt counts as well during
the observation period?  Interrupt do significantly affect CPU sleep
time whether they wakeup any process or not.

Comments?

Thanks,
Vaidy


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Too many timer interrupts in NO_HZ, Vaidyanathan Srinivasan, (Sun Mar 2, 3:48 pm)
Re: Too many timer interrupts in NO_HZ, Vaidyanathan Srinivasan, (Sun Mar 16, 2:17 pm)
Re: [linux-pm] Too many timer interrupts in NO_HZ, Alan Stern, (Sun Mar 16, 10:34 pm)
Re: [linux-pm] Too many timer interrupts in NO_HZ, David Brownell, (Mon Mar 17, 4:44 am)
Re: Too many timer interrupts in NO_HZ, Arjan van de Ven, (Sun Mar 2, 3:57 pm)
Re: Too many timer interrupts in NO_HZ, Vaidyanathan Srinivasan, (Wed Mar 5, 11:38 am)
Re: Too many timer interrupts in NO_HZ, Vaidyanathan Srinivasan, (Sun Mar 2, 4:25 pm)