From owner-freebsd-questions Thu Oct 11 11:51:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 468DF37B405 for ; Thu, 11 Oct 2001 11:51:16 -0700 (PDT) Received: (qmail 40820 invoked by uid 100); 11 Oct 2001 18:51:15 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15301.59939.843029.209015@guru.mired.org> Date: Thu, 11 Oct 2001 13:51:15 -0500 To: Farooq Mela Cc: questions@freebsd.org Subject: Re: Machine never uses swap after adding memory. In-Reply-To: <73055597@toto.iv> X-Mailer: VM 6.90 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 List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Farooq Mela types: > I have a machine set up with 512Mb of ram and one gigabyte > of swap space. I recently added another 512mb of ram. This > machine runs certain programs which use a large amount of memory, > and I noticed that programs would have memory allocation > failures, and that the swap space is not being used at all! > Is this to be expected? I noticed tuning(7) states that there > should be at twice as much swap space as physical memory, > but is this a requirement? Or is there some sysctl that > I have to mess with to fix this issue? It doesn't seem logical > to me that a machine cannot use any swap space because there > is an equal amount of swap space and memory. No, the 2x isn't a requirement. In fact, you can run with no swap at all. By default, the system limits the amount of virtual space a program can have. Check both the login.conf and limits man page for information on that, and make sure your programs aren't getting shut down by one of those things. > (please CC your responses to me, I am not subscribed to -questions@) That's SOP on the list. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message