From owner-freebsd-questions Sat Jan 26 9:45: 8 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.27in.tv (roc-66-24-112-7.rochester.rr.com [66.24.112.7]) by hub.freebsd.org (Postfix) with ESMTP id 098A437B400 for ; Sat, 26 Jan 2002 09:44:59 -0800 (PST) Received: (from root@localhost) by mail.27in.tv (8.11.6/8.11.6) id g0QHiuB24789; Sat, 26 Jan 2002 12:44:56 -0500 (EST) (envelope-from cjm2@earthling.net) Received: from maxpower (maxpower.lan.27in.tv [10.0.0.250]) by mail.27in.tv (8.11.6/8.11.6av) with SMTP id g0QHisU24775; Sat, 26 Jan 2002 12:44:54 -0500 (EST) (envelope-from cjm2@earthling.net) From: "C J Michaels" To: "alexus" Cc: Subject: RE: out of swap space Date: Sat, 26 Jan 2002 12:45:19 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <200201261642.g0QGgT868534@fedde.littleton.co.us> X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG For a production machine where you have to schedule down time I would suggest going 1/2 way. Thankfully now, the vn(4) device is available as a kld, so you don't have to re-compile the kernel. Create a file on one of your faster drives, configure it as swap space with vnconfig(8), and then use it with swapon(8). And, the best part is, there's already a how-to on this at the FreeBSD Diary: http://www.freebsddiary.org/swap.php But, again, for a production machine, I would _STRONGLY_ recommend that at the first opportunity you have to take it down and arrange for more raw swap space. --Chris > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Chris Fedde > Sent: Saturday, January 26, 2002 11:42 AM > To: alexus > Cc: freebsd-questions@FreeBSD.ORG > Subject: out of swap space > > > On Sat, 26 Jan 2002 09:01:08 -0500 "alexus" wrote: > +------------------ > | hi > | > | is there a way to increase size of swap space? > | > | i have 512mb of ram and 512mb of swap space > | > | i had 256mb of ram before so i created 512mb of swap space > | now i put another 256mb in and i'm still running out of space > | > | so i was asking if there is a way to increase size of swap space? > +------------------ > > You want to spread your swap over all the drives in the box. So > allocate one > or more partitions on each drive. The rule of thumb that swap should be > twice the size of ram. But on a busy server you want enough ram to avoid > swapping at all. > > It is posible to configure swap in a file by using a combination of > vnconfig and swapon but swap configured this way is much slower than raw > partition swap. > > Good Luck > > -- > Chris Fedde > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message