Hey there!
I was following a topic created by someone who seems to have an issue like mine, and now I’m creating a dedicated one to be more detailed, as suggested by @computersavvy
I actually don’t think this is a Fedora-specific issue, since the same problem happens with other distros, but I’m using Fedora right now so I post it here.
So, I’m using a Thinkpad E14 and I recently upgraded it’s RAM, from 16 to 40gb.
Why this odd value?
Well, simply because this specific model of laptop has two RAM slots, with 8gb each by default, but one of the two is soldered, so only the other is upgradable. This leds me to weird RAM values.
I swapped out the slot and replaced it with a 32gb one. So now I have 32+8=40gb.
Actually, free
shows total 39850072
, which is not exactly 40gb but I think this is somehow normal. Right?
Anyway, this is not the problem. The real problem is that since when I did the upgrade, the system performance has actually gotten worse.
Unfortunately I don’t have any benchmark so nothing truly objective, but specifically when I copy/move large files from/to my NVME, I have frequent freezes.
During the transfer, if I try to do anything (like, anything: using the terminal, opening apps, using already open apps in any way…) the system just freezes for sometime which could be some seconds to 10 minutes top, and it just doesn’t respond anymore. I just have to wait, when that time is finished all the operations I tried to do are actually done, like if there are being queued, somehow.
The system keeps behaving like this no matter what, until the transfer finishes.
I seem to have some graphic glitches that I didn’t have before too, but again I have no objective way to prove it so I might just be wrong about this.
As I said I tried this on many distros and I still have the same issue and the Fedora system I’m writing this from is freshly installed, so my first guess, that I had mis-configured something, was wrong.
After some digging, I found out about the post I linked above which describes exactly my issue, and the solution seems to be to set the right values for vm.dirty_background_bytes
and vm.dirty_background_ratio
in /etc/sysctl.d/99-sysctl.conf
.
After I found this thread, I found other sources talking about this which seems to confirm the solution, like the ArchWiki and SUSE, among others.
The problem is I never really heard about this configuration and the values in the three links I posted are all different, which makes sense because I’m supposed to tweak them according to my amount of RAM, right?
So, since my amount of RAM is a bit unusual and I prefer not to do write random values in /etc/sysctl.d/99-sysctl.conf
just to find out by trying, could anyone please help me to find out some reasonable values to write?
Also, obviously if you happen to know other things that might help me to solve my problem, I’d really appreciate to know them!
Thank you.