From owner-freebsd-net@FreeBSD.ORG Wed Apr 8 13:18:47 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB16B1065670 for ; Wed, 8 Apr 2009 13:18:47 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63905.mail.re1.yahoo.com (web63905.mail.re1.yahoo.com [69.147.97.120]) by mx1.freebsd.org (Postfix) with SMTP id 947DD8FC23 for ; Wed, 8 Apr 2009 13:18:47 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 80998 invoked by uid 60001); 8 Apr 2009 13:18:47 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1239196727; bh=/fIMzpZLP2XmJMMmaEej6tbfxky/LBhSR1MX9uLDFew=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=XBE5Fn+1IAnjZlyEMnTRHa7le/OdxBr66m1wLDGDgqztv3uDV3emVPBhNY0fjqg9SN1BerT1CJ+BtvjnqbFaQ+qWFwbVd1oDxIvuFKywwoYEazXGclpuZvMye3F5S5DQoZ1Wd65xoLGUjx3e75xJ1pmE5bm8kxRDxxaDQjAdjmo= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=F5p9Y7DLyVq9iL4RBGD/l0s/Q+MQ9cQ/kzUZJzg2qWtgZNZtf1ve7u/XCpW9wJsw2LAoZTl+22CA938EO+Ep4hgKQn2tEygv1JsYAVi5/i3j4VihXYu3W2Sc6mROWXLNIQRH+YoEhFhi5sEb3T9rFTm5AWMUYvGXhvwRkddM8SY=; Message-ID: <75700.80930.qm@web63905.mail.re1.yahoo.com> X-YMail-OSG: Fd3qFk8VM1lxJrsNffrHuuzNOaXrjP8zb5PtUBPMKoQ1BISFadJK1rf9bhOd4ONKd9rjt1MNZX8SfGii8QL1QulA0ZuBZ0by9cFkEeFJUd9G9Lgxj7sTQbjJB8bKlu.pQxBBHMQDI7TeBROWL8qFg8Qlla4KNPTL9fDvLhwqA855OWQCe6JjD5bqiI4xeBNYALNcMr4DXL9h4GmtB5ntSJ.lEvqWe4E.I0CwaZfPQHn3.e2YLCpU1ASkrXbRuZgxbaaz5KQaYgKYc.hXAu6rSBGh2f8e8omHJqkJr.nEt_eOEwTzI3i8R0BfpfhP Received: from [98.242.222.229] by web63905.mail.re1.yahoo.com via HTTP; Wed, 08 Apr 2009 06:18:46 PDT X-Mailer: YahooMailWebService/0.7.289.1 Date: Wed, 8 Apr 2009 06:18:46 -0700 (PDT) From: Barney Cordoba To: Robert Watson In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-net@freebsd.org, Ivan Voras Subject: Re: Advice on a multithreaded netisr patch? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: barney_cordoba@yahoo.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Apr 2009 13:18:48 -0000 --- On Tue, 4/7/09, Robert Watson wrote: > From: Robert Watson > Subject: Re: Advice on a multithreaded netisr patch? > To: "Barney Cordoba" > Cc: freebsd-net@freebsd.org, "Ivan Voras" > Date: Tuesday, April 7, 2009, 8:56 AM > On Tue, 7 Apr 2009, Barney Cordoba wrote: > > >> Have you tried LOCK_PROFILING? It would quickly > tell you if driver locks were a source of significant > contention. It works quite well... > > > > When I enabled LOCK_PROFILING my side modules, such as > if_ibg, stopped working. It seems that the ifnet structure > or something changed with that option enabled. Is there a > way to sync this without having to integrate everything into > a specific kernel build? > > LOCK_PROFILING changes the size of lock-related data > structures, so requires both kernel and full set of modules > to be rebuilt with the option. What are the units for lock profiling? For example, the "average wait" is in what units? Is there a way to reset the stats counters? If not, it might be nifty if toggling prof.enable reset the stats to run some different kinds of tests without rebooting. Barney