4 ms·
Does Linux have mechanisms in place to properly utilize ecores? Specifically tagging background services so they never jump in priority? Or would it be up to me
by 0cf8612b2e1e 3y ago
Does Linux have mechanisms in place to properly utilize ecores? Specifically tagging background services so they never jump in priority? Or would it be up to me to manually assign affinity?
I read somewhere that part of what makes the iOS experience better is tight control over how much CPU background jobs can steal.
- lights0123 3y agoLinux has had support for cores with different capabilities for ~a decade, when arm introduced big.LITTLE. systemd puts background services in "slices", which can have properties set in bulk. systemctl set-property system.slice AllowedCPUs=16-19 Would set the "system" slice to certain pinned cores, but there's nothing automatic.
- 0cf8612b2e1e 3y agoThat’s interesting and easy enough to experiment. While I do not have mixed performance cores, I have been curious if pinning processes results in any noticeable smoothness. I get annoyed at various Gnome garbage that occasionally thrashes.
- noir_lord 3y agoalso has taskset which just lets you say "this PID can run on cores 0 through 13". Not the friendliest mechanism for defining what runs on what but it's what I use to make sure that server software I really want on the P cores stays on the P cores.
- garaetjjte 3y agohttps://docs.kernel.org/scheduler/sched-capacity.html https://docs.kernel.org/scheduler/sched-capacity.html https://docs.kernel.org/scheduler/sched-energy.html https://docs.kernel.org/scheduler/sched-energy.html