lkml.org 
[lkml]   [2003]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRE: [PATCH] Minor scheduler fix to get rid of skipping in xmms
    From
    Date
    On Sat, 2003-09-06 at 14:17, John Yau wrote:

    > Scratch that, I just found Ingo's patch. My patch does essentially the same
    > thing except it only allows the current active process to be preempted if it
    > got demoted in priority during the effective priority recalculation. This
    > IMHO is better because it doesn't do unnecessary context switches. If the
    > process were truly a CPU hog relative other processes on the run queue, then
    > it'd get preempted eventually when it gets demoted rather than always every
    > 25 ms.

    The rationale behind Ingo's patch is to "break up" the timeslices to
    give better scheduling latency to multiple tasks at the same priority.
    So it is not "unnecessary context switches," just "extra context
    switches."

    It also recalculates the process's effective priority, like yours does,
    so it also has the same advantage as your patch: to more quickly detect
    tasks that have changed in interactivity, and to handle that.

    Not sure which approach is better. Only testing will tell.

    > How come Ingo's granular timeslice patch didn't get put into 2.6.0-test4?

    Interactivity improvements are currently a contentious issue. The patch
    is back in 2.6-mm, though.

    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/

    \
     
     \ /
      Last update: 2005-03-22 13:48    [W:8.330 / U:0.372 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site