env/openbsd-amd64: force tsc time source, double the build speed
Fixes golang/go#29223
Change-Id: I43d1fc1eb6455c063d3842c330cb7d57295d7482
Reviewed-on: https://go-review.googlesource.com/c/160319
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Andrew Bonventre <andybons@golang.org>
diff --git a/dashboard/builders.go b/dashboard/builders.go
index 7f60670..54475ed 100644
--- a/dashboard/builders.go
+++ b/dashboard/builders.go
@@ -148,7 +148,7 @@
SSHUsername: "gopher",
},
"host-openbsd-amd64-64": &HostConfig{
- VMImage: "openbsd-amd64-64-v2",
+ VMImage: "openbsd-amd64-64-190129a",
machineType: "n1-highcpu-4",
buildletURLTmpl: "https://storage.googleapis.com/$BUCKET/buildlet.openbsd-amd64-64",
goBootstrapURLTmpl: "https://storage.googleapis.com/$BUCKET/gobootstrap-openbsd-amd64-64.tar.gz",
diff --git a/env/openbsd-amd64/make.bash b/env/openbsd-amd64/make.bash
index c65ab5b..a87e639 100755
--- a/env/openbsd-amd64/make.bash
+++ b/env/openbsd-amd64/make.bash
@@ -93,6 +93,7 @@
EOF
cat >etc/sysctl.conf <<EOF
hw.smt=1
+kern.timecounter.hardware=tsc
EOF
chmod +x install.site
tar -zcvf site${RELNO}.tgz install.site etc/{installurl,rc.local,sysctl.conf}