Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jun 2000 12:08:00 +0200
From:      Willem Brown <willem@brwn.org>
To:        Dan Langille <dan@langille.org>
Cc:        Andy Farkas <andyf@speednet.com.au>, freebsd-questions@FreeBSD.ORG
Subject:   Re: swap_pager_getswapspace: failed
Message-ID:  <20000622120800.E36643@snoopy.brwn.org>
In-Reply-To: <20000622115120.B36643@snoopy.brwn.org>; from willem@brwn.org on Thu, Jun 22, 2000 at 11:51:20AM %2B0200
References:  <39513707.13889.5309CC95@localhost> <Pine.BSF.4.10.10006221456310.535-100000@backup.af.speednet.com.au> <395266E8.17731.57ACE323@localhost> <20000622115120.B36643@snoopy.brwn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Thu, Jun 22, 2000 at 11:51:20AM +0200, Willem Brown wrote:
> Hi,
> 
> Just adding to this. If you look in the /etc/default/rc.conf you'll
> find swapfile="NO". With this in mind.
> 
> dd if=/dev/zero of=/opt/swapfile bs=15 count=10

Andy Farkas pointed out that this will result in a rather small file.
It should read: dd if=/dev/zero of=/opt/swapfile bs=15m count=10
Sorry about that.

> 
> Add the following to the /etc/rc.conf file.
> 
> swapfile="/opt/swapfile"
> 
> It should now be configure everytime you boot the system. Assuming
> that the vn(4) driver is configured in your kernel.
> 
> Regards
> Willem Brown
> 
> On Thu, Jun 22, 2000 at 07:20:08PM +1200, Dan Langille wrote:
> > On 22 Jun 2000, at 14:59, Andy Farkas wrote:
> > 
> > > On Wed, 21 Jun 2000, Dan Langille wrote:
> > > 
> > > > I'm getting quite a few of these now and I have no idea why.  
> > > > 
> > > > Jun 21 19:42:51 buff /kernel: swap_pager_getswapspace: failed
> > > > 
> > > > clues please.
> > > 
> > > No swap space left.
> > > 
> > > > Oh, and I'm getting a few of these every day:
> > > > 
> > > > buff /kernel: pid 35990 (apache), uid 99: exited on signal 11
> > > 
> > > It died because there was no swap space.
> > > 
> > > > $ swapinfo
> > > > Device          1K-blocks     Used    Avail Capacity  Type
> > > > /dev/ad0s1b         70776    55676    15100    79%    Interleaved
> > > 
> > > 79% is pretty close to full.  With only 15Mb of swap left, you'll max out
> > > really quickly.
> > > 
> > > Add another swap partition.
> > 
> > I've just added 150MB of swap file.  By following the instructions at 
> > http://freebsddiary.org/swap.html (it's good to know stuff I wrote 19 
> > months ago actually works).
> > 
> > I'll monitor the results and let folks know if there are any outstanding 
> > problems.  cheers.  Thanks.
> > --
> > Dan Langille  [I'm looking for more work]
> > The FreeBSD Diary - http://www.freebsddiary.org/
> > FreshPorts - http://freshports.org/
[snip ...]

Regards
Willem Brown
-- 
 /* =============================================================== */
 /*      Linux, FreeBSD, NetBSD, OpenBSD. The choice is yours.      */
 /* =============================================================== */

The moving cursor writes, and having written, blinks on.


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?20000622120800.E36643>