gamemode
gamemode copied to clipboard
renice is failing
Describe the bug renice is failing despite being in the correct group
To Reproduce Steps used to reproduce the behavior:
- install gamemode from arch extra repo
- configure nice value
- add user to gamemode group using sudo usermod-aG gamemode $USER 4.run gamemoded -t
- 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
Changing the renice limit for usergroup gamemode might do the trick,
add @gamemode - nice -19 to /etc/security/limits.conf
I also have this problem. I'm on Manjaro.
@windblows95 This was working correctly before without that modification.
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...