Re: thread switching time?
- From: Krassimir Slavchev <krassi@xxxxxxxxxxx>
- Date: Thu, 30 Oct 2008 09:34:22 +0200
-----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-----
_______________________________________________
freebsd-performance@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "freebsd-performance-unsubscribe@xxxxxxxxxxx"
- References:
- thread switching time?
- From: Krassimir Slavchev
- Re: thread switching time?
- From: Jason Stone
- thread switching time?
- Prev by Date: Re: thread switching time?
- Next by Date: 1. thread switching time? (Krassimir Slavchev)
- Previous by thread: Re: thread switching time?
- Next by thread: 1. thread switching time? (Krassimir Slavchev)
- Index(es):