https://pulumi.com logo
#golang
Title
# golang
b

big-account-56668

10/28/2020, 10:35 AM
I'm experiencing compilation of
<http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute>
to be untenable.
Copy code
time GOGC=5 go build <http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute>
go build <http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute>: /usr/lib/go/pkg/tool/linux_amd64/compile: signal: killed
GOGC=5 go build <http://github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute|github.com/pulumi/pulumi-gcp/sdk/v3/go/gcp/compute>  1692.27s user 245.14s system 338% cpu 13:33.62 total
still getting killed. From
dmesg
Copy code
Out of memory: Killed process 543715 (compile) total-vm:7909668kB, anon-rss:7163404kB, file-rss:0kB, shmem-rss:304kB, UID:1000 pgtables:14172kB oom_score_adj:0
Are there any suggestions on how to address this other than tweaking
GOGC
as previously suggested in https://pulumi-community.slack.com/archives/CCWP5TJ5U/p1601400720014500?thread_ts=1601396803.013000&amp;cid=CCWP5TJ5U?
If it helps anyone https://golang.org/s/go13linker and https://golang.org/s/better-linker are good reads and holding out for https://tip.golang.org/doc/go1.16#linker may improve the status quo.
3 Views