thread switching time?

Krassimir Slavchev krassi at bulinfo.net
Thu Oct 30 00:34:28 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jason Stone wrote:
> 
>> I am using FreeBSD 7 and would like to decrease the time of switching
>> between threads. This time seems to be 1ms and it is impossible to
>> make lower delays inside a thread, at least using nanosleep().
> 
>> Is it possible to decrease this time to 1us?
> 
> Increase HZ, with the usual caveats about trading off latency for overhead?
>
>
>  -Jason
>

I have:
kern.clockrate: { hz = 4000, tick = 250, profhz = 4000, stathz = 129 }
but no difference.
Yes, overheads are lower and my application's performance is better but
thread switching time is same.
AFAIR I have read somewhere on the Internet about such problem when
playing multiple video files and the solution was to change some
parameters somewhere in header files but I cannot find this again.

Best Regards


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFJCWN+xJBWvpalMpkRAt+qAKCjoLVyUZdbf91nqrgSj0nOhiGOhQCfYaqv
IijZrwPCRYJmBUGHb2WI9IA=
=uv12
-----END PGP SIGNATURE-----


More information about the freebsd-performance mailing list