From owner-p4-projects@FreeBSD.ORG Fri Jun 2 14:33:28 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 DE7D016A428; Fri, 2 Jun 2006 14:33:27 +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 2ADB116A446 for ; Fri, 2 Jun 2006 14:33:25 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A1D743D48 for ; Fri, 2 Jun 2006 14:33:23 +0000 (GMT) (envelope-from asmrookie@gmail.com) Received: by nz-out-0102.google.com with SMTP id 9so826685nzo for ; Fri, 02 Jun 2006 07:33:23 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=EfOh4iB5T//YsDyHcGsyqS6QhHyrkJ09jah11eGNFzueN1P5AGR499dxkU+uoV6dxj/vgkTzbfUOwm4j05sJ8lGrwCMPWYYIxP4rrEC/VoB8QpFq98P5v5vnGe1eowkN/8TlOGDfpFL7m+y4CRdniFm5/RX3z7F6eRb0a4mTNL0= Received: by 10.85.25.15 with SMTP id c15mr1224669auj; Fri, 02 Jun 2006 07:33:23 -0700 (PDT) Received: by 10.70.11.2 with HTTP; Fri, 2 Jun 2006 07:33:23 -0700 (PDT) Message-ID: <3bbf2fe10606020733j12bf706em51408b384135e966@mail.gmail.com> Date: Fri, 2 Jun 2006 16:33:23 +0200 From: "Attilio Rao" To: "John Baldwin" , kmacy@freebsd.org, perforce@freebsd.org, "Hans Petter Selasky" , "M. Warner Losh" In-Reply-To: <200606021022.44509.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; 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> Cc: Subject: Re: PERFORCE change 98153 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rookie@gufi.org List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jun 2006 14:33:28 -0000 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