FeralInteractive / gamemode

Optimise Linux system performance on demand
BSD 3-Clause "New" or "Revised" License
4.8k stars 185 forks source link

renice is failing #428

Open Dialgatrainer02 opened 1 year ago

Dialgatrainer02 commented 1 year ago

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):

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

windblows95 commented 1 year ago

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

nfp0 commented 1 year ago

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

@windblows95 This was working correctly before without that modification.