From owner-freebsd-hackers Mon Jun 18 10:57:28 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id 72C4837B401 for ; Mon, 18 Jun 2001 10:57:26 -0700 (PDT) (envelope-from dillon@earth.backplane.com) Received: (from dillon@localhost) by earth.backplane.com (8.11.3/8.11.2) id f5IHvKK16658; Mon, 18 Jun 2001 10:57:20 -0700 (PDT) (envelope-from dillon) Date: Mon, 18 Jun 2001 10:57:20 -0700 (PDT) From: Matt Dillon Message-Id: <200106181757.f5IHvKK16658@earth.backplane.com> To: "Ashutosh S. Rajekar" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: max kernel memory References: 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 :Hi, : :I'm trying to give the kernel (4.0-RELEASE) 2Gb of memory to work with. I :can afford to have 4Gb of physical memory on one of my servers, and hence :the experiments. : :Is it safe to play around with KERNBASE, and get away without breaking :code ? Is there any other advisable method if this one is risky ? : :-ASR Yes, you can change KERNBASE. I'm not entirely sure but I believe if you have an old set of bootblocks you may have to reinstall them to get a set that is kernbase-agnostic. e.g. the disklabel -B command on the appropriate slice. DG changed KERNBASE a while back to reserve a gigabyte of VM for the kernel. This should be sufficient on a 4G machine but it depends where your resources are going. If your server's resources are user-process centric then you don't need to change KERNBASE. If your server's resources are network-mbuf centric then you may have to give the kernel more KVM (e.g. like 2GB instead of 1GB... 0x80000000 instead of 0xC0000000). But be careful. The more KVM reserved for the kernel, the less VM is available for user processes to allocate and mmap. I'm sure people who run 4G machines can give you better information, I've never run anything larger then 2G myself, though expect down the line I'll begin needing 4G machines to support larger databases. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message