Before running this command, please make sure that your system has
enough available physical memory to do the transfer. I did this once,
having about 11 or 12 gigs swap, and only 4 gigs avail, and suddenly
realized that all physical memory was going to be swallowed. Try as I
could (using htop commands) I could NOT abort the swapoff command,
despite how many sig signals were sent to the command after it became live.
On 8/18/22 15:38, Russell Senior wrote:
If you want to recover the swap space back into RAM (assuming the RAM is
available again):
sudo swapoff -a
sudo swapon -a
... should do the trick.
On Thu, Aug 18, 2022 at 3:00 PM American Citizen <[email protected]>
wrote:
Hi:
I have been running a mathematical programming language on my openSuse
Linux system, but have noticed that running programs in this language
seem to be chewing up physical memory, but not releasing it back when
the program is terminated, or killed. Once I had all 32 gigs of memory
allocated and about 12 gigs of swap, leading to a severely swamped
system, which I barely recovered from.
Is there any command that can be run, to recover good physical memory? I
know rebooting the system will recover the physical memory, but this is
the last step.
I suspect a memory leak in the programming language as the cause of all
this.
Thanks for your input.
Randall