I do have MAKEOPTS="-j1" NINJAFLAGS="-j1" in make.conf. But emerging that package at my tinderbox gives many compile processes: make,5625 -j1 GOPATH=/var/tmp/portage/dev-db/cockroach-1.0.3/work/cockroach-v1.0.3 build │ └─make,5630 -C src/github.com/cockroachdb/cockroach build │ └─go,17551 build -i -o cockroach -v -tags make x86_64_pc_linux_gnu -ldflags -X github.com/cockroachdb/cockroach/pkg/build.typ=development -X "github.com/cockroachdb/cockroach/pkg/build.tag=v1.0.3" -X "github.com/cockroachdb/cockroach/pkg/build.utcTime=2017/08/11 07:57:15" -X "github.com/cockroachdb/cockroach/pkg/build.rev=b692a7cc7acc57022d1441034b93b85d860b7e86" . │ ├─{go},17645 │ ├─{go},17646 │ ├─{go},17647 │ ├─{go},17648 │ ├─{go},17652 │ ├─{go},17745 │ ├─{go},17747 │ ├─{go},17780 ... ├─{go},20673 │ ├─{go},20695 │ ├─compile,21446 -o /var/
Is this still an issue with 1.1.2? Thanks, William
(In reply to William Hubbs from comment #1) yes, rather a problem with I'd say. I do have j="1" MAKEOPTS="-j$j" NINJAFLAGS="-j$j" EGO_BUILD_FLAGS="-p $j" GOMAXPROCS="$j" RUSTFLAGS="-C codegen-units=$j" which works for nearly all except for Go. And the queue length of my tinderbox this night shows exactly 3 sharp spikes when that package was emerged at 3 images.
Go 1.9 has its own parallel compilation. See the release notes at https://golang.org/doc/go1.9 Try setting the following in the environment: export GO19CONCURRENTCOMPILATION=0
(In reply to William Hubbs from comment #3) I do have MAKEOPTS="-j1" NINJAFLAGS="-j1" EGO_BUILD_FLAGS="-p 1" GOMAXPROCS="1" GO19CONCURRENTCOMPILATION=0 RUSTFLAGS="-C codegen-units=1" RUST_TEST_THREADS=1 RUST_TEST_TASKS=1 for all tinderbox images set - but cockroach doesn't respect i
Created attachment 531206 [details] 24.20180513-055047 pstree
FWIW -j1 is set as seen here - but the calling make seems to unset it: │ └─make,11753 -j1 build │ └─make,11760 -C src/github.com/cockroachdb/cockroach build │ └─make,8158 --no-print-directory -C /var/tmp/portage/dev-db/cockroach-2.0.1/work/cockroach-v2.0.1/native/x86_64-pc-linu x-gnu/rocksdb rocksdb │ └─make,8199 -f CMakeFiles/Makefile2 rocksdb │ └─make,8232 -f CMakeFiles/Makefile2 CMakeFiles/rocksdb.dir/all │ └─make,16229 -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/build
still true with 2.0.1: │ └─make -f CMakeFiles/rocksdb.dir/build.make CMakeFiles/rocksdb.dir/build │ ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ │ └─cc1plus -quiet -I... │ ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ │ └─cc1plus -quiet -I... │ ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ │ └─cc1plus -quiet -I... │ ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ │ └─cc1plus -quiet -I... │ ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ │ └─cc1plus -quiet -I... │ ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ │ └─cc1plus -quiet -I... │ ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ │ └─cc1plus -quiet -I... │ ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ │ └─cc1plus -quiet -I... │ ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ │ └─cc1plus -quiet -I... │ ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ │ └─cc1plus -quiet -I... │ ├─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ │ └─cc1plus -quiet -I... │ └─c++ -DHAVE_SSE42 -DJEMALLOC_NO_DEMANGLE -DOS_LINUX -DROCKSDB_FALLOCATE_PRESENT ... │ └─cc1plus -quiet -I... :-/