From owner-freebsd-stable Sat Feb 22 11:31: 1 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A80537B401; Sat, 22 Feb 2003 11:31:00 -0800 (PST) Received: from hub.org (hub.org [64.49.215.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id C419543FAF; Sat, 22 Feb 2003 11:30:59 -0800 (PST) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [64.49.215.141]) by hub.org (Postfix) with ESMTP id A5C428B463F; Sat, 22 Feb 2003 15:30:57 -0400 (AST) Date: Sat, 22 Feb 2003 15:30:57 -0400 (AST) From: "Marc G. Fournier" To: Luoqi Chen Cc: freebsd-stable@FreeBSD.ORG, Tor.Egge@cvsup.no.freebsd.org, freebsd-emulation@FreeBSD.ORG Subject: RE: Raising KVA_PAGES breaks linux emulation? In-Reply-To: Message-ID: <20030222152602.C61064@hub.org> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, 22 Feb 2003, Luoqi Chen wrote: > > Now, when I did this the first time, I got a bunch of thread issues, so > > Tor sent me a patch (included in previous email) to fix it in libc_r ... > > does the linux module make use of KVA_PAGES as defined in the kernel > > config file, or do I have to change KVA_PAGES in /sys/i386/include/pmap.h > > for the modules to recognize the change? > > > KVA_PAGES if defined in config goes to opt_global.h and I don't think > module builds uses this file. You may put it in make.conf if you don't > want to mess with pmap.h Okay, is there any good documentation on raising KVA_PAGES? The only thing I've found is in LINT, and it mentioned nothing about setting it anywhere but in the kernel config :( For instance, since setting KVA_PAGES in the kernel config doesn't cover everything, and, as I've experienced so far, causes some serious problems, would it be better to suggest that someone sets it in make.conf? From a quick perusal of /etc/defaults/make.conf, my guess is that I'd have to set: COPTFLAGS= -O -pipe -DKVA_PAGES=512 -and- CFLAGS= -O -pipe -DKVA_PAGES=512 Will that cover it all, or is there a problem with doing it that way? Or is there a better way of doing this? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message