zero build slow
Thomas Stüfe
thomas.stuefe at gmail.com
Wed Nov 22 16:26:57 UTC 2017
Hi guys,
thanks for your help.
I think the reason is the combination of zero+slowdebug and the fact that
we run our own binaries during build (at least this is true for jmod).
I am building on Ubuntu 16.4, "normal" machine (i7, 16G ram, ssd). Normally
my builds take ~5-10 minutes.
My configure line in this case:
CONFIGURE_COMMAND_LINE:=--with-boot-jdk=/shared/projects/openjdk/jdks/openjdk9
--with-debug-level=slowdebug --with-jvm-variants=zero
--with-native-debug-symbols=internal
Wanted slowdebug to test something. Boot jdk is downloaded from
adoptopenjdk (I was lazy).
When building (make images), top is dominated by jmod, which is taken from
the output directory, not the bootstrap vm:
19710 thomas 30 10 1176348 63480 15800 S 100,0 0,4 2:02.64
/shared/projects/openjdk/jdk-hs/output-zero/jdk/bin/jmod -J-XX:+UseSerialGC
-J-Xms32M -J-Xmx512M -J-XX:TieredStopAtLevel=1 create --module-version
10-internal --target-platform linux-amd64 --module-path /sha+
Note that my normal (non-zero) slowdebug builds are done in ~5 minutes, but
this thing here is now running for 30 minutes and not done yet. Hence my
assumption, that we need to run jmod from the build directory and that a
zero jmod in slowdebug mode is terrible.
It probably makes sense, when I run jmod interpreted and the C++ code is
not optimized... Hence my original question, whether I can force the build
to use a different jmod. This would also help in cases when I am developing
and my hotspot is crashy - currently, the build does not go thru in this
case.
I will retry with fastdebug to see how much faster this is.
Thanks, Thomas
On Wed, Nov 22, 2017 at 4:40 PM, John Paul Adrian Glaubitz <
glaubitz at physik.fu-berlin.de> wrote:
> Hi Thomas!
>
> On 11/22/2017 04:29 PM, Thomas Stüfe wrote:
>
>> when building zero on Linux x64, I notice that the build is extremely
>> slow,
>> due to what I assume is jmod ran from the built image, which would only
>> run interpreted? Is my guess true, and if yes, is it possible to use a
>> different jmod? I assume it is not possible to use jmod from the build
>> jdk?
>>
>
> Some questions:
>
> - What hardware are you building on?
> - What configure options are you using for building?
> - Which distribution is this on?
>
> For reference, my setup:
>
> - Intel(R) Xeon(R) CPU E5-2620 v4 @ 2.10GHz, 16 GB RAM
> - Debian unstable
> - sh ./configure --with-jvm-variants=zero --with-boot-jdk=/usr/lib/jvm/java-9-openjdk-amd64/
> \
> --disable-precompiled-headers --disable-warnings-as-errors && make
> JOBS=32 MAKE_VERBOSE=y \
> QUIETLY= LOG=debug CONF=linux-x86_64-normal-zero-release
>
> This builds Zero within 5 minutes, building the Server variant takes about
> the same time. On an AMD Threadripper 1950X, the build takes only about
> 2 minutes for both variants.
>
> Adrian
>
> --
> .''`. John Paul Adrian Glaubitz
> : :' : Debian Developer - glaubitz at debian.org
> `. `' Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
> `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
>
More information about the build-dev
mailing list