Date: Wed, 5 Jan 2011 17:46:47 -0600 From: Gary Gatten <Ggatten@waddell.com> To: 'Adam Vande More' <amvandemore@gmail.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 - hijack? Message-ID: <27348_1294271207_4D2502E7_27348_6108_1_D9B37353831173459FDAA836D3B43499A7AF90D8@WADPMBXV0.waddell.com> In-Reply-To: <AANLkTi=z6zW8d24Twq_phyNeySWQ0_MSFz3OsiD_PAs-@mail.gmail.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> <AANLkTi=z6zW8d24Twq_phyNeySWQ0_MSFz3OsiD_PAs-@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 somethi= ng like this. If there's unpartitioned space on the drive, can one add a s= econdary swap partition real-time? I forget what I did here - I'm sure I f= ollowed 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 accou= nt the system's entire available VM for deciding on when to act in low memo= ry 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 e= ven on a system w/ plenty of RAM. Sorry for the probable hijack... Speaking of swapping algorithms, is there = a way to force a parent and all child processes to NOT be swapped - period = - and always remain 100% in "real" memory? And if so, is it discouraged or= completely up to the sysadmin? <font size=3D"1"> <div style=3D'border:none;border-bottom:double windowtext 2.25pt;padding:0i= n 0in 1.0pt 0in'> </div> "This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system." </font>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27348_1294271207_4D2502E7_27348_6108_1_D9B37353831173459FDAA836D3B43499A7AF90D8>