From owner-freebsd-questions Wed Aug 14 15:28:37 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 BCB5237B400 for ; Wed, 14 Aug 2002 15:28:33 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id D34B843E4A for ; Wed, 14 Aug 2002 15:28:32 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g7EMSPYk006702; Wed, 14 Aug 2002 23:28:25 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g7EMSKVI006701; Wed, 14 Aug 2002 23:28:20 +0100 (BST) Date: Wed, 14 Aug 2002 23:28:20 +0100 From: Matthew Seaman To: Linh Pham Cc: Charles Pelletier , freebsd-questions@FreeBSD.ORG Subject: Re: make buildworld problems Message-ID: <20020814222820.GE2827@happy-idiot-talk.infracaninophi> References: <010e01c243d6$ada7c1b0$32040101@hume> <20020814141052.X12275-100000@q.closedsrc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020814141052.X12275-100000@q.closedsrc.org> User-Agent: Mutt/1.5.1i 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 On Wed, Aug 14, 2002 at 02:14:43PM -0700, Linh Pham wrote: > On 2002-08-14, Charles Pelletier scribbled: > > # well, just checked both. > # the swap space is a little thin at the moment but the rest of the compile is > # having no problems. the only C flag being used is : -O. is it necessary to > # remove that? > > I normally compile with only -O which normally doesn't cause any > problems with building world (anything higher can cause problems with > some code or when using flaky hardware). > > Do you know how much swap space is available when the machine is idling? > Are there any daemons or programs that you can stop to regain some > memory usage (X11 can be quite a memory hog)? swapinfo(8) will show you what swap devices you have, how much swap space is available on each and how much is in use. top -o size will list processes in order of size, so you can target the disk hogs effectively, and it shows you how much swap is in use. If all else fails, and you need more swap space and you have some spare on one of your filesystems, you can create a swap file on a vnode --- remember that you can easily add more swap to a running system, but to remove it again requires a reboot. e.g. these commands will create a 32Mb swap file in /home/swapfile: dd if=/dev/zero of=/home/swapfile bs=1m count=32 vnconfig -e vn0c /home/swapfile swap Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message