pre.cjk { font-family: “DejaVu Sans”,monospace; }p { margin-bottom: 0.08in; }

I have been playing a bit with running programs even virtual machines in memory. What I have noticed is that when all physical RAM is used, my Linux OS (Ubuntu) will move excess memory into SWAP. This is normal, but…. I am attempting to keep all operations running in memory.

When I noticed that 88MB was being used in swap and not released back into memory, I went on a search to find a way to put it back in memory and off of my disk.

So I found the following commands: swapoff and swapon

So using the following commands swapoff -a followed by swapon -a

I’m able to take all to take all swapped data on my hard-drive and place it back in to physical RAM.

Thank You Google

sudo swapoff -a sudo swapon -a