From owner-freebsd-questions Fri Mar 16 20:50:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id BE7E437B718 for ; Fri, 16 Mar 2001 20:50:30 -0800 (PST) (envelope-from mwm@mired.org) Received: (qmail 8213 invoked by uid 100); 17 Mar 2001 04:50:30 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15026.60693.971478.600561@guru.mired.org> Date: Fri, 16 Mar 2001 22:50:29 -0600 To: "Jonathan Hamel" Cc: questions@freebsd.org, Subject: Re: Swap strategy In-Reply-To: <82812874@toto.iv> X-Mailer: VM 6.89 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jonathan Hamel types: > : > >having to run XFree86-4, pretty heavy mozilla + netscape (I know netscape > >sux, but I need to make sure my sites look the same in both browsers) + I'm curious - do you actually try browsers that aren't designed to look as much alike as possible? W3m? Lynx? Links? Amaya? Opera? > I've had questions about this myself. I remember that Linux installs > generally recommend your swap space be at least double your RAM (so since I > have 64MB in this machine, my swap would be 128MB). Does the same apply to > the BSD systems as well? The 2x rule comes from wanting to do be able to get uncorrupted core dumps. I consider it a bare minimum for any system for which you might want to debug system crashes. For most normal desktop use, it's probably more than sufficient, if you have enough memory for decent performance. The last sentence is the real clue. By the time you're running out of swap, under normal conditions your performance has gone to hell in a handbasket. You need to make sure you've got enough real to provide decent performance. Having taken care of that, 2x is probably enough. Given the difficulty of increasing swap, the low cost of disk, and my penchant for memory-hungry things like LISP compilers, I tend to go with 4x. A laundry list of applications isn't really helpful in figuring out how much memory you need. Usage patterns have a lot to do with it. Some things - desktop managers, for instance - are known to be pigs and in constant use. Others depend very much on your usage patterns. If you always start a new netscape to look at a page, then shut it down, it won't make much difference. If you leave it open all the time, and have windows open on all 20 pages you're currently working on, it might produce a noticable load. If your apache (which you don't really need for doing static HTML) sits in the background doing nothing unless you load a page from it, it's negligible. If you've got a couple of browser windows open pulling stats from it at regular intervals, things will be different. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message