lkml.org 
[lkml]   [1999]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] small scheduling optimization

On Tue, 13 Apr 1999, Rik van Riel wrote:

> > > This second patch is just a small optimization to the code calling
> > > the scheduling code. With a program like rc5des running (nice +19)
> > > in the background and NOTHING in the foreground Linux still goes
> > > through the scheduler 50 times a second!
> >
> > hm, it should only go 5 times a second into the scheduler if this is
> > the only process running. Are you sure that it's 50 times a second?
>
> A nice +19 process only has a timeslice of 10 (20 if it's
> alone) milliseconds. That will give 50 reschedules and a

(right.)

> lot of cache corruption per second...

what cache-corruption do you mean? There is no cache corruption if only
one process is running (per CPU), and your patch has absolutely no effect
when we run more than 1 nice+19 CPU-eater process.

-- 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:51    [W:0.072 / U:0.332 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site