lkml.org 
[lkml]   [1999]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] HZ change for ix86
On Sun, 10 Jan 1999, Alan Cox wrote:

> > The idea of switching and rescheduling in Linux upon every
> > system call (basically trivial, just schedule() before the request) just
> > might be worth a hack. This is what "they" did in the days of slow CPUs
> > and 100s of interactive users.
>
> Its not needed. Linux already gives up the CPU if you return from a system
> call and your timeslice has expired. The timer code sets
> current->need_resched=1
>
> The syscall return path checks it
>
> Alan
>
True enough about an expired time-slice. However, VMS made sure that
a single task could not hog the CPU and system services by forcing
any task that makes a system call to give up the rest of its time-
slice (quantum --in microfortnights --eh).



Cheers,
Dick Johnson
***** FILE SYSTEM WAS MODIFIED *****
Penguin : Linux version 2.1.131 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
Wisdom : It's not a Y2K problem. It's a Y2Day problem.



-
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.076 / U:1.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site