Date: Tue, 28 Oct 2014 12:08:54 -0700 From: "Reed A. Cartwright" <cartwright@asu.edu> To: RW <rwmaillists@googlemail.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: out of swap space Message-ID: <CALOkxux4BiF5J72ywE4ifpKpPg1kd%2BchQnQVB%2Btuk1p5X=9dgg@mail.gmail.com> In-Reply-To: <20141028130146.6d2b6179@gumby.homeunix.com> References: <0fdf2022075b7a33f0abde4edd7c12a1@paz.bz> <CA%2BtpaK20Pt0A-G7KzJPhqXn%2BRruk8hF4B4nyhc0uKwxuHvfaMQ@mail.gmail.com> <20141028130146.6d2b6179@gumby.homeunix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
We've run out of swap on a system with 512GB of memory and 1TB of swap space. Processes get killed, including services. It is usually easiest to reboot to start from a fresh system. The funny effect is that you can log in to SSH and get a shell, but cannot run any binary that is not already cached in memory. That confused the hell out of me until I checked memory and swap usage. On Tue, Oct 28, 2014 at 6:01 AM, RW <rwmaillists@googlemail.com> wrote: > On Mon, 27 Oct 2014 16:39:52 -0500 > Adam Vande More wrote: > >> On Mon, Oct 27, 2014 at 2:57 PM, Jim Pazarena <fquest@paz.bz> wrote: >> >> > There is a lot of historical chatter about the amount of swap space >> > required. >> > But for my question, I haven't seen discussion: >> > What HAPPENS when the system flags "out of swap space". >> > Does a process die? or does the system merely become very sluggish? >> > >> >> Both, a process is killed and whenever you're starting to use swap >> space you should expect the system to become sluggish. > > I don't know that anything bad happens simply because you run out of > swap. Processes are killed when the system is unable to find enough > memory to carry on. > > For example if you have 4GB of RAM and 1GB of swap, and you leave 2GB > on tmpfs, you may fill swap without even coming close to running out of > memory. Another example is a very slow memory leak where running out of > memory could happen a long time after running out of swap. > > There seems to be a common trend of allocating swap space that's much > smaller than RAM. When you combine that with tmpfs use, I suspect it > may have become much more common to run out of swap without > consequences. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Reed A. Cartwright, PhD Barrett Honors Faculty Assistant Professor of Genomics, Evolution, and Bioinformatics School of Life Sciences Center for Evolutionary Medicine and Informatics The Biodesign Institute Arizona State University ================== Address: The Biodesign Institute, PO Box 875301, Tempe, AZ 85287-5301 USA Packages: The Biodesign Institute, 1001 S. McAllister Ave, Tempe, AZ 85287-5301 USA Office: Biodesign A-224A, 1-480-965-9949 Website: http://cartwrig.ht/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALOkxux4BiF5J72ywE4ifpKpPg1kd%2BchQnQVB%2Btuk1p5X=9dgg>