Linux-rt-users archive mirror
 help / color / mirror / Atom feed
From: Crystal Wood <crwood@redhat.com>
To: John Kacur <jkacur@redhat.com>, Clark Williams <williams@redhat.com>
Cc: linux-rt-users@vger.kernel.org, Crystal Wood <crwood@redhat.com>
Subject: [PATCH] rteval: Use -j with make mrproper
Date: Wed, 24 Apr 2024 12:45:26 -0500	[thread overview]
Message-ID: <20240424174526.190509-1-crwood@redhat.com> (raw)

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
-- 
2.44.0


             reply	other threads:[~2024-04-24 17:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-24 17:45 Crystal Wood [this message]
2024-04-26 13:32 ` [PATCH] rteval: Use -j with make mrproper John Kacur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240424174526.190509-1-crwood@redhat.com \
    --to=crwood@redhat.com \
    --cc=jkacur@redhat.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=williams@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).