public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Few interrupts with NO_HZ
@ 2007-08-06 10:52 Jan Engelhardt
  2007-08-06 13:47 ` Chris Snook
  2007-08-06 22:31 ` Kyle McMartin
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Engelhardt @ 2007-08-06 10:52 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hi,


this more of an informational question. So:

kernel version is 2.6.22.1 on i686

/proc/uptime 
9917.81 9140.90 (2h45m)

/proc/cpuinfo:
           CPU0
  0:        282   IO-APIC-edge      timer

this is kinda neat, I expected much more interrupts than just 282 since 
boot. What kernel code actually uses the irq0 timer?


thanks,
	Jan
-- 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Few interrupts with NO_HZ
  2007-08-06 10:52 Few interrupts with NO_HZ Jan Engelhardt
@ 2007-08-06 13:47 ` Chris Snook
  2007-08-06 14:28   ` Jan Engelhardt
  2007-08-06 22:31 ` Kyle McMartin
  1 sibling, 1 reply; 6+ messages in thread
From: Chris Snook @ 2007-08-06 13:47 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List

Jan Engelhardt wrote:
> Hi,
> 
> 
> this more of an informational question. So:
> 
> kernel version is 2.6.22.1 on i686
> 
> /proc/uptime 
> 9917.81 9140.90 (2h45m)
> 
> /proc/cpuinfo:
>            CPU0
>   0:        282   IO-APIC-edge      timer
> 
> this is kinda neat, I expected much more interrupts than just 282 since 
> boot. What kernel code actually uses the irq0 timer?

If you don't have an HPET (and most single-processor systems do not) the kernel 
is probably using the PIT to wake the processor from low-power sleep states, 
since the LAPIC timer is disabled in these states.  If your box is mostly idle, 
you might want to use powertop to figure out why it's entering low power states 
so infrequently.

	-- Chris

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Few interrupts with NO_HZ
  2007-08-06 13:47 ` Chris Snook
@ 2007-08-06 14:28   ` Jan Engelhardt
  2007-08-06 14:35     ` Chris Snook
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2007-08-06 14:28 UTC (permalink / raw)
  To: Chris Snook; +Cc: Linux Kernel Mailing List


On Aug 6 2007 09:47, Chris Snook wrote:
>> 
>> this more of an informational question. So:
>> kernel version is 2.6.22.1 on i686
>> /proc/uptime 9917.81 9140.90 (2h45m)
>> /proc/cpuinfo:
>>            CPU0
>>   0:        282   IO-APIC-edge      timer
>> 
>> this is kinda neat, I expected much more interrupts than just 282
>> since boot. What kernel code actually uses the irq0 timer?
>
> If you don't have an HPET (and most single-processor systems do not)

This is an AMD Athlon with 'Thoroughbred' core; it does not seem to
have C-states at all (or: exactly one). It clearly is not idle all the
time, sometimes I run povray. (And 282 has not changed since the
morning.)


	Jan
-- 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Few interrupts with NO_HZ
  2007-08-06 14:28   ` Jan Engelhardt
@ 2007-08-06 14:35     ` Chris Snook
  0 siblings, 0 replies; 6+ messages in thread
From: Chris Snook @ 2007-08-06 14:35 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List

Jan Engelhardt wrote:
> On Aug 6 2007 09:47, Chris Snook wrote:
>>> this more of an informational question. So:
>>> kernel version is 2.6.22.1 on i686
>>> /proc/uptime 9917.81 9140.90 (2h45m)
>>> /proc/cpuinfo:
>>>            CPU0
>>>   0:        282   IO-APIC-edge      timer
>>>
>>> this is kinda neat, I expected much more interrupts than just 282
>>> since boot. What kernel code actually uses the irq0 timer?
>> If you don't have an HPET (and most single-processor systems do not)
> 
> This is an AMD Athlon with 'Thoroughbred' core; it does not seem to
> have C-states at all (or: exactly one). It clearly is not idle all the
> time, sometimes I run povray. (And 282 has not changed since the
> morning.)
> 
> 
> 	Jan

In that case, it's probably the early bootstrap code that runs before the TSC is 
calibrated.  PIT sucks, but it sucks very reliably, so it's a good basis for 
calibrating the other timekeeping devices.  Once you have something better set 
up, you don't need it anymore if you're not doing C-state transitions.

	-- Chris

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Few interrupts with NO_HZ
  2007-08-06 10:52 Few interrupts with NO_HZ Jan Engelhardt
  2007-08-06 13:47 ` Chris Snook
@ 2007-08-06 22:31 ` Kyle McMartin
  1 sibling, 0 replies; 6+ messages in thread
From: Kyle McMartin @ 2007-08-06 22:31 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List

On Mon, Aug 06, 2007 at 12:52:36PM +0200, Jan Engelhardt wrote:
>            CPU0
>   0:        282   IO-APIC-edge      timer

Look at the LOC line.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Few interrupts with NO_HZ
       [not found] <fa.09fMUH3GW8WqIBDx7yLbNn+7hAo@ifi.uio.no>
@ 2007-08-06 23:22 ` Robert Hancock
  0 siblings, 0 replies; 6+ messages in thread
From: Robert Hancock @ 2007-08-06 23:22 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List

Jan Engelhardt wrote:
> Hi,
> 
> 
> this more of an informational question. So:
> 
> kernel version is 2.6.22.1 on i686
> 
> /proc/uptime 
> 9917.81 9140.90 (2h45m)
> 
> /proc/cpuinfo:
>            CPU0
>   0:        282   IO-APIC-edge      timer
> 
> this is kinda neat, I expected much more interrupts than just 282 since 
> boot. What kernel code actually uses the irq0 timer?

The kernel likely switched to using the local APIC timer after bootup..

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@nospamshaw.ca
Home Page: http://www.roberthancock.com/


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-08-06 23:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-06 10:52 Few interrupts with NO_HZ Jan Engelhardt
2007-08-06 13:47 ` Chris Snook
2007-08-06 14:28   ` Jan Engelhardt
2007-08-06 14:35     ` Chris Snook
2007-08-06 22:31 ` Kyle McMartin
     [not found] <fa.09fMUH3GW8WqIBDx7yLbNn+7hAo@ifi.uio.no>
2007-08-06 23:22 ` Robert Hancock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox