From owner-freebsd-questions Mon Jun 29 23:49:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA15316 for freebsd-questions-outgoing; Mon, 29 Jun 1998 23:49:21 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from freebie.lemis.com (freebie.lemis.com [139.130.136.133]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA15309 for ; Mon, 29 Jun 1998 23:49:10 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.0/8.9.0) id QAA07399; Tue, 30 Jun 1998 16:19:05 +0930 (CST) Message-ID: <19980630161905.Y1880@freebie.lemis.com> Date: Tue, 30 Jun 1998 16:19:05 +0930 From: Greg Lehey To: Doug Lo , freebsd-questions@FreeBSD.ORG Subject: Re: How do I add swap spaces? References: <35988061.F332B89F@ms11.hinet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <35988061.F332B89F@ms11.hinet.net>; from Doug Lo on Tue, Jun 30, 1998 at 02:06:25PM +0800 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tuesday, 30 June 1998 at 14:06:25 +0800, Doug Lo wrote: > Folks, > > I have many times to get "swap out_of_memory" messages, so I want to > add swap spaces, would anyone tell me how to do, thanks. Find yourself an unused disk slice and add it with swapon. Traditionally swap slices are slice b. For example, if you can create a slice /dev/sd3b, you could then do: # swapon /dev/sd3b Check with pstat -s: # pstat -s Device 1024-blocks Used Avail Capacity Type /dev/wd0s1b 51200 48272 2800 95% Interleaved /dev/sd3b 204800 140832 63840 69% Interleaved Total 255744 189104 66640 74% To mount on boot, just put it into /etc/fstab: /dev/sd3b none swap sw 0 0 Greg -- See complete headers for address and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message