From owner-freebsd-performance@FreeBSD.ORG Wed Oct 29 18:06:01 2008 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B02E106568B for ; Wed, 29 Oct 2008 18:06:01 +0000 (UTC) (envelope-from freebsd-performance@dfmm.org) Received: from dfmm.org (treehorn.dfmm.org [66.180.195.213]) by mx1.freebsd.org (Postfix) with ESMTP id 1CDE08FC1A for ; Wed, 29 Oct 2008 18:06:00 +0000 (UTC) (envelope-from freebsd-performance@dfmm.org) Received: (qmail 89680 invoked by uid 1000); 29 Oct 2008 17:39:18 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 29 Oct 2008 17:39:18 -0000 Date: Wed, 29 Oct 2008 10:39:17 -0700 (PDT) From: Jason Stone X-X-Sender: jason@treehorn.dfmm.org To: Krassimir Slavchev In-Reply-To: <49088124.9050809@bulinfo.net> Message-ID: References: <49088124.9050809@bulinfo.net> User-Agent: Alpine 1.00 (BSF 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-performance@freebsd.org Subject: Re: thread switching time? X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 18:06:01 -0000 -----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-----