Messages in this thread | | | Date | Mon, 25 Feb 2008 12:34:39 -0800 | From | Andrew Morton <> | Subject | Re: 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.
| |