From owner-p4-projects@FreeBSD.ORG Fri Jun 9 01:07:51 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4AF3416A46F; Fri, 9 Jun 2006 01:07:51 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1DD4316A419 for ; Fri, 9 Jun 2006 01:07:51 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C4CA43D46 for ; Fri, 9 Jun 2006 01:07:50 +0000 (GMT) (envelope-from kip.macy@gmail.com) Received: by nz-out-0102.google.com with SMTP id 13so571798nzn for ; Thu, 08 Jun 2006 18:07:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GpuPYuPSxC3C/C7incWIhBNI0MwIxP5zuQ0ln6B50Bv64NmdWsCkyMPQXf9NfbX20ghdbUk3qXAkLBCaAr0E54OFY3VswpBdQub/gbjghVa03M8yjGStzqP0QLuWI/RQgsmM3M9zhiK3OwMaVGBce+2lZ1bKhWLcjV5uDuiSWYo= Received: by 10.64.196.8 with SMTP id t8mr2405485qbf; Thu, 08 Jun 2006 18:07:49 -0700 (PDT) Received: by 10.65.231.11 with HTTP; Thu, 8 Jun 2006 18:07:49 -0700 (PDT) Message-ID: Date: Thu, 8 Jun 2006 18:07:49 -0700 From: "Kip Macy" To: rookie@gufi.org In-Reply-To: <3bbf2fe10606020733j12bf706em51408b384135e966@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200605301926.k4UJQkgt055284@repoman.freebsd.org> <200605311657.44921.jhb@freebsd.org> <200606021022.44509.jhb@freebsd.org> <3bbf2fe10606020733j12bf706em51408b384135e966@mail.gmail.com> Cc: "M. Warner Losh" , perforce@freebsd.org, kmacy@freebsd.org, John Baldwin , Hans Petter Selasky Subject: Re: PERFORCE change 98153 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kmacy@fsmware.com List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2006 01:07:51 -0000 I can't say how the two compare. But the lack of context stealing undermines the value of our ithreads as far as I can tell. -Kip On 6/2/06, Attilio Rao wrote: > 2006/6/2, John Baldwin : > > On Thursday 01 June 2006 20:26, Kip Macy wrote: > > > > I'd rather avoid this for now as it will have to be backed out for > > interrupt > > > > filters. > > > > > > I don't know anything about interrupt filters, so please let me know > > > what you have in mind. The whole of interrupt handling is far too > > > heavyweight at the moment. > > > > With interrupt filters you can have both an INTR_FAST style handler and a > > threaded handler, and the INTR_FAST style handler will have a return value to > > determine if it's associated ithread should be scheduled and to let the > > calling code know if it has handled the interrupt so that it doesn't need to > > be masked, or if the interrupt wasn't for this device at all. > > I was wondering, it would not be better writing a complete ithread > mechanism (including lazy scheduling/context stealing) instead using > ifilters? I don't know if this is fair, but, commonly, ithread seems > having better performance than ifilters (when correclty managed). > > Attilio > > > -- > Peace can only be achieved by understanding - A. Einstein >