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
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.
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 software.
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
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.
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.
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.
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.
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.