Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Oct 2008 10:39:17 -0700 (PDT)
From:      Jason Stone <freebsd-performance@dfmm.org>
To:        Krassimir Slavchev <krassi@bulinfo.net>
Cc:        freebsd-performance@freebsd.org
Subject:   Re: thread switching time?
Message-ID:  <alpine.BSF.1.00.0810291034470.23737@treehorn.dfmm.org>
In-Reply-To: <49088124.9050809@bulinfo.net>
References:  <49088124.9050809@bulinfo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> 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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: See https://private.idealab.com/public/jason/jason.gpg

iD8DBQFJCJ/FswXMWWtptckRAsdSAKCu2TF1LaqyR0JTuZX3oZD8S3H+cQCg8xoa
78qzo/mZ9klKhotTn4kJTkw=
=6fXj
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.1.00.0810291034470.23737>