[lkml]   [2008]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: Please, put 64-bit counter per task and each ctxt switch.
    On Sun, 24 Feb 2008 14:12:47 +0100 "J.C. Pizarro" <> wrote:

    > It's statistic, yes, but it's a very important parameter for the CPU-scheduler.
    > The CPU-scheduler will know the number of context switches of each task
    > before of to take a blind decision into infinitum!.

    We already have these:

    unsigned long nvcsw, nivcsw; /* context switch counts */

    in the task_struct.

     \ /
      Last update: 2008-02-25 21:39    [W:0.023 / U:0.024 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site