From owner-freebsd-net@FreeBSD.ORG Tue Apr 7 23:00:32 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 8C0951065674 for ; Tue, 7 Apr 2009 23:00:32 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: from web63907.mail.re1.yahoo.com (web63907.mail.re1.yahoo.com [69.147.97.122]) by mx1.freebsd.org (Postfix) with SMTP id 2D9D08FC1D for ; Tue, 7 Apr 2009 23:00:31 +0000 (UTC) (envelope-from barney_cordoba@yahoo.com) Received: (qmail 29927 invoked by uid 60001); 7 Apr 2009 23:00:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1239145231; bh=AucuYJ5g0s5VtRGOipkOMWqmY/pXZLBiPwzwj0LZ27w=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=UtHCDwgWW8xsfqihpoCWbbeOwBXQ4zNJa9/Hu4HH6EbigYbFPgOiIquLYR3Wsks4no3LtW6f5FrxB/VmjChpjLdnbsH+VBOnV1/ESN39mWasARzRY6mcXKuSjUVkIL0EkK0sdlKhA7ChugYx1gaRNcqEQXXkWdqlTj3AIx18Vsc= 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=6NA9LfSlNWYVhZPMYn+e+Y86PMvQolM2S78IczthrghDrO1XidAV2u8iNw1DGGWh8/8Uw6biEbQjsC1SBfeQeCYKt191mq2QJcdNMrkC4aqFoMknpaRI6XdSfV0oTuBcR/Ymfrxk5GCfTh4iOtBdLGhdtHqQBbbGb4K30VmZ6EU=; Message-ID: <532949.28323.qm@web63907.mail.re1.yahoo.com> X-YMail-OSG: gAm5F18VM1na0rTIhXdcTdBH7xEGGb2s1XZa66t8gdJTrriaMCwk8i7JUwTfG8KxLQmWmBtztFV9tXSW9WuCoiVjbprZ4q2Yo_Z1Fd2.evF_Wpynbu1HNSxxkYU2Efh._cSVZ.x6xMob4n7hPFX7xyNK5nA78TpJZCEKYxrh5ybk73fIY.WMgjLOjS8tLmCAoZLdfyUyT3UJtAhPs6t5Ki5jx4555wPKONyq3gsKpMjUj9GVF3Uzow0_hCMhc7931L4IEhXZMuGgoCBOR.NE9UZ5TaUnMfDBjVjsNXYAfQYw98Igq07KUqfSKhYrwBW5By1kHJ3QIF8uV3DW Received: from [98.242.222.229] by web63907.mail.re1.yahoo.com via HTTP; Tue, 07 Apr 2009 16:00:31 PDT X-Mailer: YahooMailWebService/0.7.289.1 Date: Tue, 7 Apr 2009 16:00:31 -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 23:00:33 -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, 6:52 PM > On Tue, 7 Apr 2009, Barney Cordoba wrote: > > >>> 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. > > From the man page: > > NOTES > The LOCK_PROFILING option increases the size of struct > lock_object, so a > kernel built with that option will not work with > modules built without > it. Nice work. Its not in the 7.0 man page, unfortunately for me :( BC