Re: [SHED] Questions.

From: Robert Love (rml_at_tech9.net)
Date: 08/31/03

  • Next message: Petr Baudis: "Re: Re: Re: IDE DMA breakage w/ 2.4.21+ and 2.6.0-test4(-mm4)"
    To: Ian Kumlien <pomac@vapor.com>
    Date:	Sun, 31 Aug 2003 15:51:18 -0400
    
    

    On Sun, 2003-08-31 at 15:31, Ian Kumlien wrote:

    > Since they would have a high pri still, and preempt is there... it
    > should be back on the cpu pretty quick.

    Ah, but no! You assume we do not have an expired list and round robin
    scheduling.

    Once a task exhausts its timeslice, it cannot run until all other tasks
    exhaust their timeslice. If this were not the case, high priority tasks
    could monopolize the system.

    > But, it also creates problems for when a interactive process becomes a
    > cpu hog. Like this the detection should be faster, but should be slowed
    > down somewhat.

    I agree, although I do think it responds fairly quick. But, regardless,
    this is why I am interested in Nick's work. The interactivity estimator
    can never be perfect.

    > But, hogs would instead cause a context switch hell and lessen the
    > throughput on server loads...

    Hm, why?

    > I don't see how priorities would be questioned... Since, all i say is
    > that a task that gets preempted should have a guaranteed time on the cpu
    > so that we don't waste cycles doing context switches all the time.

    But latency is important.

            Robert Love

    -
    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: Petr Baudis: "Re: Re: Re: IDE DMA breakage w/ 2.4.21+ and 2.6.0-test4(-mm4)"

    Relevant Pages

    • Re: Poor PostgreSQL scaling on Linux 2.6.25-rc5 (vs 2.6.22)
      ... 10ms, then if your ssh only needs average of 5ms of CPU time per second, ... CPU time per second, then it has to wait for 2 seconds anyway to be run ... regardless of whether the timeslice was 10ms or 20ms. ... Just because tpc-c runs are set up so the number of server threads ...
      (Linux-Kernel)
    • Re: 2.6.8-rc1-np1
      ... >>timeslice size to see how far I can push it. ... > for the system to keep interactive when a CPU hog is running. ... 32 or even 16 or 8 are probably fine values for a desktop system ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] Minor scheduler fix to get rid of skipping in xmms
      ... >> time required to derive useful benefit depends on the cpu type but can be ... > gets the cache misses into cache faster) ... > speeds climb that the clock time is close to being consistant? ... that varying timeslice according to clock speed sounding like a good idea, ...
      (Linux-Kernel)
    • Re: [PATCH] O17int
      ... > the cpu off to non-gui task who's going to use his full 100 ms slice, ... I wish I could get mm3 running so I could evaluate those interactivity ... I can't imagine any interactivity regressions that are worse than this ... the speed of the machine and use that to determine the min timeslice? ...
      (Linux-Kernel)
    • [PATCH 0/2] CKRM CPU resource controller
      ... This patchset adds a CPU resource controller for CKRM. ... resource controller manages CPU resources by scaling timeslice ... We need to estimate the class load in order to check whether the ...
      (Linux-Kernel)