Dmitry Vyukov
unread,Oct 31, 2020, 4:10:28 AM10/31/20Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Greg Steuck, syzbot, 'Dmitry Vyukov' via syzkaller-openbsd-bugs, Greg Steuck
Good question.
go tool itself limits the number of invocations of
compiler/linker/tests to GOMAXPROCS (NumCPU by default). But then we
have lots of parallel tests, which again run with GOMAXPROCS
parallelism. So overall it may oversubscribe.
I've also noticed that go test spawns some 'vet' processes that take
an insane amount of time on our auto-generated huge source files. It
caches the results, so locally it's frequently not so big problems,
but I guess on syz-ci it runs each time.
Maybe we can play with GOMAXPROCS (should control number of
compiler/linker/test) and go test -parallel flag (controls intra-test
parallelism).
Can you reproduce it on the machine?
I think it should be something like:
git clean -fd
make descriptions
go test -short ./...
Another point. Makefile adds some flags to every go invocation, but in
syz-ci we just just 'go test'. This should discard all build caches
(flags are different).
Maybe if we run 'make test' it will help after 'make host target'. But
I don't know how much. Also 'make test' currently runs with coverage
enabled (for CI), which we don't need and which can slowdown execution
on its own...
> To view this discussion on the web visit
https://groups.google.com/d/msgid/syzkaller-openbsd-bugs/CANMcDo8UAmw%2Bguk7Jez55HfxuLncAc0vVDUo_NYFkCpjwbHQ7Q%40mail.gmail.com.