From owner-freebsd-current Sun Nov 25 6:49:12 2001 Delivered-To: freebsd-current@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 7354B37B405; Sun, 25 Nov 2001 06:49:09 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.3/8.11.1) id fAPEiwk76287; Sun, 25 Nov 2001 06:44:58 -0800 (PST) (envelope-from rizzo) Date: Sun, 25 Nov 2001 06:44:58 -0800 From: Luigi Rizzo To: Bruce Evans Cc: Peter Wemm , Mike Smith , John Baldwin , current@FreeBSD.ORG Subject: Re: where is the idle_loop in current ? Message-ID: <20011125064458.A76206@iguana.aciri.org> References: <20011124023142.9BB70380D@overcee.netplex.com.au> <20011125195537.X5075-100000@delplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011125195537.X5075-100000@delplex.bde.org> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Now, the whole problem here seems to be that kernel threads are not preemptable, which is something that worries me a bit because in CURRENT we use them for interrupt handlers as well, and those used to be preemptable (subject to spl masks) in RELENG_4. On the other hand, if preemptable threads are implemented (which one of the messages in this thread suggests might occur), then things will improve even wrt RELENG_4 On Sun, Nov 25, 2001 at 09:26:51PM +1100, Bruce Evans wrote: > Anyway, I think luigi wants the non-process benefits of hacking on the > old idle loop. Sorry, the only way to get these seems to be to upgrade > to RELENG_4. which, funnily, I have already... This thread came out because in order to import my polling stuff in the tree (see my yet-unanswered request to -core), having a CURRENT version seems useful to lower resistance. I don't mind having spent the time for doing it, in the process i certainly learned something on the internals of CURRENT, but this seems to be about the only useful result of this additional work :) cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message