mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 09:23:06 +02:00
Disable softrealtime (SCHED_ISO) and renice by default
SCHED_ISO is not supported by upstream kernels, so don't try to use this by default since for most users it will result in an error log that trying to set the scheduling policy fails. Without extra system configuration, we will also not have permission to renice processes by default, so out of the box doing this will fail as well. Users that wish to use these features can enable them from the config once they have configured their system appropriately.
This commit is contained in:
@ -7,19 +7,20 @@ desiredgov=performance
|
||||
; The default governer is used when leaving GameMode instead of restoring the original value
|
||||
defaultgov=powersave
|
||||
|
||||
; By default, GameMode changes the scheduler policy to SCHED_ISO with 4 or more CPU cores,
|
||||
; force enable or disable with "on" or "off"
|
||||
softrealtime=auto
|
||||
; GameMode can change the scheduler policy to SCHED_ISO on kernels which support it (currently
|
||||
; not supported by upstream kernels). Can be set to "auto", "on" or "off". "auto" will enable
|
||||
; with 4 or more CPU cores. "on" will always enable. Defaults to "off".
|
||||
;softrealtime=off
|
||||
|
||||
; By default, GameMode renices the client to -4, you can put any value between 1 and 20 here,
|
||||
; the value will be negated and applied as a nice value
|
||||
renice = 4
|
||||
; GameMode can renice game processes. You can put any value between 1 and 20 here, the value
|
||||
; will be negated and applied as a nice value.
|
||||
;renice=4
|
||||
|
||||
; By default, GameMode adjusts the iopriority of clients to BE/0, you can put any value
|
||||
; between 0 and 7 here (with 0 being highest priority), or one of the special values
|
||||
; "off" (to disable) or "reset" (to restore Linux default behavior based on CPU priority),
|
||||
; currently, only the best-effort class is supported thus you cannot set it here
|
||||
ioprio = 0
|
||||
ioprio=0
|
||||
|
||||
; Sets whether gamemode will inhibit the screensaver when active
|
||||
; Defaults to 1
|
||||
|
Reference in New Issue
Block a user