Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve issues with existing swap devices #2

Open
DonThorntonJr opened this issue Jan 19, 2017 · 2 comments
Open

resolve issues with existing swap devices #2

DonThorntonJr opened this issue Jan 19, 2017 · 2 comments

Comments

@DonThorntonJr
Copy link

DonThorntonJr commented Jan 19, 2017

per Ubuntu:
https://askubuntu.com/questions/471912/zram-vs-zswap-vs-zcache-ultimate-guide-when-to-use-which-one

my solution was to turn off non-zram swap devices after initialization:

...
swapon -p 5 /dev/zram3

swapon -s
for i in $( swapon -s | awk 'NR>1 { print $1 }' | egrep -v zram ) ; do swapoff ${i} ; done
swapon -s

@Cat5TV
Copy link
Contributor

Cat5TV commented Feb 5, 2018

Existing swap is disabled before creating the ZRAM swap in PR #3 - I tested your code first but it didn't work. I just took a different approach and instead turned off existing swap before enabling ZRAM.

@dcpender
Copy link

dcpender commented Jan 9, 2019

there wasn't any problem with novas code for my rpi 3b+ it automatically disabled the existing swap before creating the new one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants