Skip to content

Commit

Permalink
Use nproc instead of /proc/cpuinfo to find number of processors for c…
Browse files Browse the repository at this point in the history
…oncurrency (#5035)

* increase timeout factor to 16

* increase timeout to 40

* custom concurrency

* restore earlier changes, use nproc to find number of processors

* restore JTREG_CONC
  • Loading branch information
Haroon-Khel authored Feb 2, 2024
1 parent feaf757 commit 35285cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openjdk/openjdk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ OS:=$(shell uname -s)
ARCH:=$(shell uname -m)

ifeq ($(OS),Linux)
NPROCS:=$(shell grep -c ^processor /proc/cpuinfo)
NPROCS:=$(shell nproc)
MEMORY_SIZE:=$(shell KMEMMB=`awk '/^MemTotal:/{print int($$2/1024)}' /proc/meminfo`; if [ -r /sys/fs/cgroup/memory/memory.limit_in_bytes ]; then CGMEM=`cat /sys/fs/cgroup/memory/memory.limit_in_bytes`; else CGMEM=`expr $${KMEMMB} \* 1024`; fi; CGMEMMB=`expr $${CGMEM} / 1024`; if [ "$${KMEMMB}" -lt "$${CGMEMMB}" ]; then echo "$${KMEMMB}"; else echo "$${CGMEMMB}"; fi)
endif
ifeq ($(OS),Darwin)
Expand Down

0 comments on commit 35285cc

Please sign in to comment.