lkml.org 
[lkml]   [1998]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Schedule idle
Date
> backround jobs like rc5 _shall_not_ steal 30% cpu time from real important
> computation batch jobs but should only run when the system really is _idle_
> otherwise. even nice-10 vs. nice-19 isnt' decoupled enough:
>
> PID USER PRI NI SIZE RSS SHARE STAT LIB %CPU %MEM TIME COMMAND
> 24819 root 17 10 184 184 132 R N 0 84.1 0.5 0:50 idle
> 24820 root 20 19 184 184 132 R N 0 8.8 0.5 0:05 idle

Decoupled enough for what? If you want RC5 jobs to not even use this tiny
amount of cpu while the batch jobs are running, why not

start batch_job
signal rc5 process to shut down
if( !fork())
exec batch job
else wait()
restart rc5


Making the kernel do what can be done better by a shell script is not good.




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