lkml.org 
[lkml]   [2008]   [Feb]   [25]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateMon, 25 Feb 2008 12:34:39 -0800
FromAndrew Morton <>
SubjectRe: Please, put 64-bit counter per task and incr.by.one each ctxt switch.
On Sun, 24 Feb 2008 14:12:47 +0100 "J.C. Pizarro" <jcpiza@gmail.com> 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    [from the cache]
©2003-2008