I’m currently running Bazzite in a machine with only 8gb of ram, and I noticed the installation already gave me 4gb of swap. But is there any way to safely add more swap to it, at least making it 8gb?
Bluefin (and therefore probably also Bazzite) uses zram. You can find the preinstalled config file here: /usr/lib/systemd/zram-generator.conf
and you can create your own settings by creating the file /etc/systemd/zram-generator.conf
.
See man 5 zram-generator.conf
for details.
Thank you. Your answer led me to a solution!
btw, I just edited this file /etc/systemd/zram-generator.conf
I also changed swappiness to “60” with sudo sysctl vm.swappiness=60
. It was 180 for some reason.
Once I get my hands in more RAM I’ll set it to “10” instead, to make sure swap is only used when really needed
With only 8gigs of ram the higher swappiness should be better.
It prioritizes compressing the ram. 180 was fine.
Wait, what?
I thought the swappiness would make prioritize running swap instead of RAM?
Back to 180 it is lmao
Do a search for swappiness of 180
Really good info.
Cheers
I was actually seeing a redit post of people saying not to go over 100 and that the less you have the better. So I thought I should aim for similar results
You could always try both and maybe report your experiences.
Always down for user research!
Once I double my RAM to 16 GB i’ll do some tests and report here.