[lkml]   [2008]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: SCHED_IDLE documentation
    On Mon, Mar 3, 2008 at 10:31 AM, Arnd Bergmann <> wrote:
    > On Monday 03 March 2008, Ingo Molnar wrote:
    > > > * What's the difference between SCHED_IDLE and SCHED_BATCH?
    > >
    > > SCHED_BATCH can still have nice levels from -20 to +19, it is a modified
    > > SCHED_OTHER/SCHED_NORMAL for "throughput oriented" workloads.
    > >
    > > SCHED_IDLE overrides the nice settings and it means a "super idle"
    > > workload.
    > Does that mean that a SCHED_IDLE task still runs some of the time if
    > you have a CPU hog running on +19, or can any other process starve the
    > SCHED_IDLE task?

    Thanks. That was going to be my next question!

    I'm guessing that SCHED_IDLE doesn't get completely starved by a CPU
    hog running nice +19, but it would still be interesting to know:
    roughly how much of the CPU could the CPU_IDLE process expect to get
    in that case?

    > What happens if you have two SCHED_IDLE tasks on a single CPU, do they get
    > equal share, or will they just run as batch jobs?

    Also might be useful to add th e answer to this to the man page...



    Michael Kerrisk
    Maintainer of the Linux man-pages project
    Want to report a man-pages bug? Look here:

     \ /
      Last update: 2008-03-03 11:07    [W:0.022 / U:19.288 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site