On Mon, 2007-01-29 at 20:45 -0800, Andrew Morton wrote:
> Temporarily at
> 
>       http://userweb.kernel.org/~akpm/2.6.20-rc6-mm3/
> 
> Will appear later at
> 
>       
> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.20-rc6/2.6.20-rc6-mm3/
> 

I was running likely profiling and I noticed that when I turn on the
"tickless" option I get the following line, 

+unlikely | 21111208|  9367278  need_resched()@:include/linux/[EMAIL PROTECTED]

This means that this line is 21111208 true, and 9367278 false.

This existed on bootup, and stayed after about 7 hours of runtime
(mostly idle). Since need_resched is a "static inline" there are
multiple instances of need_resched() in the kernel. If I turn off the
"tickless" feature this wrong unlikely disappears, and the output looks
like this,

 unlikely |        0|      169  need_resched()@:include/linux/[EMAIL PROTECTED]
 unlikely |        0|       94  need_resched()@:include/linux/[EMAIL PROTECTED]
 unlikely |        0|       63  need_resched()@:include/linux/[EMAIL PROTECTED]
 unlikely |        0|       19  need_resched()@:include/linux/[EMAIL PROTECTED]
 unlikely |        0|      379  need_resched()@:include/linux/[EMAIL PROTECTED]
 unlikely |        1|   202596  need_resched()@:include/linux/[EMAIL PROTECTED]
 unlikely |        7|   205929  need_resched()@:include/linux/[EMAIL PROTECTED]
 unlikely |     6461|   271690  need_resched()@:include/linux/[EMAIL PROTECTED]

Only a little after boot. I suppose this could be a natural side effect
of the tickless feature but I thought I would report it anyway.

Daniel

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

Reply via email to