public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* RE: Why HZ on i386 is 100 ?
@ 2002-04-17  0:33 Chen, Kenneth W
  2002-04-17  1:02 ` Davide Libenzi
  0 siblings, 1 reply; 68+ messages in thread
From: Chen, Kenneth W @ 2002-04-17  0:33 UTC (permalink / raw)
  To: 'Davide Libenzi', davidm
  Cc: Linus Torvalds, Linux Kernel Mailing List

If you change HZ to 1000, you need to change PROC_CHANGE_PENALTY
accordingly.  Otherwise, process would get preempted before its time slice
gets expired.  The net effect is more context switch than necessary, which
could explain the 10% difference.


-----Original Message-----
From: Davide Libenzi [mailto:davidel@xmailserver.org]
Sent: Tuesday, April 16, 2002 11:10 AM
To: davidm@hpl.hp.com
Cc: Linus Torvalds; Linux Kernel Mailing List
Subject: Re: Why HZ on i386 is 100 ?


On Tue, 16 Apr 2002, David Mosberger wrote:

> >>>>> On Tue, 16 Apr 2002 10:18:18 -0700 (PDT), Davide Libenzi
<davidel@xmailserver.org> said:
>
>   Davide> i still have pieces of paper on my desk about tests done on
>   Davide> my dual piii where by hacking HZ to 1000 the kernel build
>   Davide> time went from an average of 2min:30sec to an average
>   Davide> 2min:43sec. that is pretty close to 10%
>
> Did you keep the timeslice roughly constant?

it was 2.5.1 time and it was still ruled by TICK_SCALE that made the
timeslice to drop from 60ms ( 100HZ ) to 21ms ( 1000HZ ).




- Davide


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 68+ messages in thread
* RE: Why HZ on i386 is 100 ?
@ 2002-04-16 10:41 Cabaniols, Sebastien
  0 siblings, 0 replies; 68+ messages in thread
From: Cabaniols, Sebastien @ 2002-04-16 10:41 UTC (permalink / raw)
  Cc: linux-kernel



>> -----Original Message-----
>> From: Olaf Fraczyk [mailto:olaf@navi.pl]
>> Sent: mardi 16 avril 2002 12:02
>> To: Liam Girdwood
>> Cc: BALBIR SINGH; William Lee Irwin III; linux-kernel@vger.kernel.org
>> Subject: Re: Why HZ on i386 is 100 ?
>> 
>> 
>> On 2002.04.16 12:29 Liam Girdwood wrote:
>> > On Tue, 2002-04-16 at 09:18, BALBIR SINGH wrote:
>> > > I remember seeing somewhere unix system VII used to have 
>> HZ set to
>> > 60
>> > > for the machines built in the 70's. I wonder if todays 
>> pentium iiis
>> > and ivs
>> > > should still use HZ of 100, though their internal clock 
>> is in GHz.
>> > >
>> > > I think somethings in the kernel may be tuned for the 
>> value of HZ,
>> > these
>> > > things would be arch specific.
>> > >
>> > > Increasing the HZ on your system should change the scheduling
>> > behaviour,
>> > > it could lead to more aggresive scheduling and could affect the
>> > > behaviour of the VM subsystem if scheduling happens more 
>> frequently.
>> > I am
>> > > just guessing, I do not know.
>> > >
>> > 
>> > I remember reading that a higher HZ value will make your 
>> machine more
>> > responsive, but will also mean that each running process 
>> will have a
>> > smaller CPU time slice and that the kernel will spend more CPU time
>> > scheduling at the expense of processes.
>> > 
>> Has anyone measured this?
>> This shouldn't be a big problem, because some architectures 
>> use value 
>> 1024, eg. Alpha, ia-64.
>> And todays Intel/AMD 32-bit processors are as fast as Alpha was 1-2 
>> years ago.

Anyone knows if this would be interesting to decrease this value
for computationnal farms and CPU/memory bound tasks ?


^ permalink raw reply	[flat|nested] 68+ messages in thread
* Why HZ on i386 is 100 ?
@ 2002-04-16  7:47 Olaf Fraczyk
  2002-04-16  8:14 ` William Lee Irwin III
                   ` (2 more replies)
  0 siblings, 3 replies; 68+ messages in thread
From: Olaf Fraczyk @ 2002-04-16  7:47 UTC (permalink / raw)
  To: linux-kernel

Hi,
I would like to know why exactly this value was choosen.
Is it safe to change it to eg. 1024? Will it break anything?
What else should I change to get it working:
CLOCKS_PER_SEC?
Please CC me.

Regards,

Olaf Fraczyk



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

end of thread, other threads:[~2002-04-28 23:55 UTC | newest]

Thread overview: 68+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3CC4861C.F21859A6@mvista.com.suse.lists.linux.kernel>
     [not found] ` <E16zuPf-0007yD-00@the-village.bc.nu.suse.lists.linux.kernel>
2002-04-23  7:17   ` Why HZ on i386 is 100 ? Andi Kleen
2002-04-23 19:09     ` george anzinger
2002-04-24  1:42       ` Alan Cox
2002-04-24 20:20         ` george anzinger
2002-04-27 20:26           ` Alan Cox
2002-04-28  6:02             ` george anzinger
2002-04-28  9:12               ` Alan Cox
2002-04-28 17:34                 ` george anzinger
2002-04-28 18:59                   ` Alan Cox
2002-04-28 21:50                     ` george anzinger
2002-04-29  0:14                       ` Alan Cox
2002-04-23 19:24     ` george anzinger
2002-04-23 19:35       ` Andi Kleen
2002-04-24 17:25         ` Maciej W. Rozycki
2002-04-17  0:33 Chen, Kenneth W
2002-04-17  1:02 ` Davide Libenzi
  -- strict thread matches above, loose matches on Subject: below --
2002-04-16 10:41 Cabaniols, Sebastien
2002-04-16  7:47 Olaf Fraczyk
2002-04-16  8:14 ` William Lee Irwin III
2002-04-16  8:18   ` BALBIR SINGH
2002-04-16 10:29     ` Liam Girdwood
2002-04-16 10:01       ` Olaf Fraczyk
2002-04-16 13:35         ` Terje Eggestad
2002-04-16 13:38           ` Mark Mielke
2002-04-16 13:55             ` Terje Eggestad
2002-04-16 15:32             ` Rik van Riel
2002-04-16 16:12               ` Chris Friesen
2002-04-16 17:12               ` Mark Mielke
2002-04-16 13:58           ` Alan Cox
2002-04-17  0:22             ` H. Peter Anvin
2002-04-16 16:27         ` Linus Torvalds
2002-04-16 16:50           ` David Mosberger
2002-04-16 17:18             ` Davide Libenzi
2002-04-16 17:52               ` David Mosberger
2002-04-16 18:10                 ` Davide Libenzi
2002-04-17  0:49               ` David Mosberger
2002-04-17  0:57                 ` Robert Love
2002-04-17  1:07                   ` Davide Libenzi
2002-04-17  5:18                   ` Mark Mielke
2002-04-17  5:34                     ` Linus Torvalds
2002-04-17  6:01                       ` Robert Love
2002-04-17  6:17                         ` David Mosberger
2002-04-17  7:59                         ` arjan
2002-04-17  8:04                         ` Matti Aarnio
2002-04-23 22:42                           ` Albert D. Cahalan
2002-04-17 10:12                       ` Martin Dalecki
2002-04-18  1:51                   ` Dan Mann
2002-04-17  1:22                 ` Davide Libenzi
2002-04-17  3:19                 ` Ben Greear
2002-04-17  7:55                 ` Helge Hafting
2002-04-21 18:00                 ` Pavel Machek
2002-04-22 17:20                   ` John Alvord
2002-04-22 21:52                     ` george anzinger
2002-04-22 23:06                       ` J.D. Bakker
2002-04-22 23:26                       ` Anton Blanchard
2002-04-23 19:03                         ` george anzinger
2002-04-23  7:08                       ` Alan Cox
2002-04-22 17:24                   ` David Mosberger
2002-04-16 12:42     ` Richard B. Johnson
2002-04-16 12:31   ` Richard B. Johnson
2002-04-16 14:04 ` Bill Davidsen
2002-04-16 21:34 ` bert hubert
2002-04-16 22:21   ` Andreas Dilger
2002-04-16 22:37     ` Herbert Xu
2002-04-16 22:56       ` Andreas Dilger
2002-04-17  0:34         ` J. Dow
2002-04-17  2:40         ` Herbert Xu
2002-04-17 12:44       ` Kent Borg

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