From owner-freebsd-arch Sat Aug 18 14: 1:15 2001 Delivered-To: freebsd-arch@freebsd.org Received: from beppo.feral.com (beppo.feral.com [192.67.166.79]) by hub.freebsd.org (Postfix) with ESMTP id 1207237B40A; Sat, 18 Aug 2001 14:01:13 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from mailhost.feral.com (mjacob@mailhost.feral.com [192.67.166.1]) by beppo.feral.com (8.11.3/8.11.3) with ESMTP id f7IL19I61311; Sat, 18 Aug 2001 14:01:09 -0700 (PDT) (envelope-from mjacob@feral.com) Date: Sat, 18 Aug 2001 14:01:09 -0700 (PDT) From: Matthew Jacob X-Sender: mjacob@beppo Reply-To: mjacob@feral.com To: Christoph Hellwig Cc: Mike Smith , Amit Shah , freebsd-arch@FreeBSD.ORG Subject: Re: threaded device drivers In-Reply-To: <20010818224642.A14857@caldera.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Oops- sorry- I got confused over what you were referring to. Apologies! For some reason I thought you were talking about linux kernel threads. The schedule_task just becomes something that keventd thread would run- it isn't available in 2.2.X, and the schedule_task functions says: * May be called from interrupt context. The scheduled function is run at some * time in the near future by the keventd kernel thread. If it can sleep, it * should be designed to do so for the minimum possible time, as it will be * stalling all other scheduled tasks. which means that it's more sensible to do your own thread anyway. On Sat, 18 Aug 2001, Christoph Hellwig wrote: > On Sat, Aug 18, 2001 at 01:22:07PM -0700, Matthew Jacob wrote: > > > > The linux schedule_task functions aren't all that lightweight either. > > > > Did you actually take a look? I bet you mean something else. > The cost of schedule_task is basically allocation of an 24byte > struct and one wakeup. > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message