gamemode icon indicating copy to clipboard operation
gamemode copied to clipboard

renice is failing

Open Dialgatrainer02 opened this issue 2 years ago • 3 comments

Describe the bug renice is failing despite being in the correct group

To Reproduce Steps used to reproduce the behavior:

  1. install gamemode from arch extra repo
  2. configure nice value
  3. add user to gamemode group using sudo usermod-aG gamemode $USER 4.run gamemoded -t
  4. see error 'Verifying renice ERROR: renice value not set correctly after gamemode_request_start Expected: 17, Was: 0 ERROR: Initial values for new threads were incorrect! ERROR: Multithreaded renice tests failed! ::: Failed!'

Expected behavior A clear and concise description of what you expected to happen.

System Info (please complete the following information):

  • OS and version: arch is rolling
  • GameMode Version arch extra repo

Additional context i have also edited the pam config to allow to gamemode to renice

Dialgatrainer02 avatar Jul 17 '23 17:07 Dialgatrainer02

Changing the renice limit for usergroup gamemode might do the trick, add @gamemode - nice -19 to /etc/security/limits.conf

windblows95 avatar Sep 17 '23 17:09 windblows95

I also have this problem. I'm on Manjaro.

@windblows95 This was working correctly before without that modification.

nfp0 avatar Oct 01 '23 00:10 nfp0

Well this is old but .. its open.

By default, GameMode is confined within the default PAM limits. I can only speak for arch based distros but for those.. that would be -10.

If the renice value in the configuration file is set to a value that is not supported, the renicing operation will fail. (in your case you were using 17 , this would fail) To enable a nice value of "up" to -19 set you can set it at /etc/security/limits.d/10-gamemode.conf

You would edit the file to read : @gamemode - nice -19

Note: don't set this to -20. Root runs at -20 and allows you to fix any issues or system hangups "bellow" that setting.

Also remember that if are editing gamemode.ini you should use a positive number 10 = -10 19 = -19 ect...

Fr0g-Not-Found avatar Dec 29 '24 22:12 Fr0g-Not-Found