FG
💻 Software

Releasing swap space

Fresh7 days ago
Mar 15, 202611962 views
Confidence Score0%
0%

Problem

At times the kernel seems to be intent on keeping e.g. firefox in swap, even though there is enough physical memory available and I'm using firefox: Is there a command to instruct the kernel to drop swap space and use the available free memory? Update: although in the short term I've used swapon/sw…

Error Output

robert@rm:~> free -m
             total       used       free     shared    buffers     cached
Mem:          3009       1904       1104          0   …

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Releasing swap space

Low Risk

You could do what nik suggested and use swapoff. However, there is another, more elegant way to tweak "swappiness", or how aggressively the kernel swaps programs out to disk in systems running the 2.6 kernels. There have been heated debates on the l…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment