From owner-freebsd-questions Sun Oct 7 15:24:37 2001 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id D83C137B407 for ; Sun, 7 Oct 2001 15:24:34 -0700 (PDT) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 6913CBD1D; Sun, 7 Oct 2001 15:24:34 -0700 (PDT) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id PAA25723; Sun, 7 Oct 2001 15:24:34 -0700 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id f97MRg996492; Sun, 7 Oct 2001 15:27:42 -0700 (PDT) (envelope-from swear@blarg.net) To: "default" Cc: Subject: Re: ideal swap partition space... References: From: swear@blarg.net (Gary W. Swearingen) Date: 07 Oct 2001 15:27:41 -0700 In-Reply-To: Message-ID: Lines: 36 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) 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 "default" writes: > I'm curious about setting up the amount of space for the swap partition... > is there any ideal amount for FreeBSD? Yes. None. > Or is it dependant on the size/type > of hard drive & other hardware that one has? If so, is there any kind of > equasion or theory behind determining what is the best amount to provide for > the best performance? Same answer. > Is there such a thing as a swap partition that is too large? Too large for what? I don't know what the configuration limit is. My swap partition is 500 MB. Assuming that your amount of RAM is fixed, then a fairly simple general rule is this: Determine how much virtual memory you want (how much is required by the programs you want to have running (or waiting, etc) at the same time) and subtract the amount of RAM you have. Then add back on whatever safety margin you feel is reasonable, given the size of your hard disks and the memory-leakiness of your software (which I used to have to consider on Linux, but don't on FreeBSD). My biggest memory consumers are X11, one or two copies of XEmacs, Netscape, and software compiling. I've got 64 MB RAM and doubt if I've ever used much more than that much of my 500 MB of swap. (I keep a small xosview display of memory-types usage always visable.) Forget the two-times thing; it's needlessly simple, leaving out any consideration of what software you want to run or how big your hard disks are. It does have the benefit of requiring only a second of thought as opposed to having to make estimates and predictions. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message