#
#asahi · 2023-12-23 16:59
PaulFertserI'm just surprised people are using zram without opting in to it.
#asahi · 2023-12-23 16:58
PaulFertser(default being 60)
#asahi · 2023-12-23 16:58
PaulFertserar: indeed, I checked my notes, I had vm.swappiness=10
#asahi · 2023-12-23 16:55
arPaulFertser: swappiness takes a value between 0 and 200, and higher values make the kernel *more* eager to swap things out
#asahi · 2023-12-23 16:49
PaulFertserInteresting. When I was experimenting with zram on a 512 MiB machine (old Tegra2-based laptop) or on a 32 MiB wifi router I couldn't find any meaningful combination of settings for it to be useful. What really helped with that laptop was normal swap and setting swappiness to 90 (so that it wouldn't start swapping until almost no free RAM left).
#asahi · 2023-12-23 16:46
arPaulFertser: yup. that just makes things halt to a crawl
#asahi · 2023-12-23 16:45
PaulFertserar: how about having normal swap there instead, is that ends up being slower?
#asahi · 2023-12-23 16:44
arPaulFertser: this doesn't apply to every usecase, but for me, where i occasionally do compile stuff "heavy" on my laptop, zramSwap makes the difference between compiles finishing with no hiccups, and occasionaly making the oom-killer angry
#asahi · 2023-12-23 16:16
kidplayer666broken
#asahi · 2023-12-23 16:16
kidplayer666wait, button is here but it is brokem
#asahi · 2023-12-23 16:15
kidplayer666and glad to see the implementation of hybernation
#asahi · 2023-12-23 16:15
kidplayer666also, anyone else with the problem on slp's microvm while trying to game of the cursor being away by a consistent margin from the thing being cursed?
#asahi · 2023-12-23 16:15
PaulFertserIs this a general rule, any laptop and desktop is supposed to work better with zram swap provided some (what exactly?) conditions are met?
#asahi · 2023-12-23 16:14
kidplayer666apparently
#asahi · 2023-12-23 15:42
PaulFertserSo is having zram by default recommended now to all SSD users?
#asahi · 2023-12-23 15:29
kidplayer666As everything else was just zram
#asahi · 2023-12-23 15:29
kidplayer666That also explains the low ram usage
#asahi · 2023-12-23 15:28
kidplayer666Went from 7.28 GB zram to 7.28 zram + 16GB of swap
#asahi · 2023-12-23 15:27
kidplayer666Nefsen402: I rebooted and it assumed the swap automatically
#asahi · 2023-12-23 15:23
Nefsen402the swapon advice online is horrible. Just configure /etc/fstab and run mount -a
#asahi · 2023-12-23 15:22
Nefsen402you need to put your swap partition under /etc/fstab so that it's persistent to the next boot
#asahi · 2023-12-23 15:21
kidplayer666Now it actually runs
#asahi · 2023-12-23 15:19
kidplayer666Nefsen402: thanks
#asahi · 2023-12-23 15:19
kidplayer666And now it’s much better
#asahi · 2023-12-23 15:19
kidplayer666And not like resizing is hard
#asahi · 2023-12-23 15:18
kidplayer666Swap partition always works
#asahi · 2023-12-23 15:18
Nefsen402I think in the past btrfs didn't support swapfiles but it does now
#asahi · 2023-12-23 15:18
kidplayer666Meh
#asahi · 2023-12-23 15:18
Nefsen402donno if there's anything special you need to do with btrfs
#asahi · 2023-12-23 15:18
Nefsen402I would probably do a swapfile
#asahi · 2023-12-23 15:18
kidplayer666I just used Gparted
#asahi · 2023-12-23 15:18
Nefsen402configuring a swap is like two commands and you can disable it later or give it more
#asahi · 2023-12-23 15:17
kidplayer666“
#asahi · 2023-12-23 15:17
kidplayer666It could say “hey, I noticed you don’t have a lot of ram, a bit of swap will make for a better experience
#asahi · 2023-12-23 15:17
kidplayer666If you got 16GB or 8
#asahi · 2023-12-23 15:17
Nefsen402definitely
#asahi · 2023-12-23 15:17
kidplayer666I think it could suggest some swap
#asahi · 2023-12-23 15:16
kidplayer666Ah ok
#asahi · 2023-12-23 15:16
kidplayer666Only Zram
#asahi · 2023-12-23 15:16
Nefsen402But I have a 32gb machine so it's fine
#asahi · 2023-12-23 15:16
kidplayer666Same
#asahi · 2023-12-23 15:16
Nefsen402my install came with a 8gb zram swap
#asahi · 2023-12-23 15:16
kidplayer666I thought it was going to like a file on disk
#asahi · 2023-12-23 15:15
kidplayer666That probably explains it all…
#asahi · 2023-12-23 15:15
kidplayer666Jesus christ
#asahi · 2023-12-23 15:15
Nefsen402Much of the "need to force restart" scenarios would probably evaporate with a bit of actual swap
#asahi · 2023-12-23 15:15
Nefsen402It's not actually using your disk
#asahi · 2023-12-23 15:14
Nefsen402zram is a virtual swapfile that is backed by ram through a compression algorithm
#asahi · 2023-12-23 15:13
kidplayer666Nefsen402: what is the difference though?
#asahi · 2023-12-23 15:06
kidplayer666I’ll configure at least 16GB

plus ›