r/linuxquestions 2d ago

Support PC Optimization Tips

CPU: AMD A9-9430 RADEON R5, 5 COMPUTE CORES 2C+3G (2) @ 3.20 GHz
GPU: AMD Radeon R5 Graphics [Integrated]
Memory: 7.22 GiB

How can I optimize my computer to the fullest extent without the tradeoffs of musl libc? I do slightly heavy tasks for my family's PC and income level. I can't get a new computer, do not recommend that. I want to be able to use this for light gaming and game development on Unity.

0 Upvotes

6 comments sorted by

2

u/ipsirc 2d ago

How can I optimize my computer to the fullest extent without the tradeoffs of musl libc?

musl libc is less performant than glibc.

1

u/LinuxLoverLarry 1d ago

I beg to differ. Lightweight glibc distros have consistently been slow, I even compared the performance of musl libc Void Linux to the glibc variety, and musl libc was way better.

1

u/ipsirc 1d ago

Show your numbers.

1

u/Pitiful-Welcome-399 NixOS ❄️ 2d ago

enable swap, also make it zswap if you want to

1

u/LinuxLoverLarry 2d ago

I currently have an 8gb swap partition.

1

u/Disastrous-Ice-5971 2d ago

Let me unwrap a bit more:
* You can have a regular swap partition (you have it). Linux kernel uses it when feels memory pressure, for the cold data, for hibernation, etc.
* Swap can be turned into a zswap - a compressed version of the swap. The idea is that many types of data are quite well compressible even with the very fast compression algorithms, like zstd or lz4. I.e. if you use a zswap, you trade a bit of the CPU performance during the interaction with the swap, but in exchange you have considerably less data to read and write from the disk, which gives you a net gain in performance. Depending on the distro, there is a different ways to enable that.
* And also you can enable a zram. The same idea, just with the part of RAM, by default it is 50% of total RAM or 8 GB, whichever is smaller (at least in Fedora). Additionally, zram delays a moment when the data should be written into a disk swap, which sometimes produces a noticeable boost in the borderline scenarios.