1 1
ThomasD

Flush Swap

Recommended Posts

Hello,

 

Version 5.4.0-odroidxu4 #19.11.3.342

 

If I use this command:

sudo swapoff -a
sudo swapon -a

Swap switch off, but not on again.

Only after reboot, swap is on again.

 

regards

ThomasD

Share this post


Link to post
Share on other sites
5 hours ago, ThomasD said:

Swap switch off, but not on again.


Probably this command does not know how to handle swap in compressed memory form (/dev/zram1) ... which we use by default.

 

It looks like we need to add it to the /etc/fstab and than it works.

/dev/zram1      none swap

 

Share this post


Link to post
Share on other sites

Hello,

 

it works a little.

Before swapoff i have aroung 998 MB swap.

After swapon it show 125 MB swap.

After reboot it is 998 MB.

 

regards

ThomasD

Share this post


Link to post
Share on other sites
10 hours ago, ThomasD said:

it works a little.

 

16 hours ago, ThomasD said:

Version 5.4.0-odroidxu4 #19.11.3.342


Well, try to find out. Development builds are made for that purpose. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1