[lkml]   [2003]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] O10int for interactivity
    [changing email address; several hosts block mail from *@teleline/;
    which is good if they're fighting against spam]
    El Wed, 30 Jul 2003 11:36:06 +1000 Con Kolivas <> escribió:

    > The logic is in the difference between the dynamic and the static priority to
    > determine if a task is interactive.
    > current->static_prio - current->prio
    > will give you a number of -5 to +5, with +5 being a good bonus and vice versa.
    > however you need to ensure that the value you are fiddling with in the i/o
    > scheduler is actually due to the current process[1]

    I think current really is the process submitting the request; at least in the
    same function we've this:

    if (rq_data_dir(arq->request) == READ
    || current->flags&PF_SYNCWRITE)

    Which would be wrong if current isn't the process submitting the request.

    Diego Calleja
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:47    [W:0.020 / U:26.500 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site