lkml.org 
[lkml]   [1998]   [Nov]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Schedule idle
On Mon, Nov 09, 1998 at 06:51:24AM -0700, yodaiken@chelm.cs.nmt.edu wrote:

> Why can't you run those tasks at nice 18?

It still only widens the gap between running and sometimes and
running when idle.

It would be nice to be able to specify process to run only when the
system is idle (e.g. main{for(;;);}), if the system is never idle,
then these processes will _never_ run. Ideally, you could have more
than one of these processes doing RR.
For example:

[me:2] caffeine:~$ nice --adjustment=19 ./a.out &
[1] 929
[me:2] caffeine:~$ nice --adjustment=18 ./a.out &
[2] 930

--> wait some, from top (updates 60s) <--

PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
930 me 20 18 192 192 140 R N 0 60.5 0.2 1:17 a.out
929 me 19 19 192 192 140 R N 0 39.3 0.2 0:53 a.out


When what is wanted is that process 929 _never_ run whilst 930 is
running.



-cw

-
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:45    [from the cache]
©2003-2011 Jasper Spaans