Re: thread switching time?

[ Available lists | Index of freebsd-performance | Month of Oct 2008 | Week of 30 Oct 2008 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Krassimir Slavchev <krassi@bulinfo.net>
Date
30 Oct 2008 07:34:28
Subject
Re: thread switching time?
Message-ID
4909637E.3030802@bulinfo.net

In reply to

[ Hide this part ]
-----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-----

Elapsed time: 0.124 seconds