jaxvanyang / jenkins-bench Goto Github PK
View Code? Open in Web Editor NEWSelf-use benchmarks for Jenkins.
License: The Unlicense
Self-use benchmarks for Jenkins.
License: The Unlicense
ld
require more memory on riscv64 machine.
Log of dmesg
:
[164797.366512] Channel reader invoked oom-killer: gfp_mask=0x140cca(GFP_HIGHUSER_MOVABLE|__GFP_COMP), order=0, oom_score_adj=0
[164797.369706] CPU: 0 PID: 330 Comm: Channel reader Not tainted 6.1.0-9-riscv64 #1 Debian 6.1.27-1
[164797.369914] Hardware name: riscv-virtio,qemu (DT)
[164797.370047] Call Trace:
[164797.370308] [<ffffffff80005f4e>] dump_backtrace+0x28/0x30
[164797.370784] [<ffffffff8078d982>] show_stack+0x38/0x44
[164797.370862] [<ffffffff80797afa>] dump_stack_lvl+0x44/0x5c
[164797.370934] [<ffffffff80797b2a>] dump_stack+0x18/0x20
[164797.371002] [<ffffffff80790186>] dump_header+0x48/0x1ce
[164797.371070] [<ffffffff801a8b48>] oom_kill_process+0x25a/0x25c
[164797.371149] [<ffffffff801a9160>] out_of_memory+0xd4/0x4f4
[164797.371219] [<ffffffff80209a2a>] __alloc_pages+0x732/0xda2
[164797.371298] [<ffffffff80228c0a>] alloc_pages+0xbc/0x17c
[164797.371372] [<ffffffff80228cee>] folio_alloc+0x24/0x52
[164797.371443] [<ffffffff801a057c>] filemap_alloc_folio+0x13c/0x146
[164797.371518] [<ffffffff801a3946>] __filemap_get_folio+0x11e/0x320
[164797.371593] [<ffffffff801a3c3c>] filemap_fault+0xf4/0x83a
[164797.371662] [<ffffffff801e3ebe>] __do_fault+0x32/0xcc
[164797.371730] [<ffffffff801e98b8>] __handle_mm_fault+0xa50/0x126a
[164797.371935] [<ffffffff801ea1a2>] handle_mm_fault+0xd0/0x1ce
[164797.372019] [<ffffffff8000ac12>] do_page_fault+0x17a/0x41c
[164797.372095] [<ffffffff80003c9a>] ret_from_exception+0x0/0x16
[164797.372473] Mem-Info:
[164797.372702] active_anon:72 inactive_anon:208495 isolated_anon:0
active_file:547 inactive_file:18 isolated_file:0
unevictable:0 dirty:0 writeback:0
slab_reclaimable:16401 slab_unreclaimable:4379
mapped:19 shmem:79 pagetables:696
sec_pagetables:0 bounce:0
kernel_misc_reclaimable:0
free:6163 free_pcp:31 free_cma:0
[164797.373132] Node 0 active_anon:288kB inactive_anon:833980kB active_file:1952kB inactive_file:276kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:76kB dirty:0kB writeback:0kB shmem:316kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 47104kB writeback_tmp:0kB kernel_stack:1824kB pagetables:2784kB sec_pagetables:0kB all_unreclaimable? no
[164797.373553] Node 0 DMA32 free:24652kB boost:0kB min:22528kB low:28160kB high:33792kB reserved_highatomic:0KB active_anon:288kB inactive_anon:833980kB active_file:1296kB inactive_file:816kB unevictable:0kB writepending:0kB present:1046528kB managed:977476kB mlocked:0kB bounce:0kB free_pcp:128kB local_pcp:0kB free_cma:0kB
[164797.374088] lowmem_reserve[]: 0 0 0
[164797.374313] Node 0 DMA32: 488*4kB (UME) 716*8kB (UME) 454*16kB (UME) 177*32kB (UME) 60*64kB (UME) 3*128kB (M) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 24832kB
[164797.374799] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[164797.374912] 671 total pagecache pages
[164797.374969] 0 pages in swap cache
[164797.375015] Free swap = 0kB
[164797.375083] Total swap = 0kB
[164797.375180] 261632 pages RAM
[164797.375221] 0 pages HighMem/MovableOnly
[164797.375268] 17263 pages reserved
[164797.375608] Tasks state (memory values in pages):
[164797.375669] [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
[164797.375867] [ 185] 0 185 7039 754 81920 0 -250 systemd-journal
[164797.376014] [ 201] 0 201 5375 291 65536 0 -1000 systemd-udevd
[164797.376097] [ 244] 0 244 715 59 45056 0 0 cron
[164797.376173] [ 271] 0 271 523 17 40960 0 0 agetty
[164797.376249] [ 272] 0 272 523 17 45056 0 0 agetty
[164797.376324] [ 273] 0 273 523 17 40960 0 0 agetty
[164797.376404] [ 274] 0 274 523 17 45056 0 0 agetty
[164797.376479] [ 275] 0 275 523 17 40960 0 0 agetty
[164797.376553] [ 276] 0 276 523 17 40960 0 0 agetty
[164797.376633] [ 278] 0 278 2767 316 61440 0 -1000 sshd
[164797.376712] [ 287] 0 287 2867 356 65536 0 0 sshd
[164797.376786] [ 293] 1000 293 3083 557 65536 0 0 sshd
[164797.376939] [ 318] 1000 318 626947 9869 323584 0 0 java
[164797.377026] [ 3291] 1000 3291 438 23 40960 0 0 sh
[164797.377102] [ 3292] 1000 3292 438 25 40960 0 0 sh
[164797.377177] [ 3293] 1000 3293 438 17 36864 0 0 sh
[164797.377252] [ 3295] 1000 3295 817 391 49152 0 0 make
[164797.377337] [ 91014] 0 91014 534 17 45056 0 0 agetty
[164797.377812] [ 327658] 1000 327658 672 238 40960 0 0 make
[164797.377897] [ 327659] 1000 327659 440 20 40960 0 0 sh
[164797.377973] [ 327660] 1000 327660 239487 194866 1658880 0 0 ld
[164797.378049] [ 327677] 1000 327677 404 14 32768 0 0 touch
[164797.378157] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/system.slice/ssh.service,task=ld,pid=327660,uid=1000
[164797.379863] Out of memory: Killed process 327660 (ld) total-vm:957948kB, anon-rss:779464kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:1620kB oom_score_adj:0
Log:
Optimizing the exploded image
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0xffffffff785404f8, pid=89906, tid=89909
#
# JRE version: (17.0.8) (build )
# Java VM: OpenJDK 64-Bit Server VM (17.0.8-internal+0-adhoc.jenkins.riscv-port-jdk17u-riscv-port, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-riscv64)
# Problematic frame:
# j java.lang.System.registerNatives()V+0 java.base
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /home/jenkins/agent/workspace/jenkins-bench-openjdk-17/riscv-port-jdk17u-riscv-port/make/hs_err_pid89906.log
#
#
/usr/bin/bash: line 1: 89906 Aborted /home/jenkins/agent/workspace/jenkins-bench-openjdk-17/riscv-port-jdk17u-riscv-port/build/linux-riscv64-server-release/jdk/bin/java -Xms64M -Xmx512M -cp /home/jenkins/agent/workspace/jenkins-bench-openjdk-17/riscv-port-jdk17u-riscv-port/build/linux-riscv64-server-release/buildtools/tools_jigsaw_classes --add-exports java.base/jdk.internal.module=ALL-UNNAMED build.tools.jigsaw.AddPackagesAttribute /home/jenkins/agent/workspace/jenkins-bench-openjdk-17/riscv-port-jdk17u-riscv-port/build/linux-riscv64-server-release/jdk > >(/usr/bin/tee -a /home/jenkins/agent/workspace/jenkins-bench-openjdk-17/riscv-port-jdk17u-riscv-port/build/linux-riscv64-server-release/jdk/_optimize_image_exec.log) 2> >(/usr/bin/tee -a /home/jenkins/agent/workspace/jenkins-bench-openjdk-17/riscv-port-jdk17u-riscv-port/build/linux-riscv64-server-release/jdk/_optimize_image_exec.log 1>&2)
gmake[3]: *** [ExplodedImageOptimize.gmk:41: /home/jenkins/agent/workspace/jenkins-bench-openjdk-17/riscv-port-jdk17u-riscv-port/build/linux-riscv64-server-release/jdk/_optimize_image_exec.marker] Error 134
gmake[2]: *** [make/Main.gmk:437: exploded-image-optimize] Error 2
ERROR: Build failed for target 'images' in configuration 'linux-riscv64-server-release' (exit code 2)
Stopping sjavac server
Workaround: set core file size to ulimited:
ulimit -c unlimited
Build VM has only 1GB memory, but it passed on amd64 and arm64v8 VM with same memory.
Build command line:
/usr/bin/g++ -Wl,-z,defs -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-O1 -Wl,--hash-style=gnu -static-libstdc++ -static-libgcc -shared -Wl,-version-script=/home/jenkins/agent/workspace/jenkins-bench-openjdk-17/riscv-port-jdk17u-riscv-port/build/linux-riscv64-server-release/hotspot/variant-server/libjvm/mapfile -Wl,-soname=libjvm.so -o /home/jenkins/agent/workspace/jenkins-bench-openjdk-17/riscv-port-jdk17u-riscv-port/build/linux-riscv64-server-release/support/modules_libs/java.base/server/libjvm.so @/home/jenkins/agent/workspace/jenkins-bench-openjdk-17/riscv-port-jdk17u-riscv-port/build/linux-riscv64-server-release/hotspot/variant-server/libjvm/objs/_BUILD_LIBJVM_objectfilenames.txt -lm -ldl -lpthread -lrt -latomic
Build log:
collect2: fatal error: ld terminated with signal 9 [Killed]
compilation terminated.
Kernel log:
[ 371.343895] Out of memory: Killed process 324 (ld) total-vm:1871440kB, anon-r
ss:1866100kB, file-rss:0kB, shmem-rss:0kB, UID:1000 pgtables:3704kB oom_score_ad
j:0
v10.1.8
): Apache Tomcat® - Apache Tomcat 10 Software DownloadsNeed patch from openjdk/riscv-port: https://openjdk.org/projects/riscv-port.
Logs:
Creating hotspot/variant-server/tools/adlc/adlc from 13 file(s)
/home/jenkins/agent/workspace/jenkins-bench-openjdk-18/jdk-jdk-18-ga/build/linux-riscv64-server-release/hotspot/variant-server/support/adlc/all-ad-src.ad(0) Semantic Error: :File read error, no input read
gmake[3]: *** [gensrc/GensrcAdlc.gmk:183: /home/jenkins/agent/workspace/jenkins-bench-openjdk-18/jdk-jdk-18-ga/build/linux-riscv64-server-release/hotspot/variant-server/support/adlc/_adlc_run_exec.marker] Error 1
gmake[2]: *** [make/Main.gmk:245: hotspot-server-gensrc] Error 2
ERROR: Build failed for target 'images' in configuration 'linux-riscv64-server-release' (exit code 2)
=== Output from failing command(s) repeated here ===
* For target hotspot_variant-server_support_adlc__adlc_run_exec:
/home/jenkins/agent/workspace/jenkins-bench-openjdk-18/jdk-jdk-18-ga/build/linux-riscv64-server-release/hotspot/variant-server/support/adlc/all-ad-src.ad(0) Semantic Error: :File read error, no input read
* All command lines available in /home/jenkins/agent/workspace/jenkins-bench-openjdk-18/jdk-jdk-18-ga/build/linux-riscv64-server-release/make-support/failure-logs.
=== End of repeated output ===
No indication of failed target found.
Hint: Try searching the build log for '] Error'.
Hint: See doc/building.html#troubleshooting for assistance.
make[1]: *** [/home/jenkins/agent/workspace/jenkins-bench-openjdk-18/jdk-jdk-18-ga/make/Init.gmk:315: main] Error 2
make: *** [/home/jenkins/agent/workspace/jenkins-bench-openjdk-18/jdk-jdk-18-ga/make/Init.gmk:186: images] Error 2
script returned exit code 2
openjdk-17
.References:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.