Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Chromium priority cycling #272

Open
kfeoktistoff opened this issue Oct 29, 2020 · 0 comments
Open

Chromium priority cycling #272

kfeoktistoff opened this issue Oct 29, 2020 · 0 comments

Comments

@kfeoktistoff
Copy link
Contributor

Chromium is a multi-process browser and recently I have found that it manages its processes by itself. Depending on the purpose of the process Chromium applies a specific priority value. I have noticed values 0, 10, 19. Considering above, we have 2 problems:

  1. Ananicy applies the same value to all Chromium processes regardless of their purpose
  2. Both Chromium and Ananicy renice the processes one after another slowing down the whole system

You can check the logs in your system:

$ cat /var/log/syslog | grep "ananicy.*renice.*chromium" | head
<time> <host> ananicy[1211]: renice: chromium[166625/166625] 19 -> -3
<time> <host> ananicy[1211]: renice: chromium[166625/166627] 19 -> -3
<time> <host> ananicy[1211]: renice: chromium[166625/166628] 19 -> -3
<time> <host> ananicy[1211]: renice: chromium[166625/166629] 19 -> -3
<time> <host> ananicy[1211]: renice: chromium[166625/166633] 19 -> -3
<time> <host> ananicy[1211]: renice: chromium[166625/166635] 19 -> -3
<time> <host> ananicy[1211]: renice: chromium[166625/166676] 19 -> -3
<time> <host> ananicy[1211]: renice: chromium[166625/166680] 19 -> -3
<time> <host> ananicy[1211]: renice: chromium[166625/166681] 19 -> -3
<time> <host> ananicy[1211]: renice: chromium[166625/166682] 19 -> -3

As a short-term solution we can remove Chromium rules from Ananicy. As a long-term one I would recommend to consider a possibility of disabling the default rules.

kfeoktistoff added a commit to kfeoktistoff/Ananicy that referenced this issue Oct 29, 2020
raphielscape added a commit to raphielscape/Ananicy that referenced this issue Nov 18, 2020
* 'master' of github.com:Nefelim4ag/Ananicy: (72 commits)
  nefelim4ag#272: disable chromium rules once it manages its child processes by itself
  Create stellaris.rules
  Create rimworld.rules
  Fix: nefelim4ag#181
  fix descriptions
  Added some rules
  Create handbrake.rules
  Create celluloid.rules
  Create mame.rules
  Create ecwolf.rules
  Create blastem.rules
  Create mesen.rules
  Create higan.rules
  Update firefox.rules
  Added Kerbal Space Program rules
  Added unison rule
  Create quake.rules
  Create cen64.rules
  Create fsuae.rules
  Delete quake.rules
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant