enabling zram instead off the swap-file seems to work better and limits writes.
https://wiki.debian.org/ZRam
https://wiki.archlinux.org/title/Zram
On the newer 6.12 kernel you need to use systemd-zram-generator
https://github.com/systemd/zram-generator
/etc/fstab
https://wiki.debian.org/ZRam
https://wiki.archlinux.org/title/Zram
On the newer 6.12 kernel you need to use systemd-zram-generator
https://github.com/systemd/zram-generator
Code:
$ free total used free shared buff/cache availableMem: 3796 1516 394 330 2319 2279Swap: 3795 610 3185Total: 7592 2126 3580
Code:
$ zramctlNAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT/dev/zram0 lzo-rle 3.7G 584.9M 201.7M 222.6M 4 [SWAP]
Code:
$ cat /etc/fstabproc /proc proc defaults 0 0PARTUUID=f4ce7238-01 /boot/firmware vfat defaults 0 2PARTUUID=f4ce7238-02 / ext4 defaults,noatime 0 1######################################### Added 4 lines to use RAM instead of SSD for temp and log filestmpfs/tmptmpfsdefaults,noatime,mode=177700tmpfs/var/tmptmpfsdefaults,noatime,mode=177700#tmpfs/var/logtmpfsdefaults,noatime,mode=075500#tmpfs/var/spooltmpfsdefaults,noatime,mode=177700
Statistics: Posted by craigevil — Fri Feb 14, 2025 5:05 pm