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
>
>
>

Reply via email to