114
New Patches For Linux's Zswap Show Major Improvements
(www.phoronix.com)
A community for everything relating to the GNU/Linux operating system (except the memes!)
Also, check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
This, assuming you have a swap partition, right? I'm running with 64 GB without any swap. No issues while gaming AAA titles. Without swap there should be no wear on the SSD, right?
If you really don't want any swap then you can use zRAM. I've heard even just a little bit of swap space (even zRAM) can help a lot. Note that when you set up zRAM, if you set it to 16GB that does not mean it will cap at 16GB of RAM usage, it means it will cap at 16GB of data pre-compression and its actual RAM usage will likely be closer to 6GB when full. And when it's empty it doesn't use any RAM.
That sounds great. I'll keep that in mind when I reach the point where my large RAM size becomes obsolete. ๐
Here is an article In defence of swap: common misconceptions by Chris Down from 2018. It has a "tl;dr" section with 7 points, if you just want have a quick look.
I setup a swap file instead a partition, it's just more flexible, but same concept. The swappiness settings
cat /proc/sys/vm/swappinessis at "60" with a total size of 64 GiB on a very fast NVME SSD. If this was a slow HDD, then any writes and reads would be much more noticeably slow. I had it disabled in the past too and didn't notice any difference. The only difference to me would be, if the system RAM fills up, then the system could freeze and maybe crash. Or the system will unload applications to make room, and it could hit randomly an important app. Imagine a program has a memory leak.Gaming isn't heavy on ram. You need fast ram not lots of ram for gaming. Lots of ram helps with heavy workloads, compiling and software development and stuff. Playing a game only needs the recommended amount for that game, then as fast as you can get so as not to be a bottleneck for your CPU.
Alright, well, that's not really addressing the question. Without a swap partition, you shouldn't get much wear on your SSD, right?
Sorry, I may have misunderstood. No, if you don't use your SSD as a swap device, you won't use or wear your SSD with swap. With 64gb ram and just playing AAA games, you won't have much need for any kind of swap. If you decide to do any heavy workloads that are heavy on ram requirements, zswap is an option to keep swap off your SSD and thus prevent wear on the disk. However if you are very limited on ram for your workload, zswap might not provide enough space, then traditional SSD swap will be the final option.
Okay cool, thank you ๐๐
No worries, I think maybe I came off a little bit annoyed, which I assure you I wasn't. ๐