3 ms·
It's nice but with additional limitations - on a normal Unix system even if you nice everything to the lowest level possible they'll still take over all cores.
by bombcar 6y ago
It's nice but with additional limitations - on a normal Unix system even if you nice everything to the lowest level possible they'll still take over all cores. This limits things below a certain nice level to the efficiency cores, meaning that the performance cores are always available for foreground action.
- damagednoob 6y agoSo nice + taskset[1]? 1: https://linux.die.net/man/1/taskset https://linux.die.net/man/1/taskset
- archi42 6y agoSeems so. Just that it works "automagically" and reserves some cores for certain priority groups. Maybe one can write a script/daemon that `taskset`s all tasks with a certain niceness range (or by additional rules) to a few "background cores" and everything else to the "interactive cores"? On Linux you might also get some problems with kworker threads landing in the wrong group, but I'm not that much into Kernel internals I've to admit.
- ape4 6y agoOf course the applications (programmers of the applications) need to declare their "nice" levels correctly - they can't be greedy
- stefan_ 6y agoNothing has ever stopped Apple from pinning indexing work to specific cores. They just didn't give a shit.
- bombcar 6y agoI suspect they did it less for performance and more for energy savings - this prevents the scheduler from moving a background process to a performance core (which a naive one would do if it saw the performance core underutilized).
- astrange 6y agoIt's always done this but the effect wasn't visible on x86.