All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: HZ, preferably as small as possible
@ 2002-07-11  2:46 Grover, Andrew
  2002-07-11  3:01 ` Jeff Garzik
  2002-07-11  7:09 ` george anzinger
  0 siblings, 2 replies; 76+ messages in thread
From: Grover, Andrew @ 2002-07-11  2:46 UTC (permalink / raw)
  To: 'CaT', Benjamin LaHaise; +Cc: Andrew Morton, Grover, Andrew, Linux

> From: CaT [mailto:cat@zip.com.au] 
> On Wed, Jul 10, 2002 at 05:42:51PM -0400, Benjamin LaHaise wrote:
> > On Wed, Jul 10, 2002 at 02:38:32PM -0700, Andrew Morton wrote:
> > > OK, I'll grant that.  Why is this useful?
> > 
> > Think video playback, where you want to queue the frame to 
> be played as 
> > close to the correct 1/60s time as possible.  With HZ=100, 
> the code will 
> 
> Or 1/50 (think PAL), no? (Of course HZ=100 would be sweet for that. ;)

I don't know if I should mention this, but...

Win2k's default timer tick is 10ms (i.e. 100HZ) but it will go as low as 1ms
(1000HZ) if people request timers with that level of granularity. On the
fly.

So, a changing tick *can* be done. If Linux does the same thing, seems like
everyone is happy. What are the obstacles to this for Linux? If code is
based on the assumption of a constant timer tick, I humbly assert that the
code is broken.

Regards -- Andy

^ permalink raw reply	[flat|nested] 76+ messages in thread
* HZ, preferably as small as possible
@ 2002-07-10 19:59 Grover, Andrew
  2002-07-10 21:09 ` george anzinger
                   ` (2 more replies)
  0 siblings, 3 replies; 76+ messages in thread
From: Grover, Andrew @ 2002-07-10 19:59 UTC (permalink / raw)
  To: Linux

I'd like to see HZ closer to 100 than 1000, for CPU power reasons. Processor
power states like C3 may take 100 microseconds+ to enter/leave - time when
both the CPU isn't doing any work, but still drawing power as if it was. We
pop out of C3 whenever there is an interrupt, so reducing timer interrupts
is good from a power standpoint by amortizing the transition penalty over a
longer period of power savings.

But on the other hand, increasing HZ has perf/latency benefits, yes? Have
these been quantified? I'd either like to see a HZ that has balanced
power/performance, or could we perhaps detect we are on a system that cares
about power (aka a laptop) and tweak its value at runtime?

Regards -- Andy

-----------------------------
Andrew Grover
Intel Labs / Mobile Architecture
andrew.grover@intel.com


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

end of thread, other threads:[~2002-07-18 13:21 UTC | newest]

Thread overview: 76+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-11  2:46 HZ, preferably as small as possible Grover, Andrew
2002-07-11  3:01 ` Jeff Garzik
2002-07-11 11:45   ` Alan Cox
2002-07-11 17:08   ` Martin Dalecki
2002-07-11 19:21     ` Albert D. Cahalan
2002-07-16  9:17       ` Kai Henningsen
2002-07-11 20:34     ` Bill Davidsen
2002-07-12 12:01       ` Martin Dalecki
2002-07-15  5:15       ` Linus Torvalds
2002-07-15  6:56         ` Albert D. Cahalan
2002-07-15  8:24           ` Russell King
2002-07-15 15:48             ` David Mosberger
2002-07-15 18:20               ` Albert D. Cahalan
2002-07-15 18:30                 ` David Mosberger
2002-07-15 16:07             ` Albert D. Cahalan
2002-07-15 17:06               ` Russell King
2002-07-15 18:43                 ` Albert D. Cahalan
2002-07-15 18:53                   ` Russell King
2002-07-15 18:50               ` Linus Torvalds
2002-07-15 20:15                 ` Albert D. Cahalan
2002-07-15  8:58         ` Dave Mielke
2002-07-11  7:09 ` george anzinger
  -- strict thread matches above, loose matches on Subject: below --
2002-07-10 19:59 Grover, Andrew
2002-07-10 21:09 ` george anzinger
2002-07-11  6:03   ` Hannu Savolainen
2002-07-11  7:15     ` george anzinger
2002-07-12  0:36       ` Stevie O
2002-07-12  0:50         ` Thunder from the hill
2002-07-12  0:55           ` Robert Love
2002-07-12  0:58             ` Thunder from the hill
2002-07-12  1:24             ` Alan Cox
2002-07-12  1:37             ` Mark Hahn
2002-07-12  1:09         ` george anzinger
2002-07-12  1:26           ` Roland Dreier
2002-07-12 17:30             ` george anzinger
2002-07-12  1:35           ` Stevie O
2002-07-12  3:01         ` Bernd Eckenfels
2002-07-11 12:54     ` Thunder from the hill
2002-07-11 15:59       ` Martin Dalecki
2002-07-10 21:28 ` Andrew Morton
2002-07-10 21:35   ` Benjamin LaHaise
2002-07-10 21:38     ` Andrew Morton
2002-07-10 21:42       ` Benjamin LaHaise
2002-07-11  2:14         ` CaT
2002-07-11 17:01     ` Martin Dalecki
2002-07-10 22:01   ` Thunder from the hill
2002-07-10 22:09     ` Cort Dougan
2002-07-10 22:41     ` Thunder from the hill
2002-07-10 22:47       ` Thunder from the hill
2002-07-10 22:49       ` Eli Carter
2002-07-10 23:05         ` Thunder from the hill
2002-07-10 23:08       ` Dave Mielke
2002-07-10 23:13         ` Thunder from the hill
2002-07-10 23:50     ` J.A. Magallon
2002-07-11  0:28   ` Lincoln Dale
2002-07-11 11:35     ` Kasper Dupont
2002-07-11 12:30       ` Alan Cox
2002-07-11 13:37         ` Kasper Dupont
2002-07-11 15:46           ` Alan Cox
2002-07-11 18:51       ` george anzinger
2002-07-15  5:06 ` Linus Torvalds
2002-07-15 16:26   ` Robert Love
2002-07-15 18:56     ` Linus Torvalds
2002-07-15 19:52       ` mbs
2002-07-15 20:01         ` yodaiken
2002-07-16 11:41   ` Vojtech Pavlik
2002-07-17 19:33   ` Daniel Phillips
2002-07-17 20:31     ` Richard B. Johnson
2002-07-17 20:40       ` Daniel Phillips
2002-07-17 21:02         ` Richard B. Johnson
2002-07-17 21:02       ` Linus Torvalds
2002-07-17 21:16         ` Daniel Phillips
2002-07-18 12:57         ` Richard B. Johnson
2002-07-18 13:25           ` Daniel Phillips
2002-07-18 10:10       ` Kai Henningsen
2002-07-17 20:55     ` Linus Torvalds

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.