The panel and launcher menu have suddenly gotten very slow to response.
When I click on my panel icons in the upper left hand corner, nothing happens.
Everything is frozen for almost 10 seconds. And then the system slowly responds with whatever I clicked on.
This also happens when I try to change virtual desktops.
Before my upgrade this problem did not exist.
Everything was working fine before.
Also when I set shortcut keys to change the virtual desktops, that seems to work faster than using the mouse and panel interaction with the pager/virtual desktop space.
]$ swapon
NAME TYPE SIZE USED PRIO
/dev/zram0 partition 4G 0B 100
I have btop showing RAM usage around 60 GB. Never above 90 GB.
Also I had 2 VM’s running last night each 32 GB (Windows 10 and Arch linux).
CPU usage was fine.
Everything now shut down as per your suggestion of starting with an empty session.
I typically use only 2 VM’s each 32 GB.
VM Arch linux is dynamic usage whereas
VM Windows 10 is always 32 GB.
I also have 8 virtual desktops running with around 20 apps (GIMP, LibreOffice, Firefox (20 tabs), VLC, Kitty Neovim.
Never had problems with using the above with 128 GB until last night.
You suggest that I should increase swapfile usage to 12 GB ?
I can safely allocate about 25 GB.
Thanks.
I did some research and setup the following:
I changed zram to 24G with priority 100.
(Had some issues with the zram config file memory units).
I added a swap file of 16GB in the fstab with priority 10.
zramctl:
NAME ALGORITHM DISKSIZE DATA COMPR TOTAL STREAMS MOUNTPOINT
/dev/zram0 zstd 24G 4K 64B 20K [SWAP]
swapon --show
NAME TYPE SIZE USED PRIO
/swap/swapfile file 16G 0B 10
/dev/zram0 partition 24G 0B 100
Then I setup a kitty terminal to watch si/so for vmstat 1.
When/If it gets sluggish again, I am to watch the si/so columns in vmstat 1.
If they remain same, then the problem is not my system but something with
KWin and Plasmashell GPU related.
This is not the thing to do, as zram will first get filled up and then the swapfile will be constantly used. It would be better to setup zswap. This article explains the differences between zram and zswap, and why zram only makes sense when you don’t have any disk-backed swap.
Also, in this case, zram probably wouldn’t make much of a difference. I have used on low-power SBCs without it having much of an impact on system performance.
Zswap works at another layer than zram, transparently and before disk swap, so there is no specific thing to “swapon”. You need to add zswap.enabled=1 to your Linux kernel command line.
I also use Arch Linux, with systemd-bootd/gummiboot, so it has to be added to the conf files under /boot/loader/entries, at the end of the lines starting with options. I have the following command line for zswap, which works fine with my 16 GiB of RAM:
You would then disable zram (and make sure that it doesn’t set itself up again on the next reboot) before restarting to enable zswap. If you use grub as bootloader, I can also help you.
Yes, having a swap file or partition is never a bad thing, except if you are limited by disk bandwidth or use devices which have limited write endurance.
I am using GRUB with Archlinux.
I am also using 128 GB of RAM .
How should I go about setting up zswap ?
Does it use RAM or disk ?
Also I do not have your gummiboot.
Not sure what that is all about.
I can research the finer points.
If you can give me some help , would be appreciated