Re: [RFC][PATCH][2.6.6] Replacing CPU scheduler active and expired with a single array

From: Ingo Molnar (mingo_at_elte.hu)
Date: 05/28/04

  • Next message: Auzanneau Gregory: "Re: idebus setup problem (2.6.7-rc1)"
    Date:	Fri, 28 May 2004 11:05:36 +0200
    To: Peter Williams <peterw@aurema.com>
    
    

    * Peter Williams <peterw@aurema.com> wrote:

    > -- at the end of each time slice (or when waking up) each task is
    > given a complete new time slice and, if class SCHED_NORMAL, is put in
    > a priority slot given by (static_prio + MAX_BONUS - interactive_bonus)

    this is the Achilles' heel of approaches that try to get rid of the
    active/expired array and/or try to get rid of timeslice tracking. A
    CPU-bound task which schedules away for small amounts of time will get a
    disproportionatly larger share of the CPU than a CPU-bound task that
    doesnt schedule at all.

    just try it - run a task that runs 95% of the time and sleeps 5% of the
    time, and run a (same prio) task that runs 100% of the time. With the
    current scheduler the slightly-sleeping task gets 45% of the CPU, the
    looping one gets 55% of the CPU. With your patch the slightly-sleeping
    process can easily monopolize 90% of the CPU!

            Ingo
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Auzanneau Gregory: "Re: idebus setup problem (2.6.7-rc1)"

    Relevant Pages

    • Re: [RFC][PATCH][2.6.6] Replacing CPU scheduler active and expired with a single array
      ... > CPU-bound task which schedules away for small amounts of time will get a ... > current scheduler the slightly-sleeping task gets 45% of the CPU, ... interactivity bonus than the other then it will get more CPU but isn't ...
      (Linux-Kernel)
    • Re: Where to get second processor?
      ... You call Norton a "bloaty pig" and recommend getting rid of it ... Corporate" yet your CPU load is less than 3%.. ... We have 2 GIGs of RAM and 300 GIGs of storage, ...
      (alt.sys.pc-clone.dell)
    • Re: Linux 2.6.15-rc5: multiuser scheduling trouble
      ... I believe I got rid of the X renicing at the time the scheduler was improved. ... Instead of the players enjoying half a cpu each (which ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • RE: Microsoft update help
      ... exampel Java, so how do i get rid of the update, it dosent show in the ... DEL or F8 when the cpu starts up?? ... > Restore will help out. ...
      (microsoft.public.windowsupdate)
    • How can I get my resources back?
      ... Not ready to get rid of it, ... the fewer resources ... I looked at the CPU ... I re-installed 2K Pro SP4 only a month ago. ...
      (microsoft.public.win2000.general)

    Loading