3 ms·
This is a pretty smart strategy. I'd say the majority of the time when something is slow on my machine, it's because there's a resource intensive background pro
by nicoburns 6y ago
This is a pretty smart strategy. I'd say the majority of the time when something is slow on my machine, it's because there's a resource intensive background process (that I don't really need to complete quickly) eating up all my system resources.
It seems like the same strategy would also make sense on Intel processors, although it probably requires at least 4 cores to make sense?
- lupire 6y agoYou can do it on one processor with a process/thread scheduler. This is what makes multitasking possible in general.
- nicoburns 6y agoWell yes, but presumably this impacts responsiveness. The whole point of this strategy is to keep cores free for interactive tasks.
- mnw21cam 6y agoThis is extraordinarily basic stuff. We knew how to do this kind of multitasking, with priorities, back in the 80s (or earlier). Yet people still don't understand it. As an example, a while back I ran a multi-threaded process on a shared work server with 24 cores. It used zero I/O and almost no RAM, but had to spend a couple of days with 24 threads to get the result. I ran it inside "chrt -i", which makes Linux only run it when there is absolutely nothing else it could do. I had someone email and complain about how I was hogging the server, because something like 90% of the CPU time was being spent on my process. That's because their processes spent 90% of their time waiting for disc/network. My process had zero impact on theirs, but it took some explaining.
- StavrosK 6y agoThat's a useful command to know, thanks! However, shouldn't `nice` be handling that sort of stuff? Do you know why there are two commands for the same thing (as far as I can see)?
- mnw21cam 6y agoI would love to know why nice doesn't do this, and why top/ps doesn't show something more sensible when you do.
- scoopertrooper 6y ago> It seems like the same strategy would also make sense on Intel processors Intel agrees! https://en.wikipedia.org/wiki/Alder_Lake_(microprocessor) https://en.wikipedia.org/wiki/Alder_Lake_(microprocessor)
- draw_down 6y ago> Intel expects to launch Alder Lake in the second half of 2021 Let’s wait for this to actually ship first, shall we
- heftig 6y agoYou really want those "efficiency" cores in addition to your regular ones, otherwise dividing your processor costs you a lot of throughput. You also want them to be low-power even when saturated, otherwise you gain responsiveness from the "performance" cores but your "efficiency" cores aren't actually efficient. It seems at least Linux's x86_energy_perf_policy tool lets you set multiplier ranges and some performance-vs-power values per-core, which means such a setup doesn't seem impossible on current Intel hardware.
- wmf 6y agoYou could clock down the background cores and make them run more efficiently even if they're identical.