Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Aug 2002 23:28:20 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Linh Pham <lplist@closedsrc.org>
Cc:        Charles Pelletier <fozekizer@attbi.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: make buildworld problems
Message-ID:  <20020814222820.GE2827@happy-idiot-talk.infracaninophi>
In-Reply-To: <20020814141052.X12275-100000@q.closedsrc.org>
References:  <010e01c243d6$ada7c1b0$32040101@hume> <20020814141052.X12275-100000@q.closedsrc.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020814222820.GE2827>