You are not logged in.

#1 2015-03-30 16:25:38

technolog
Member
From: Europe / Slovenia / Grosuplje
Registered: 2012-01-28
Posts: 117

Despite having GCC with nice = 19, the system still lags

As the title says, I'm compiling some software in the background. I have set all processes to nice=19 and I have checked in the system monitor that is indeed the case (all top cpu processes have nice = 19).

But then the chromium or intellij or any other application for that matter still lags a lot and presents sluggish behavior. Even if I set their nice level to -20.

Why is that?

Last edited by technolog (2015-03-30 16:26:33)

Offline

#2 2015-03-30 16:31:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,794

Re: Despite having GCC with nice = 19, the system still lags

Out of physical memory?  Is the disk drive thrashing?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2015-03-30 16:32:28

mychris
Member
From: Munich
Registered: 2012-09-15
Posts: 68

Re: Despite having GCC with nice = 19, the system still lags

CPU scheduler? I/O scheduler? Which one do you use?

https://www.kernel.org/doc/Documentatio … design.txt

Offline

#4 2015-03-30 16:43:02

technolog
Member
From: Europe / Slovenia / Grosuplje
Registered: 2012-01-28
Posts: 117

Re: Despite having GCC with nice = 19, the system still lags

I'm not out of memory.

I/O scheduler shouldn't matter (it's CFQ), CPU scheduler is the default, I did not change anything from default Arch install.

It's not that I am unable to work, but everything feels really sluggish. A lot more than usual.

Last edited by technolog (2015-03-30 16:46:36)

Offline

#5 2015-03-30 17:07:44

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Despite having GCC with nice = 19, the system still lags

If not memory consumption then this is where bfs excels.. Try the linux-ck kernel from the AUR or from my repo and report back.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2015-03-30 17:17:50

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,412
Website

Re: Despite having GCC with nice = 19, the system still lags

Maybe you should tell us what package you're compiling and set options in /etc/makepkg.conf . Or details on your hardware for that matter.


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#7 2015-03-30 17:19:52

technolog
Member
From: Europe / Slovenia / Grosuplje
Registered: 2012-01-28
Posts: 117

Re: Despite having GCC with nice = 19, the system still lags

I am compiling chromium with ozone (-O3, -march=native). All compiler processes have nice = 19.

I have run scala compiler which normally takes around 10s for this program, but now it took just under half a minute.

I guess I'll check out linux-ck as suggested.

Offline

#8 2015-03-30 22:24:13

Soukyuu
Member
Registered: 2014-04-08
Posts: 854

Re: Despite having GCC with nice = 19, the system still lags

I'm compiling software often as well, and the system has been very responsive even at spikes of 100% on all of my 4 cores. I am using linux-ck, so maybe it's that, as others suggested. I've been very pleased with the overall performance of the -ck kernel so far, the only issue I ever had were random kernel panics with the BFQ scheduler enabled for my SSD... (I always confuse BFS and BFQ, the BFQ is the disk scheduler, right?)


[ Arch x86_64 | linux | Framework 13 | AMD Ryzen™ 5 7640U | 32GB RAM | KDE Plasma Wayland ]

Offline

#9 2015-03-30 23:15:46

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Despite having GCC with nice = 19, the system still lags

Yes, BFQ is the IO scheduler while BFS is the CPUS scheduler.  BFQ is optional while BFS is enabled by default in linux-ck.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB