The HyperNews Linux KHG Discussion Pages

Question: Measuring the scheduler overhead

Forum: The Linux Kernel Hackers' Guide
Keywords: scheduler overhead
Date: Thu, 04 Dec 1997 22:34:31 GMT
From: Jasleen Kaur <[email protected]>

Hi,

I am implementing a different scheduling policy in the
scheduler of Linux 2.0.0.

I need to measure the time taken for choosing the next
task to be scheduled, i.e., the actual time spent in the
schedule() function, without the actual context switch
having taken place. Since I clear interrupts in schedule(),
how do I measure the time? Does 'jiffies' still contain the
actual time? Or is the time asynchronously updated in some
other variable while the timer interrupt is disabled?

Thanks,

Jasleen Kaur