Date: Thu, 11 Oct 2001 13:51:15 -0500 From: Mike Meyer <mwm@mired.org> To: Farooq Mela <farooq@whatthefuck.com> Cc: questions@freebsd.org Subject: Re: Machine never uses swap after adding memory. Message-ID: <15301.59939.843029.209015@guru.mired.org> In-Reply-To: <73055597@toto.iv>
next in thread | previous in thread | raw e-mail | index | archive | help
Farooq Mela <farooq@whatthefuck.com> 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. <mike -- Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15301.59939.843029.209015>
