From owner-freebsd-hackers Fri Jul 5 19: 7: 7 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99E3B37B400 for ; Fri, 5 Jul 2002 19:07:03 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 818E743E09 for ; Fri, 5 Jul 2002 19:07:02 -0700 (PDT) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g6626wMa003942 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sat, 6 Jul 2002 04:07:00 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g6626wFJ005043 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 6 Jul 2002 04:06:58 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g6626vFg005042; Sat, 6 Jul 2002 04:06:57 +0200 (CEST)?g (envelope-from ticso) Date: Sat, 6 Jul 2002 04:06:57 +0200 From: Bernd Walter To: Darren Pilgrim Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: How does swap work address spacewise? Message-ID: <20020706020656.GL48977@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <20020705113532.GA11273@atrbg11.informatik.tu-muenchen.de> <20020705133515.GA295@HAL9000.wox.org> <20020705133837.GA513@HAL9000.wox.org> <20020705234126.GA12183@atrbg11.informatik.tu-muenchen.de> <3D2640A7.3EA2236B@pantherdragon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D2640A7.3EA2236B@pantherdragon.org> X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Jul 05, 2002 at 05:58:15PM -0700, Darren Pilgrim wrote: > If RAM + swap can be more than 4GB, how does FreeBSD address swap on a > 32-bit machine? Does the kernel internally use a wider address space The same way it does on every partitition: using block numbers. That way you can address 1TByte. And you can have more than a single swap partition. In reality managementstructures which have to be in kernel addressspace is limiting swap before. > with some kind of translation to 32-bit space for programs and hardware Don't mix address space with ram and swap. While you can have more than 4G swap you can't have more than 4G addressspace. But you can have multiple different 4G addressspaces - each process with its own. > that can't handle 64-bit addresses or does it not map swap into the swap is logicaly mapped into address space, but not more than 4G in a single one. > address space at all, instead using it as a kind of "offline" storage > for pages not in use? Does the Alpha port handle swap the same way? Yes - I see no reason to do it different. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message