diff mbox series

rteval: Use -j with make mrproper

Message ID 20240424174526.190509-1-crwood@redhat.com
State New
Headers show
Series rteval: Use -j with make mrproper | expand

Commit Message

Crystal Wood April 24, 2024, 5:45 p.m. UTC
This reduces the startup overhead somewhat.

Signed-off-by: Crystal Wood <crwood@redhat.com>
---
On my 12-cpu laptop the gain is about half of what
https://lore.kernel.org/linux-rt-users/20240304211655.20174-4-crwood@redhat.com/
does, but *shrug*
---
 rteval/modules/loads/kcompile.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

John Kacur April 26, 2024, 1:32 p.m. UTC | #1
On Wed, 24 Apr 2024, Crystal Wood wrote:

> This reduces the startup overhead somewhat.
> 
> Signed-off-by: Crystal Wood <crwood@redhat.com>
> ---
> On my 12-cpu laptop the gain is about half of what
> https://lore.kernel.org/linux-rt-users/20240304211655.20174-4-crwood@redhat.com/
> does, but *shrug*
> ---
>  rteval/modules/loads/kcompile.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/rteval/modules/loads/kcompile.py b/rteval/modules/loads/kcompile.py
> index de1539986723..f7a9c0084805 100644
> --- a/rteval/modules/loads/kcompile.py
> +++ b/rteval/modules/loads/kcompile.py
> @@ -248,7 +248,7 @@ class Kcompile(CommandLineLoad):
>  
>          # clean up any damage from previous runs
>          try:
> -            cmd = ["make", "-C", self.mydir, "mrproper"]
> +            cmd = ["make", "-C", self.mydir, "-j", str(os.cpu_count()), "mrproper"]
>              ret = subprocess.call(cmd, stdin=null, stdout=out, stderr=err)
>              if ret:
>                  # if the above make failed, remove and reinstall the source tree
> -- 

Signed-off-by: John Kacur <jkacur@redhat.com>
diff mbox series

Patch

diff --git a/rteval/modules/loads/kcompile.py b/rteval/modules/loads/kcompile.py
index de1539986723..f7a9c0084805 100644
--- a/rteval/modules/loads/kcompile.py
+++ b/rteval/modules/loads/kcompile.py
@@ -248,7 +248,7 @@  class Kcompile(CommandLineLoad):
 
         # clean up any damage from previous runs
         try:
-            cmd = ["make", "-C", self.mydir, "mrproper"]
+            cmd = ["make", "-C", self.mydir, "-j", str(os.cpu_count()), "mrproper"]
             ret = subprocess.call(cmd, stdin=null, stdout=out, stderr=err)
             if ret:
                 # if the above make failed, remove and reinstall the source tree