-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
DietPi-Set_swapfile | zram is not applied on first boot #4002
Comments
Many thanks for your report. I'll try to replicate. The zram implementation does not create a swap "file" but uses the zram block device itself as swap space, similar to a swap partition. Indeed the Easiest command to check which swap spaces are really used: |
how can i change to zram method? |
you can try following |
There was indeed a bug in the logic of the script that dropped zram/zram0 dietpi.txt entries. Actually this was to prevent the attempt of removing the |
On fresh dietpi install and before first boot i opened dietpi.txt and edited few lines.
For swap file i entered
AUTO_SETUP_SWAPFILE_SIZE=1
and
AUTO_SETUP_SWAPFILE_LOCATION=zram
When i go to dietpi_config/Advanced Options
I get this result
Is this correct output for zram configuration?
Also, where exactly zram keep swapfile? If i understand correctly swap file is located on ram memory and not on sd card or external hdd?
The text was updated successfully, but these errors were encountered: