How to boost gaming performance?

How, I wanted to try an arch based operating system. So I landed here. My system is running smoothly. I am running LTS kernel. My both CPU & GPU is AMD.
I have tried Ubuntu, and Nobara before this. I had a good gaming experience on Nobara. But on Endeavour OS, I am feeling I am getting less performance on gaming.

Is there anything I should be doing to gain maximum gaming performance?
I installed steam default>

EndeavourOS Linux" (64 bit)
Kernel Name: Linux
Kernel Version: 6.1.53-1-lts
X Server Vendor: The X.Org Foundation
X Server Release: 12302000
X Window Manager: GNOME Shell
Steam Runtime Version: steam-runtime_0.20230801.56012

Driver: AMD AMD Radeon RX 5500 XT (navi14, LLVM 16.0.6, DRM 3.49, 6.1.53-1-lts)

Thanks in advance!

I’m not a gamer, so take what I say with the right amount of skepticism.

Maybe you should have chosen Garuda instead of Endeavor because she has many out-of-the-box performance tweaks.

But if you want you can apply the same tweaks by carefully reading this page, I have gained valuable advice from it.

1 Like

I would switch from LTS to the Zen kernel, which is better for gaming. Of course you can install multiple kernels and select the kernel when booting up.

which is also important, since you want to use steam, you should set up vulkan.
https://wiki.archlinux.org/title/Vulkan

There is a good thread on the topic of gaming

1 Like

If you are doing some gaming then i would install vulkan-radeon and you may need the 32 bit library files also and for mesa too.

https://wiki.archlinux.org/title/AMDGPU

There is also hardware video acceleration. A link for that is on the page.

1 Like

I didn’t read that article carefully, but one sentence stood out to me as particularly wrong:

I don’t use a swap partition as mentioned previously I would rather just buy more ram.

You should use swap regardless of how much RAM you have. I prefer a swap file over a swap partition, but any will do. For 32 GB of RAM, from my experience, 6 GB of RAM is sufficient (if you’re not interested in using hibernate). Swap is not a replacement for RAM.

Thank you! I have installed vulkan-radeon and uninstalled amdvlk & lib32-amdvlk
I also have these packages installed: lib32-libva-mesa-driver, lib32-mesa, lib32-mesa-utils, lib32-mesa-vdpau, lib32-vulkan-mesa-layers, libva-mesa-driver, mesa, mesa-utils, mesa-vdpau, and, vulkan-mesa-layers.

But I saw performance boost after installing vulkan-radeon at least getting 10 FPS more. I am on wayland. I didn’t change anything else!

While it may be wrong as a statement, it’s not wrong in reality of outcome.

I know all the arguments for using swap very well, they’re technical in nature, however it takes exceptionally sh*t software to use or extreme overflow bugs (which will lead to problems regardless of swap anyway) to actually encountering such problems.

In reality 32 Gb is far more than enough for anyone to completely disable swap and never encounter any problems, while not encountering performance issues either.


So unless you use hibernation - it’s non-sense, personally i’d only use swap while having less than 4 Gb of RAM.

1 Like

Not true. Well, maybe, if you keep very short uptimes (reboot every couple of hours or so). If you keep your computer on for the entire day or even longer, and you use a memory hogging program (like Chromium or Firefox), you will benefit from a small swap file (and still not encounter any performance issues).

Yeah, like any modern web browser. I agree, it’s exceptionally :poop: software.

Not true.
I do exactly that for WEEKS of uptime :rofl:

If you have more than enough RAM, consider enabling zram. It’s easy to set up, and gives your system access to a swap device if needed without having to make a swap file or partition on the disk. It’s faster than using swap on a disk actually, and spares your SSD unnecessary writes.

@Kresimir is right, if the OP wants to boost their system’s performance then they should have a swap device set up. Swap is not just for when you run out of RAM, or have applications that don’t map memory properly. Swap can actually make your RAM more efficient. https://unix.stackexchange.com/a/190521

2 Likes

I remember that post and zram is MUCH better option than disk swap, especially for servers and production machines…But “boosting” performance with it - is a bit of a stretch :laughing:

Using zram as a swap device is not a better option than swap, it is swap.

I think if running a different kernel is going to be considered a valid suggestion for the sake of this thread, then enabling swap should be considered valid as well. You could just as easily say no one will ever notice the performance benefit of using such-and-such kernel instead of so-and-so kernel.

The main point I was trying to convey is: not enabling swap at all because you have an abundance of RAM is not the best choice, and does not serve the OPs goal of boosting performance. Enabling zram provides the benefits of swap without the drawbacks of needing a swap file or swap partition.

I know, i mean it’s much better way of doing it, than thrashing SSD and being slower than RAM.

Utter FUD. If you have 32 GB of RAM, you’re not “thrashing” your SSD with swap. Your soystemd logging probably causes more writes to the drive than swap.

And you are not losing any performance with swap on SSD, because it is done when the computer is mostly idle. Again, swap is not there to give you more RAM in an OOM situation, it’s awful at that, but it is there to allow the kernel to efficiently use your existing RAM.

In my experience and testing of disk activity - both statements are wrong.

It definitely thrashes heavily (obviously under conditions of using swap), you can check yourself, but i don’t recommended thrashing SSD :laughing:

And RAM (well any DDR3+ RAM) is much faster than any SSD.

I’m using a swap file on an SSD normally, what you’re saying is completely wrong.

Of course it is, but that doesn’t matter here. If you need to be using swap under heavy load, you just don’t have enough RAM for what you’re doing. Swap won’t help you with that very much.

WRONG!!! :clown_face:

  1. Generate swap conditions by writing some sh*tty program

  2. Monitor disk writes. It will be much higher than highest usual offenders (unconfigured Firefox, baloo etc)

Why would I do that? That would be incredibly stupid. Why would I cause an OOM situation artificially and then monitor swap use? What useful information would that give me? That kernel decided to use swap when it didn’t have another choice? Well, yes, Cpt. Obvious. :person_facepalming:

Instead, I just normally use my computer and let the kernel decide when it needs to swap. Which is typically very far from an OOM situation. On my desktop, swap usage tends to be very low, maybe a hundred or so megabytes after days of uptime. It never spikes during high load, because I have plenty of RAM.

1 Like

honka_animated-128px-38

You’re so wrong on this, but I don’t have the will to argue with you. An intelligent bystander can look up how the kernel can move hardly ever used memory pages into swap to make more cachable space during idle time, and make up his/her own mind.