From owner-freebsd-questions Tue Oct 29 6:33:28 2002 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 E6FB737B401 for ; Tue, 29 Oct 2002 06:33:26 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 461FC43E42 for ; Tue, 29 Oct 2002 06:33:26 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id g9TEXI420961; Tue, 29 Oct 2002 09:33:18 -0500 (EST) From: Jerry McAllister Message-Id: <200210291433.g9TEXI420961@clunix.cl.msu.edu> Subject: Re: Checking RAM and swap use To: john.m.mills@alum.mit.edu Date: Tue, 29 Oct 2002 09:33:17 -0500 (EST) Cc: Julien.Bournelle@int-evry.fr (Julien Bournelle), freebsd-questions@FreeBSD.ORG (FreeBSD-questions) In-Reply-To: from "John Mills" at Oct 29, 2002 08:47:08 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > > Julien - > > On Tue, 29 Oct 2002, Julien Bournelle wrote: > > > On Tue, Oct 29, 2002 at 08:34:50AM -0500, John Mills wrote: > > > > How can I check the amount of RAM and swap memory in use (like the Linux > > > console command: 'free')? > > > top ? > > > Thanks - I had been ignoring that part of the screen when I ran 'top'. > > > Now - I see I need to increase my swap partition. Do I have to wipe my > installation and start again? If you have some room that is unused on your FreeBSD disk slice, you can just use disklabel to make sure it is identified as swap and then put it in /etc/fstab to be used as swap. If you are dual-booted, you could shrink that unworthy MS portion of the disk with something like Partition Magic and make another slice of the newly freed-up space and then use fdisk to make it into a FreeBSD slice (not bootable) and then disklabel to create a partition in it dedicated to swap. Then add it to /etc/fstab. You could add a disk to the machine and use some of it as swap. Make a FreeBSD slice on it with fdisk and then use disklabel to make partitions with one of them (normally 'b') designated swap and then put it in /etc/fstab. If neither of those can happen, then you will need to repartition your existing drive. Although it may be possible to use one of the available utilities to shrink existing partitions within a slice, I would suggest makeing backups of each partition using dump(8) to some media you can preserve. Then reslice/repartition the drive, boot from a rescue disk and restore(8) the dumps. Then in single user mode, fix up /etc/fstab and it should work. Of course, if you are a few versions behind 4.7, then this would be a good time to just do an new install of 4.7 and merge over only the stuff you need to keep from those backups. ////jerry > > - John Mills > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message