From owner-freebsd-current Sun Feb 28 23:41:17 1999 Delivered-To: freebsd-current@freebsd.org Received: from dyn02.trafford.dementia.org (dyn02.trafford.dementia.org [204.29.154.130]) by hub.freebsd.org (Postfix) with ESMTP id 25E7015212; Sun, 28 Feb 1999 23:41:04 -0800 (PST) (envelope-from assar@sics.se) Received: (from assar@localhost) by dyn02.trafford.dementia.org (8.9.1/8.7.3) id IAA56007; Mon, 1 Mar 1999 08:42:55 +0100 (CET) To: Bruce Evans Cc: eivind@FreeBSD.ORG, freebsd-current@FreeBSD.ORG Subject: Re: panic: zone: entry not free References: <199903010715.SAA14759@godzilla.zeta.org.au> Mime-Version: 1.0 (generated by tm-edit 7.68) Content-Type: text/plain; charset=US-ASCII From: Assar Westerlund Date: 01 Mar 1999 08:42:53 +0100 In-Reply-To: Bruce Evans's message of "Mon, 1 Mar 1999 18:15:42 +1100" Message-ID: <5lzp5xmz9e.fsf@mg.trafford.dementia.org> Lines: 22 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bruce Evans writes: > >I think that the goal should be to make KLDs work with all kinds of > >kernels. And the only place where this seems to be a problem is with > >zalloc and zfree. So it seems to me that one of the following could > >be done to solve it: > > > >a. make zalloc and zfree non-inline > >b. call zalloci and zfreei in code that can end up in KLDs > >c. call zalloci and zfreei everywhere where it's not performance-critical > > There are many potential problems with SMP kernels. Many of the inline > functions in depend on SMP. We've already pessimised > the usual (non-SMP) case by uninlining a few too many spl-related > functions. So you think it would be bad to have zalloc and zfree as non-inline functions? That would mean that KLDs would be different depending on the options used to build the kernel and that KLDs would need some way of figuring out the these options. How should that be done? By installing opt_global.h after building the kernel? /assar To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message