pthread switch (was Odd KSE panic)

Julian Elischer julian at elischer.org
Mon Jul 5 08:04:39 PDT 2004



On Mon, 5 Jul 2004, Julian Elischer wrote:

> 
> 
> 
> I suspect that as clock ticks occur at only 10mSEC period, that it will
> nearly always be the 2nd option. In other words the system is acting as
> it would with a uniprocessor.
> 
> compare this with:
> add up:
> 
>  time to for 'waker' to enter the UTS
>  time for the UTS to decide it can awaken another KSE
>  time for the UTS to call kse_wakeup() (from kerne entry to "wakeup()")
>  time for UTS to return to original thread
>  time for UTS to switch to other thread.
> (*) this is what is being measured here..
> 
> however the 'select' thread wil be restarted when the other thread
> completes and re-does the wait OR a clock tick occurs.
> 
> 

Drew, what happens to the 47uSec if you do: 
sysctl machdep.cpu_idle_hlt=0

?



> 
> julian
> 
> 
> 
> _______________________________________________
> freebsd-threads at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to "freebsd-threads-unsubscribe at freebsd.org"
> 




More information about the freebsd-threads mailing list