From owner-freebsd-questions Thu Jan 16 19:27:46 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1EB037B401 for ; Thu, 16 Jan 2003 19:27:44 -0800 (PST) Received: from hotmail.com (f94.sea2.hotmail.com [207.68.165.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D59C43F43 for ; Thu, 16 Jan 2003 19:27:44 -0800 (PST) (envelope-from frank19991@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 16 Jan 2003 19:27:40 -0800 Received: from 128.2.128.65 by sea2fd.sea2.hotmail.msn.com with HTTP; Fri, 17 Jan 2003 03:27:40 GMT X-Originating-IP: [128.2.128.65] From: "Frank Li" To: d.anker@au.darkbluesea.com Cc: freebsd-questions@freebsd.org Subject: Re: Increase memory limit ? Date: Thu, 16 Jan 2003 21:27:40 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 17 Jan 2003 03:27:40.0412 (UTC) FILETIME=[63C33BC0:01C2BDD8] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Duncan, Thanks for your help! >From: Duncan Anker >Yes, 2G - 1 is the maximum size a signed int can hold ... mind you, any >program needing more that 2G of memory really should be implementing >on-disk storage of data for itself. Thanks for your suggestion. In this case I should probably do so. But I have some other cases that may use other's simulation package which is hard to change due to existing software architecture. > > >You can also tune this at boot time by adding them to the file > > >/boot/loader.conf. e.g. >It may be the case that you cannot specify the value like that in >loader.conf, in which case we must do the math ourselves.  I put in 1073741824 which is 1G, booted the GENERIC kernel. Not worked. Strange. >Read this, it may help: > >http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swap-space.html Cool! I created an additional swapfile according to its instruction. Everything is smooth. Just one thing not quite understood. # dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 It actually created a 64GB swapfile. As we knew virtual memory space on 32bit bsd cannot exceed 2GB, is 64GB for multiple processes/programs, or multiple users? Therefore I just delibrately change it to a smaller value that my harddisk can hold (32GB). Not sure if this is a documentation problem in the handbook. Interesting. Frank _________________________________________________________________ The new MSN 8 is here: Try it free* for 2 months http://join.msn.com/?page=dept/dialup To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message