From owner-freebsd-questions Thu Jun 22 3: 8:13 2000 Delivered-To: freebsd-questions@freebsd.org Received: from snoopy.brwn.org (intgw1.brwn.org [196.28.127.66]) by hub.freebsd.org (Postfix) with ESMTP id 97FB437C230 for ; Thu, 22 Jun 2000 03:08:03 -0700 (PDT) (envelope-from willem@snoopy.brwn.org) Received: by snoopy.brwn.org (Postfix, from userid 1001) id 428061D63; Thu, 22 Jun 2000 12:08:00 +0200 (SAST) Date: Thu, 22 Jun 2000 12:08:00 +0200 From: Willem Brown To: Dan Langille Cc: Andy Farkas , freebsd-questions@FreeBSD.ORG Subject: Re: swap_pager_getswapspace: failed Message-ID: <20000622120800.E36643@snoopy.brwn.org> References: <39513707.13889.5309CC95@localhost> <395266E8.17731.57ACE323@localhost> <20000622115120.B36643@snoopy.brwn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000622115120.B36643@snoopy.brwn.org>; from willem@brwn.org on Thu, Jun 22, 2000 at 11:51:20AM +0200 X-Public-Key: http://www.brwn.org/~willem/pubkey.txt Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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