mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-08-06 05:08:29 +02:00

During finding the cause of an issue, we discovered bad interactions with other resource management daemon that may be running at the same time and may interfere with GameMode's ability to properly set scheduling parameters of the process. Usually, this results in EPERM (instead of EINVAL for lacking kernel support). It also means that the other daemon is leaking wrong scheduling settings into the games with negative performance impacts (quite the opposite of what the user wanted to achieve). So we should give some valuable hints. This commit improves logging by detecting the error situation and giving context-based hints on what to do next. To keep logging verbosity low, the hint is only logged once per error code. Closes: https://github.com/FeralInteractive/gamemode/issues/68 Signed-off-by: Kai Krakow <kai@kaishome.de>