Date: Tue, 30 Jun 1998 16:19:05 +0930 From: Greg Lehey <grog@lemis.com> To: Doug Lo <jwlo@ms11.hinet.net>, freebsd-questions@FreeBSD.ORG Subject: Re: How do I add swap spaces? Message-ID: <19980630161905.Y1880@freebie.lemis.com> In-Reply-To: <35988061.F332B89F@ms11.hinet.net>; from Doug Lo on Tue, Jun 30, 1998 at 02:06:25PM %2B0800 References: <35988061.F332B89F@ms11.hinet.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980630161905.Y1880>