From 3484c97fbf35c0fb7dcdd72d032ee95458be479a Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 24 Apr 2024 13:02:19 -0400 Subject: [PATCH] Use ionice for better host responsiveness --- openwrtbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openwrtbuilder b/openwrtbuilder index b77d7cf..15804ac 100755 --- a/openwrtbuilder +++ b/openwrtbuilder @@ -676,7 +676,7 @@ fromSource() { execute make "${make_opts[@]}" "-j1" defconfig download clean # Make image - if ! execute make "${make_opts[@]}" "-j$(($(nproc)+1))" world; then + if ! execute ionice -c 3 chrt --idle 0 nice -n19 make "${make_opts[@]}" "-j$(($(nproc)+1))" world; then echo "Error: make failed, retrying using slow mode" if ! execute make V=s -j1 dirclean world; then echo "Error: slow make failed"