[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.060 / U:5.212 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site