Re: Problem: CPU sleep when calling a function in another objectfor the first time.

From: Phillip Susi
Date: Fri Oct 19 2007 - 15:59:26 EST


John Marconi wrote:
I have added a kernel profiler to the timer interrupt of this CPU - and
find that during this 40ms period, the CPU is in r4k_wait - which looks
like cpu_idle is running. It almost seems like file Y is being loaded
into memory to be used.

That is exactly what is happening. Pages in the code segment are only loaded on demand.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/