From: Andrew Morton <akpm@linux-foundation.org>
To: Norbert Manthey <nmanthey@amazon.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
David Woodhouse <dwmw@amazon.co.uk>,
<linux-kernel@vger.kernel.org>
Subject: Re: [build-check] scripts: add check_build script
Date: Tue, 3 Jul 2018 15:49:14 -0700 [thread overview]
Message-ID: <20180703154914.5d3e8f28e1d87e48180073e3@linux-foundation.org> (raw)
In-Reply-To: <1530623539-650-1-git-send-email-nmanthey@amazon.de>
On Tue, 3 Jul 2018 15:12:10 +0200 Norbert Manthey <nmanthey@amazon.de> wrote:
> This script performs build testing, by building several configurations
> several times. The script is introduced to improve the consistency of
> testing changes in the kernel configuration.
>
> This version build randconfig 10 times, as well as allyesconfig,
> allnoconfig and allmodconfig. Depending on the used machine and system
> setup, the script might take a while to finish.
>
> The script logs all the used config files, as well as the output of the
> build commands to a log directory "build_check_logs", so that this data
> can be retrieved after running the script.
I'm unable to even guess how many people will find this useful.
> +build ()
> +{
> + local -r LOG_FILE="$1"
> + local -i STATUS=0
> +
> + make clean -j $(nproc) &> /dev/null
> + make -j $(nproc) &>> "$LOG_FILE" || STATUS=$?
> +
> + echo "build status: $STATUS" >> "$LOG_FILE"
> + echo "[$SECONDS] build status: $STATUS"
> + return "$STATUS"
> +}
The script never sets nproc. So I guess this is a bare `make -j'.
When I type that on my (quite beefy) workstation I get eleventy xillion
processes and the machine locks up. Can't even wiggle the mouse.
After a 20 minute nap (thanks!) it was still comatose so I hit the big
button (who writes this junk??).
So you might want to take an educated guess from /proc/cpuinfo here.
next prev parent reply other threads:[~2018-07-03 22:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1530186789-28808-1-git-send-email-nmanthey@amazon.de>
2018-06-28 11:53 ` Norbert Manthey
2018-07-03 13:12 ` Norbert Manthey
2018-07-03 22:49 ` Andrew Morton [this message]
2018-07-03 23:27 ` Randy Dunlap
2018-07-04 0:21 ` Stephen Rothwell
2018-07-04 4:07 ` Andrew Morton
2018-07-04 11:28 ` [build-check v2] " Norbert Manthey
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=20180703154914.5d3e8f28e1d87e48180073e3@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=dwmw@amazon.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=nmanthey@amazon.de \
--cc=torvalds@linux-foundation.org \
/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
all inboxes | Powered by JetHome®