Swapping when memory is idle??
steve at sohara.org
Fri Aug 21 07:12:36 UTC 2020
On Fri, 21 Aug 2020 07:02:42 +0200
Polytropon <freebsd at edvax.de> wrote:
> On Thu, 20 Aug 2020 12:40:32 -0600, @lbutlr wrote:
> > Once a page is in swap it will stay there until it is needed.
> Or until the operator deactivates and reactivates swap (using
> the swapoff / swapon programs), which would lead to anything
> still in swap being "synced" with RAM as long as there is enough
> capacity to hold them. THis is of course a heavy interference
> with how the OS manages memory, and often not a good idea. ;-)
The only time it's a good idea IME is just after some event has
almost but not quite triggered the OOM killer before releasing memory so
far too much has been swapped out. It will come back as needed of course but
recovery is smoother if you force it all back with swapoff.
Steve O'Hara-Smith <steve at sohara.org>
More information about the freebsd-questions