Date: Wed, 5 Jan 2011 17:38:50 -0600 From: Adam Vande More <amvandemore@gmail.com> To: Gary Gatten <Ggatten@waddell.com> Cc: Bruce Cran <bruce@cran.org.uk>, Jeff Whitman <JWhitman@jwnetsource.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Swap Space Message-ID: <AANLkTi=z6zW8d24Twq_phyNeySWQ0_MSFz3OsiD_PAs-@mail.gmail.com> In-Reply-To: <27348_1294270392_4D24FFB8_27348_5874_1_D9B37353831173459FDAA836D3B43499A7AF90D6@WADPMBXV0.waddell.com> References: <009b01cbad28$883d31c0$98b79540$@com> <AANLkTi=GUjG510LvuO==3aaPbFYt5FRf_QyVR8J8v2Tz@mail.gmail.com> <19331_1294269649_4D24FCD1_19331_11348_1_D9B37353831173459FDAA836D3B43499A7AF90D4@WADPMBXV0.waddell.com> <20110105232403.000056a2@unknown> <27348_1294270392_4D24FFB8_27348_5874_1_D9B37353831173459FDAA836D3B43499A7AF90D6@WADPMBXV0.waddell.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 5, 2011 at 5:33 PM, Gary Gatten <Ggatten@waddell.com> wrote: > > > Correct me if I'm wrong, but if necessary one could add (and > > activate) a secondary / additional swap file if necessary without > > rebooting. So maybe start with a few gig and add an additional swap > > file if necessary? > > Swapping to a file is really slow and should only be done if absolutely > necessary since every read/write has to go through the filesystem code > which it doesn't do if done via a swap slice. > > Good point. It's been several years and back on v5 or 6 when I did > something like this. If there's unpartitioned space on the drive, can one > add a secondary swap partition real-time? I forget what I did here - I'm > sure I followed what's in the handbook re swap space. Probably did a swap > file... > Yes you can do that with swapon(1) It's been said though that FreeBSD memory paging algorithms take into account the system's entire available VM for deciding on when to act in low memory conditions and these parameters are tuned expect some of that to be swap space. That is why one reason there *should* be a least some swap space even on a system w/ plenty of RAM. -- Adam Vande More
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTi=z6zW8d24Twq_phyNeySWQ0_MSFz3OsiD_PAs->