RedSnt ♾️🦋♂️👓🖥️

Born 1983, He/him, Danish AuDD introvert that’s surfed the internet since he was a teen (1996 onwards).

  • 0 Posts
  • 5 Comments
Joined 3 years ago
cake
Cake day: June 18th, 2023

help-circle
  • Baloo (which is KDE’s file indexer, which is meant to speed up file searches) was borked earlier this year, and I don’t know if it has been fixed yet, but seemingly it’d keep doing symlink loops which of course isn’t useful. This is likely to happen when you have any wine-prefix installed so even just Steam installed will do this.

    The fix on my computer was simply turning it off for all of my /home/$USER folder by adding the location in System Settings - Workspace - Search - File Search - Stop indexing a folder.

    If you’re on an nVME SSD, and if you rarely do file searches anyway, I don’t see any problems doing this.

    As for RAM, definitely check out Zram. It works by compressing unused parts of memory back into RAM. Here’s what 8 GB Zram looks like on my PC right now:

    > zramctl
    NAME       ALGORITHM DISKSIZE   DATA  COMPR  TOTAL STREAMS MOUNTPOINT
    /dev/zram0 zstd            8G 573,5M 138,6M 154,4M         [SWAP]
    

    So it has compressed half a gigabyte of unsused memory down to ~150 megabytes, that’s a 3.7x compression rate, saving quite a bit of memory.

    It’s very easy to set up, take a look here.

    My config for reference, which ships by default with Nobara.
    ─────┬──────────────────────────────────────────────────────────────────────────
         │ File: /usr/lib/systemd/zram-generator.conf
    ─────┼──────────────────────────────────────────────────────────────────────────
       1# This config file enables a /dev/zram0 device with the default settings:
       2# — size — same as available RAM or 8GB, whichever is less
       3# — compression — most likely lzo-rle
       4#
       5# To disable, uninstall zram-generator-defaults or create empty
       6# /etc/systemd/zram-generator.conf file.
       7 │ [zram0]
       8 │ zram-size = min(ram, 8192)
    ─────┴──────────────────────────────────────────────────────────────────────────
    

    Regarding stuff like which algorithm to use etc. the Arch wiki article on zram has some good info.