From owner-freebsd-net@FreeBSD.ORG Tue Apr 7 21:56:26 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 7C72A1065743 for ; Tue, 7 Apr 2009 21:56:26 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63906.mail.re1.yahoo.com (web63906.mail.re1.yahoo.com [69.147.97.121]) by mx1.freebsd.org (Postfix) with SMTP id 1FC998FC1F for ; Tue, 7 Apr 2009 21:56:25 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 25587 invoked by uid 60001); 7 Apr 2009 21:56:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1239141385; bh=KBo73T9ilm4q+IXA55Itnp76EQ8NJVXR0cQznLgkga8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=FSbp4MK2Wm9w/5mhmOuhy+rNc+iovbGLZfJy1WcpScTwTvCM1JjnXsA87ObvUrIS2clbEycvW8I+8Db1srfCmoES5LSZQCrGIp5kf3Oq8Fs37RhD26g75wGGhaK4tCY7vccccjRInzWrO0e24kPEDIed/6utNKX7rvRgSZVaP/o= 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=pGjMMLcxwmWigyEDeAggOYyQpwyEKz+EbMkNxxBIUcUcniibWmhR6kRufteM3FpTKoFajICPNKGxT9aCIe5Pssl1U8i8cu9Aljwxra29jXl2a4aoJ2ElSlmpO2K1nrDdyCA4tIoEMqKH7+YNY0blOPTmqdDhUJJpi8qN3EAXRzQ=; Message-ID: <497906.25422.qm@web63906.mail.re1.yahoo.com> X-YMail-OSG: COc4omAVM1llwXEVxppqfUU04BejMB9gaw5LPI1ufEdVDCHGPgIfYhVm1r3zts.hH1E4wx9ct6hwueImTOxpmChDAf7bxLuf5Sc8qzFwB0f8FninXZIpU5bS7R2Euyq.4QUtBp_rhCdccIXle_WNqw4cvVofmhvanJhh.YMMvey6CWNtpYAnMKzwftr0RWxoV6ll1RV7uFLMp_HZVNRerY4BeZEse7fwtfT.M0hH3_MZekW5MD1Ni_GjxAD2zz6Kj39CmeqUSIn_6Snh02WFTAPE2BjDFf8jub.Ry0Z6XQwvGF_fkAEwSHbGLDg3kSuHrsn_UXODc5PYJWIx2st.QJCz Received: from [98.242.222.229] by web63906.mail.re1.yahoo.com via HTTP; Tue, 07 Apr 2009 14:56:25 PDT X-Mailer: YahooMailWebService/0.7.289.1 Date: Tue, 7 Apr 2009 14:56:25 -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: Tue, 07 Apr 2009 21:56:27 -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. It might be good to mention this in the man page. Most 3rd party drivers build stand-alone, and even if you pull down the latest drivers from intel or broadcom they're usually built out of the kernel build. Its pretty frustrating to have random things failing, mbuf leaks, etc without any warning. Barney