From owner-freebsd-questions Fri Nov 15 14: 1:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8742337B401 for ; Fri, 15 Nov 2002 14:01:53 -0800 (PST) Received: from clunix.cl.msu.edu (clunix.cl.msu.edu [35.9.2.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB03943E6E for ; Fri, 15 Nov 2002 14:01:52 -0800 (PST) (envelope-from jerrymc@clunix.cl.msu.edu) Received: (from jerrymc@localhost) by clunix.cl.msu.edu (8.11.6+Sun/8.11.6) id gAFM1ha27744; Fri, 15 Nov 2002 17:01:43 -0500 (EST) From: Jerry McAllister Message-Id: <200211152201.gAFM1ha27744@clunix.cl.msu.edu> Subject: Re: Running out of swap space????? To: swear@attbi.com (Gary W. Swearingen) Date: Fri, 15 Nov 2002 17:01:42 -0500 (EST) Cc: jerrymc@clunix.cl.msu.edu (Jerry McAllister), jonas@netwood.net (Jonas Fornander), FreeBSD-Questions@FreeBSD.ORG ('FreeBSD LIST') In-Reply-To: <3ulm3uec7m.m3u@localhost.localdomain> from "Gary W. Swearingen" at Nov 15, 2002 01:48:29 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > > Jerry McAllister writes: > > No problem. (I didn't even know that was something to be sorry for.) > But please reconsider promulgating that lousy old 2xRAM rule of thumb. > Your "total space" is what should count; the issue should what total > space is needed, not what multiple of RAM is needed. Eg, if they have 1 > GB RAM, they don't need 2GB swap. Sort of true, though real memory is still different from swap and a busy system wth a lot of processes hanging around can use a lot of swap even when it isn't killing real memory. Anyway, I have a couple of systems with 1GB memory and 2GB swap and many with 0.5 GB memory and 1GB swap. and even one (non-FreeBSD) system with 7.5 GB memory and 20 GB swap. > What is a good rule of thumb for > total space? I usually give newbies a number around 300MB. To keep the > rule of thumb simple for swap-sizing, don't subtract the RAM from "total > space". Just say "a good rule of thumb for swap is 300MB". The number > is debatable (probably in the 200-400MB range), but the rule has the > advantage of being more easily adjusted for non-rule-of-thumb cases. It really depends on how the system is being used. Some newer stuff seems to suck up swap pretty quickly and just devour memory. You'd think MS designed some of the stuff. Anyway, that guy with a total of 192MB total combined memory and swap and trying to run Apache2, plus MySQL and another big thing, I forgot what, was way below what he needed. ////jerry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message