SSD swap

Hi, i need to make a swapfile over ssd but i can't find a way to do it What's the best method to do so ?
8 Replies
termdisc
termdisc2mo ago
Bazzite by default does not use swap. how have you arrived to this decision?
Azema Viator
Azema Viator2mo ago
I thought zswap was enabled by default. as I see 4gb of swap on my system
Niuulh
NiuulhOP2mo ago
Star citizen crash on loading even with full zram helper group told me i need a swap on ssd in addition to make it run
termdisc
termdisc2mo ago
zram is enabled by default meaning RAM is being compressed to act as swap you can change your zram allocation by editing /etc/systemd/zram-generator.conf to include zram-size=min(ram, 16384) e.g.,
compression-algorithm=zstd
zram-size=min(ram, 16384)
compression-algorithm=zstd
zram-size=min(ram, 16384)
I guess the better question would be is how much physical RAM do you have?
Niuulh
NiuulhOP2mo ago
already done and it's not enough i set zram to full ram, and once loading of the game it 12gb it's just shut down
termdisc
termdisc2mo ago
did you reboot after making that change? also run zramctl to confirm the change
Niuulh
NiuulhOP2mo ago
NAME TYPE SIZE USED PRIO /dev/zram0 partition 12.3G 0B 100 /dev/sda2 partition 25.4G 0B -2 got both now kde partition can manage it fine, thanks for the help :)
termdisc
termdisc2mo ago
good luck with performance when it hits the SSD. your better option is to buy more RAM than to rely on swap swap performance on SSD is bad compared to RAM
Want results from more Discord servers?
Add your server