Better responsivines for Arch/Linux
Greetings
Is there a way to reduce total freezes for Arch Linux with high CPU load? I relatively often experience a situation, where an application creates a big CPU load and fully uses a core, which then makes my desktop environment (Budgie) freeze for a while, even though I use a 4770k which is still a quite decent CPU.
I read about https://wiki.archlinux.org/index.php/Linux-ck but actually I would like to continuing the normal kernel. Any advice you can give me?
About this post
- Posted
- Archived
- Score
- 7 · 100% up
- Kind
- Text
- ID
- czimda
26 comments
Do you have enough ram in your system? I notice that only if Linux begins swapping to disk because it runs out of Ram
16 Gigs. Definitely not a problem
Did you check the usage with say htop?
This is a bad assumption.
Happens to me when using 7GB on my 8GB machine, everything starts to slow down
Do you have swap configured? I think you are running out of ram so things start to freeze and slowdown.
Zen-kernel and Linux-ck is definitivley worth it. It's also relative easy. Just git pull and compile. In package manager add kernel and kernel source lock.
Arch has linux-zen in repositories. No need to compile.
Thats a nice info. And how is maintenance? Can I just keep no-brain-updating even with the different kernel?
Install linux-zen and linux-zen-headers, edit your bootloader to use linux-zen, forget about it.
also look at ananicy to automatically adjust nice levels.
I have OpenSuse 15.1 and Zen-kernel 5.2 in a vmware-image. I have these locks:
6 | kernel-desktop | package | (any)
7 | kernel-desktop-base | package | (any)
8 | kernel-source | package | (any)
9 | kernel-vanilla | package | (any)
and I use zypper update all the time. I have this image since kernel 3.2-3.4 and upgraded from OpenSuse 12 to 15.1 okay. However on OpenSuse sometimes update and especially upgrade can break a few things. But other then that the kernel is great. Much better then stock!
Can you check using
top/htopwhether some process(es) is (are) consuming excessive CPU/RAM?Yes. Thats exactely why I'm asking. You can see a single core being completely used (and the gui blocked if it is running on this core) while other cores are barely used
Run that application under nice and ionice
I'm curious if you know what app is causing this problem?
I've run Budgie on 4GB laptops without issue. Also, I notice I very rarely consume more than 2-3GB ram in Solus, Arch, Fedora, or Debian.
I doubt your CPU has anything to do with this. It doesn't make any sense to me that an application pegging a core would slow down an entirely different process, since the kernel should schedule the GUI process on another core.
I would seriously check your RAM when this happens. Your system will struggle if RAM is filled and the kernel is trying to swap out memory to disk. I fill up 16GB of RAM all of the time, especially with a bunch of chrome tabs and slack.
Use nice to run it
Well.. Don't use Budgie, but KDE or gnome and enable real time scheduling.