lkml.org 
[lkml]   [1999]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Can and should the kernel HZ value be changed?

On Fri, 8 Jan 1999, Pavel Machek wrote:

> Anyway, there's obscure test p->counter > current->counter + 3, which
> probably should be (3 * HZ) / 100. This could do some marginal
> difference in some cases.

nod, good spotting. (it's not obscure, but should be HZ-independent i
agree) decreasing +3 to something less just hides the real problem. (and
causes excessive reschedules between CPU-intensive processes)

> > but after a few seconds, your shell gathers enough 'interactiveness
> > priority' to not hang when you hit 'Enter'.
>
> That agrees with experiment. I just would like login to be fast even
> with CPU hogs running in background, automatically (renice them works).

note that this (fork-time priority sharing) mechanizm makes us 'survive'
fork bombs without problems. There should be no exploitable 'additional
timeslice source' in the system, other than 'time'.

-- mingo


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

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.037 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site