Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.arcetri.astro.it/irlab/doc/library/linux/khg/HyperNews/get/khg/174.html
Дата изменения: Thu Mar 23 12:37:47 2000
Дата индексирования: Wed Sep 15 00:50:29 2010
Кодировка:

Поисковые слова: закон вина
Measuring the scheduler overhead 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 <jks@cs.utexas.edu>

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