Zramswap is realy make pc with low ram work better?

my pc is 6 ram, when i run the browser and the vscode and the c#kit extesnion and the sql-server, my pc can't do all that without slowing or crashing, so does zramswap is realy make pc with low ram work better?

I've not had to fiddle around with zram swap in any capacity, but there's a nice little blurb I found here about someone doing some tests and seeing the outcomes on their machine:
Faster Linux on low memory using zram (ubuntu 22.04) – Craftware
Long story short, it seems like it can help, but it has some limitations, and it isn't a magic ball to suddenly make your no ram issue into infinite ram. But it might be worth a try in this case.

What I also might ask, is how does your system have 6 GB of ram? Typically you would see 8 or 4 gig sticks nowadays, unless you're running a 2 and 4 gig stick, or 3 2 gig sticks, which could be the case. Would there be any way of increasing your ram capacity from 6 to at least something like 8? Ram has come down significantly in prices mostly nowadays.

2 Likes

I can confirm that using ZRAM will work for the symptoms that you describe (unresponsiveness, crashing, etc). But keep in mind that it'll come at the cost of increased CPU usage.
Also, depending on how much memory you need to run all those programs, this may not be enough on its own. The best solution is to install more physical memory, if you can.

Here's an interesting read that I found about the differences between ZRAM and ZSWAP. I'm not sure which one is better for your use case, though.

You might also want to consider upgrading to an SSD, if you haven't done so already.

It's rare, but you can certainly mix & match different sizes. The reason why you normally see powers of two is because most motherboards these days support "dual-channel memory". This essentially makes better use of the hardware, making things faster, with the only condition that both sticks are the same size and speed.
So, two 4GB sticks are better than a single 8GB one. I guess it would also work with two 3GB sticks... but I've never seen one of those :smiley:

Some low-end graphic cards don't have their own RAM, or don't have enough, and you can assign a chunk of your regular RAM to them to use. I once saw that on a 8GB RAM that reported only 6GB as available to the system.

I've also seen 12GB (8 + 4), and I used to have a 1.5GB (512Mb + 1GB) laptop back in the early days of Windows Vista (which it couldn't run properly and I had to install XP).

1 Like

I find Zwap works better on a low RAM machine. Solus comes with Zram enabled as default but doesn't release Ram as programs are closed, Zswap does.

1 Like