Re: [PATCH] rteval: Use -j with make mrproper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Wed, 24 Apr 2024, Crystal Wood wrote:

> This reduces the startup overhead somewhat.
> 
> Signed-off-by: Crystal Wood <crwood@xxxxxxxxxx>
> ---
> On my 12-cpu laptop the gain is about half of what
> https://lore.kernel.org/linux-rt-users/20240304211655.20174-4-crwood@xxxxxxxxxx/
> 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@xxxxxxxxxx>





[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux