From owner-freebsd-net@FreeBSD.ORG Tue Apr 7 22:52:51 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 906051065672; Tue, 7 Apr 2009 22:52:51 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 6C5918FC0A; Tue, 7 Apr 2009 22:52:51 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [65.122.17.41]) by cyrus.watson.org (Postfix) with ESMTPS id ECB2E46BA6; Tue, 7 Apr 2009 18:52:50 -0400 (EDT) Date: Tue, 7 Apr 2009 23:52:50 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Barney Cordoba In-Reply-To: <497906.25422.qm@web63906.mail.re1.yahoo.com> Message-ID: References: <497906.25422.qm@web63906.mail.re1.yahoo.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 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 22:52:52 -0000 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. Robert N M Watson Computer Laboratory University of Cambridge