3 ms·
IO Nice will just affect the io scheduling (obviously), but you can also do the same thing to the CPU schedulers. schedtool -B -e ionice -c3 make -j10 Tha
by simcop2387 15y ago
IO Nice will just affect the io scheduling (obviously), but you can also do the same thing to the CPU schedulers.
schedtool -B -e ionice -c3 make -j10
That's the idiom I commonly use on long large compile jobs. means that anything else will always get the cpu or io time (maybe with some increased latency, which usually isn't too bad) that it needs while all idle time is taken up by the larger compile job. This makes for a very happy desktop system when upgrading (gentoo user here).
- sciurus 15y agoIf you don't have schedtool available on your distro, you can use 'chrt --batch 0' instead.
- cpeterso 15y agoLinus Torvalds' stance on "nice make": https://lwn.net/Articles/418739/ https://lwn.net/Articles/418739/ Seriously. Nobody _ever_ does "nice make", unless they are seriously repressed beta-males (eg MIS people who get shouted at when they do system maintenance unless they hide in dark corners and don't get discovered). It just doesn't happen. :)