3

First issue with Manjaro. I am not sure when it begun, but now, every single time linux uses the SWAP file, the entire system stays unresponsive, freezing (not even the mouse moves), so I need to wait until it finishes using the SWAP to be able to use it again.

I have 16GB RAM and I was not noticing that, but for some reason, Chromium started to use a little bit of the SWAP when the Hardware Acceleration were turned on and the mouses started to stop moving for a few ms/seconds.

So I tried it out: opened a VM with 8GB RAM and done, my PC were frozen for about 10 minutes, until I were able to use it again.

When I turn on the swap file, everything works fine again, even the VM. It does not matters with the SWAP is on a SSD or not.

Comments
  • 3
    Exactly what I am experiencing, only I have 4g RAM and thus much more fun. The first real issue I am having with Manjaro too.
  • 2
    Oh. Same here, but I'm dumb and I didin't noticed the problem until you mentioned it. I also have less RAM, so it happens more frecuently. But as I said, I'm dumb.
    I will check in home any solutions.
  • 2
    I am out of time lately, but if I find something, I will let you know! @zeters @VinnieSift
  • 4
    This is a common issues. You can set swapiness to 5 or something like that. When system starts using swap, restart swap.
  • 0
    📌
  • 0
    @lamka02sk thanks! I will give it a try!
  • 3
    @brunofontes @zeters @electrineer Ok it took me a minute to do this correctly.
    Write in /etc/sysctl.d/99-sysctl.conf
    vm.swappiness=1
    vm.vfs_cache_pressure=50
    Reboot
    It should work a lot better now. I'm doing a few tests now to see whats up, but yeah, it looks better.
  • 0
    @lamka02sk that is a poor workaround rather than a fix. Like when a http call hits a timeout because of a dead server, making the timeout unlimited.
  • 0
    @VinnieSift so when the system encounters low memory, it will reclaim pagecache rather than VFS cache or start swapping
  • 1
    @electrineer I'm not going to say I'm an expert on the matter. I just looked enough to find a recommended configuration. You should be right.
    And I should read more about what I am doing, but I was kinda in a hurry.
  • 1
    @VinnieSift the system is somewhat complex and it's impossible to know what is happening if you don't know where to look
  • 1
    @electrineer You are right, and I'm working on it. I started to use Linux and learn how a computer really works very little time ago. I have a lot to learn and I still have some problems so I will need to look into this.
Add Comment