NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/26072 (Request: an option to build.sh, to build kernels without running "config" and "make depend")
The following reply was made to PR toolchain/26072; it has been noted by GNATS.
From: Luke Mewburn <luke%mewburn.net@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: misc-bug-people%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost, lukem%netbsd.org@localhost, fredb%immanent.net@localhost
Subject: Re: toolchain/26072 (Request: an option to build.sh, to build
kernels without running "config" and "make depend")
Date: Sat, 20 May 2023 06:36:08 +1000
On 23-05-19 20:31, Luke Mewburn wrote:
| I did some testing on a modern system (AMD Ryzen 9 5950X 16-Core),
| comparing using build.sh (with the config and make depend passes)
| versus just building the kernel, both without any file changes
| as well as touching a single source file:
|
| time ./build.sh -j32 kernel=GENERIC
| 4.31s
|
| time nbmake-amd64 -C $SOMEDIR/sys/arch/amd64/compile/GENERIC
| 1.18s
Oops, I forgot to use -j 32 in the nbmake-amd64 cases.
I didn't mean that, because I wanted a fair comparison.
Didn't matter; takes the same time.
| touch ./sys/dev/usb/xhci.c
| time ./build.sh -j32 kernel=GENERIC
| 15.51s
|
| touch ./sys/dev/usb/xhci.c
| time nbmake-amd64 -C $SOMEDIR/sys/arch/amd64/compile/GENERIC
| 12.33s
With -j 32, nbmake isn't any quicker here either, recompiling a single file.
regards,
Luke.
Home |
Main Index |
Thread Index |
Old Index