FeralInteractive / gamemode

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

`gamemoded -r` doesn't seem to behave as described #438

Closed dzuberi closed 1 year ago

dzuberi commented 1 year ago

Describe the bug When I run gamemoded -r [PID], it doesn't act like a toggle. The process runs and gamemoded -sdoes not return inactive until I kill all processes that were created via gamemoded -r [PID]

To Reproduce Steps used to reproduce the behavior:

  1. Choose an arbitrary process PID
  2. run gamemoded -r [PID] &
  3. run gamemoded -s [PID] (this is active as expected)
  4. run gamemoded -r [PID] & again
  5. run gamemoded -s [PID] (this is active again, which is not expected)

Expected behavior The description for gamemoded -r is: -r[PID], --request=[PID] Toggle gamemode for process When no PID given, requests gamemode and pauses This is not the behavior I'm seeing. I expect to be able to call gamemoded -r [PID] twice and have gamemoded be inactive

System Info (please complete the following information):

Additional context Add any other context about the problem here.

dzuberi commented 1 year ago

Turns out I'm using it wrong.. it's meant to be used without the space.