We wrap this in
ionice -cBest-Effort -n7
This is an attempt to stop resize2fs from starving builds of IO
bandwidth. We have been seeing that some IO-intensive build steps
(notably, configure) can take unreasonable amounts of time and we
suspect resize2fs as the culprit.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
if (!$background) {
target_cmd_root($ho, $cmd, $timeout);
} else {
- target_cmd_root($ho, "$cmd >>resizefs.log 2>&1 </dev/null &", 30);
+ target_cmd_root($ho,
+ "ionice -cBest-Effort -n7 ".
+ "$cmd >>resizefs.log 2>&1 </dev/null &",
+ 30);
}
}