Date: Wed, 29 May 2013 13:50:27 +0100 From: RW <rwmaillists@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: "swap" partition leads to instability? Message-ID: <20130529135027.13ef4d5e@gumby.homeunix.com> In-Reply-To: <CAH3a3KVfxFnUOV4vjSpHwyU9Sd7Oc40Ct3DUSz0kZfnhCjyg9w@mail.gmail.com> References: <1369558712.96152.YahooMailNeo@web165006.mail.bf1.yahoo.com> <loom.20130526T143506-872@post.gmane.org> <1369644392.92027.YahooMailNeo@web165003.mail.bf1.yahoo.com> <loom.20130527T115233-867@post.gmane.org> <loom.20130528T204022-196@post.gmane.org> <CAH3a3KU%2BZe2SRe0DQVGw=rV1XhCL1z4mZu2Mdv_c_NnAD9pyAw@mail.gmail.com> <loom.20130529T131753-79@post.gmane.org> <CAH3a3KVfxFnUOV4vjSpHwyU9Sd7Oc40Ct3DUSz0kZfnhCjyg9w@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 29 May 2013 13:57:22 +0200 Fred Morcos wrote: > Linux has a sysctl variable vm.swappiness which you can set to 0 or 1 > out of 100. Not sure how to achieve the same on FreeBSD, maybe one or > more combinations of the following? You'll probably make things worse. > vm.stats.vm.v_swappgsout: 236969 > vm.stats.vm.v_swappgsin: 28411 > vm.stats.vm.v_swapout: 92607 > vm.stats.vm.v_swapin: 28285 These are just information > vm.disable_swapspace_pageouts: 0 I'm not entirely sure, but I think this just disables paging at runtime - rather than compile time. > vm.defer_swapspace_pageouts: 0 IIRC this defers paging, but it can end up with the paging done on the critical path rather in the background - it's usually a bad idea. > vm.swap_idle_enabled: 0 > vm.swap_idle_threshold2: 10 > vm.swap_idle_threshold1: 2 This why you shouldn't confuse swapping and paging. These are about actually swapping-out processes. It's mainly about reducing memory use on multiuser systems where there many terminal idle at at any time.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130529135027.13ef4d5e>