FeralInteractive / gamemode

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

Fix hybrid CPU core pinning #455

Closed patatahooligan closed 8 months ago

patatahooligan commented 8 months ago

Previously the condition would always evaluate to false. With the fix any core with >=95% of max_freq will be added to the set of cores to keep.

I tested this on my system with a 13600k by comparing the results of running a make -j20 job with and without gamemode. With gamemode I saw the expected results, namely:

Fixes #451.