From owner-freebsd-amd64@FreeBSD.ORG Sun Feb 27 14:15:28 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2C6716A4CE; Sun, 27 Feb 2005 14:15:28 +0000 (GMT) Received: from dglawrence.com (dsl-230-156.ipns.com [209.210.230.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 573E443D2D; Sun, 27 Feb 2005 14:15:26 +0000 (GMT) (envelope-from dg@dglawrence.com) Received: from opteron.dglawrence.com (localhost [127.0.0.1]) by dglawrence.com (8.13.3/8.13.1) with ESMTP id j1REFPUf022630; Sun, 27 Feb 2005 06:15:25 -0800 (PST) (envelope-from dg@dglawrence.com) Received: (from dg@localhost) by opteron.dglawrence.com (8.13.3/8.13.1/Submit) id j1REFNUx022629; Sun, 27 Feb 2005 06:15:23 -0800 (PST) (envelope-from dg@dglawrence.com) Date: Sun, 27 Feb 2005 06:15:23 -0800 From: "David G. Lawrence" To: "O. Hartmann" Message-ID: <20050227141523.GG3258@opteron.dglawrence.com> References: <4221C943.8080500@uni-mainz.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4221C943.8080500@uni-mainz.de> cc: freebsd-questions@freebsd.org cc: freebsd-amd64@freebsd.org Subject: Re: Kernel/Userland Mem-Space Tuning (1/3 on IA32) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Feb 2005 14:15:29 -0000 > Hello. > I read about address space division of recent operating systems like > Linux and Windows XP. > In both cases, the whole address space of the 32 or 64 Bit system is > divided into halfes, 2GB for > kernel, 2 GB for process(es) (speaking in 32Bit words). The same in > 64bit systems like AMD64. > Those who happily utilize an AMD64 based machine are not (yet) involved > by this problem, > but on recent 32 Bit architectures someone can run out of process space, > like me! Some > geophysical modelling software needs more than the allowed 2GB address > space and therefore > I would like to ask whether FreeBSD (my preferred OS) has a 'knob' to > change the kernel/userland parity > of the address space like it is done in Windows with a special knob at > boot time (/W3GB I think, but I'm not > sure about the exakt syntax but I know someone can change the half by > half parity towards 1 to 3 in > XP). I'm not sure whether FreeBSD divides kernel/userland address space > this way, I know Linux and > Windows does and on Windows we changed this (not yet on Linux and not > yet on our FreeBSD machines > (OS version >5.0, mostly FreeBSD 5.3-R or 5.4-PRERELEASE). > > Any help is appreciated. FreeBSD divides the 32bit virtual address space with 1GB for the kernel and 3GB for user processes. This can be changed with some kernel compile- time constants (primarily KVA_PAGES, however NKPT may also need to be increased if the kernel address space is increased). -DG David G. Lawrence President Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500 TeraSolutions, Inc. - http://www.terasolutions.com - (888) 346 7175 The FreeBSD Project - http://www.freebsd.org Pave the road of life with opportunities.