pthread switch (was Odd KSE panic)

Julian Elischer julian at elischer.org
Tue Jul 6 10:47:09 PDT 2004



On Tue, 6 Jul 2004, Andrew Gallatin wrote:

> 
> FWIW, inserting a pthread_yield() just before the ioctl call in the
> worker thread speeds things up quite a bit (100us -> 73us) in
> combination with kern.threads.virtual_cpu=1.

what about with kern.threads.virtual_cpu untouched?
and what about with the hlt sysctl?

does your worker thread loop to check if there is more work before
waiting to be notified?

> 
> Drew
> 



More information about the freebsd-threads mailing list