Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2008 09:34:22 +0200
From:      Krassimir Slavchev <krassi@bulinfo.net>
To:        Jason Stone <freebsd-performance@dfmm.org>
Cc:        freebsd-performance@freebsd.org
Subject:   Re: thread switching time?
Message-ID:  <4909637E.3030802@bulinfo.net>
In-Reply-To: <alpine.BSF.1.00.0810291034470.23737@treehorn.dfmm.org>
References:  <49088124.9050809@bulinfo.net> <alpine.BSF.1.00.0810291034470.23737@treehorn.dfmm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4909637E.3030802>