From owner-freebsd-questions Sat Jan 26 8:44:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from catalyst.sasknow.net (catalyst.sasknow.net [207.195.92.130]) by hub.freebsd.org (Postfix) with ESMTP id BE55637B402 for ; Sat, 26 Jan 2002 08:44:51 -0800 (PST) Received: from localhost (ryan@localhost) by catalyst.sasknow.net (8.11.6/8.11.6) with ESMTP id g0QGjtD64452; Sat, 26 Jan 2002 10:45:56 -0600 (CST) (envelope-from ryan@sasknow.com) X-Authentication-Warning: catalyst.sasknow.net: ryan owned process doing -bs Date: Sat, 26 Jan 2002 10:45:55 -0600 (CST) From: Ryan Thompson X-X-Sender: ryan@catalyst.sasknow.net To: alexus Cc: freebsd-questions@FreeBSD.ORG Subject: Re: out of swap space In-Reply-To: <003401c1a671$e7801250$faa0b542@noc> Message-ID: <20020126102130.C59495-100000@catalyst.sasknow.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 alexus wrote to freebsd-questions@FreeBSD.ORG: > 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 Suggestion #1: If you can reduce the memory consumption of your system, that should be your first task. Make sure you don't have any processes that are eating/leaking memory. Is it better after a reboot, and gradually winds down to a crash? > so i was asking if there is a way to increase size of swap space? > > this is live server and i can't afford for it to be down, so place > no suggestions like partion magic.. this is so windowish:) unless > thats the only one solution then i might consider.. Suggestion #2: Using your existing drives, you WILL need to mess with filesystems. If you have any slices which you are NOT using, or are not using nearly to capacity, you can move all those files to another filesystem, symlink things appropriately, and use the slice for swap (swapon(8), disklabel(8)). If the slice is adjacent to an existing swap partition, use disklabel(8) (or /stand/sysinstall, for the uninitiated). You'll probably want to do some of this in single-user mode, but your total downtime shouldn't be that significant. > and yes i'm going to put more physical memory, but i still would > like to know if there is a way to increase swap size Suggestion #3: Add another disk and use it as a new swap device. To do this with only 45 seconds of downtime, add the entry to /etc/fstab before you shut down, pop the drive in, and turn the power on. If you have any hot swap bays, this isn't even an issue. :-) Suggestion #4: Share the load with another machine. > thank you in advance I'm currently building a router/firewall/proxy for a client, using FreeBSD 3.5 on a 486DX/2-66 that they supplied with 3072K + 640K + 256K = 3968K RAM, and a 180MB HDD. After getting the kernel ~1MB, disabling almost everything on boot (ps -ax | wc = 9 :-), it is soon to be serving an entire floor of office machines. So, what is it you can't do with several orders of magnitude more memory than that? :-) - Ryan -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message