]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
ts-xen-build-prep: Run the backgrounded resize2fs with ionice
authorIan Jackson <ian.jackson@eu.citrix.com>
Wed, 4 Jun 2014 11:24:06 +0000 (12:24 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Wed, 4 Jun 2014 11:26:59 +0000 (12:26 +0100)
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>
ts-xen-build-prep

index 0e68cd30c2013a82aadaefae79922b1f11511a13..05a7857d55c25e98addd6bf6931eb584a0407dce 100755 (executable)
@@ -159,7 +159,10 @@ sub lvextend1 ($$$) {
     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);
     }
 }