I periodically check swap usage, and run:

sudo swapoff -a; sudo swapon -a;

This will force anything in swap (on disk) back into RAM.

Jeff

On Mon, Sep 18, 2017 at 4:05 PM, Steve Trapp <stevetrapp at comcast.net> wrote:

> Aha. I tried 'man swap' but didn't think of 'swapon'. My google search was
> not
> very productive, so I am thankful of your information! -Steve
>
> On Mon, Sep 18, 2017 at 07:16:16PM +0000, Iznogoud wrote:
> > >
> > > For GNU/Linux, how do you turn swap off and how do you turn in back on
> again?
> > >
> >
> > Here is the top of the manual page:
> >
> >
> > NAME
> >        swapon, swapoff - enable/disable devices and files for paging and
> swap-
> >        ping
> >
> > SYNOPSIS
> >        /sbin/swapon [-h -V]
> >        /sbin/swapon -a [-v] [-e]
> >        /sbin/swapon [-v] [-p priority]  specialfile ...
> >        /sbin/swapon [-s]
> >        /sbin/swapoff [-h -V]
> >        /sbin/swapoff -a
> >        /sbin/swapoff specialfile ...
> >
> > _______________________________________________
> > TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> > tclug-list at mn-linux.org
> > http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>
> --
> Name: Steve Trapp
> Location: Just east of the Missippi River
> Email-address: stevetrapp<AT>comcast<DOT>net
> Homepage: comcast DROPPED ALL HOMEPAGES--Where do I put my PGP public key
> now?
> _______________________________________________
> TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
> tclug-list at mn-linux.org
> http://mailman.mn-linux.org/mailman/listinfo/tclug-list
>



-- 
Jeff Chapin
President, CedarLug, retired
President, UNIPC, "I'll get around to it"
President, UNI Scuba Club
Senator, NISG, retired
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20170918/5de89c0e/attachment.html>