-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gokey test suite takes hours on mips #28
Comments
Do mips builds run on real hardware or under some emulator? Go's goroutines are known not to be friendly with |
I just confirmed: The mips* buildds are bare metal. So you can exclude emulators from the equation. Even if the maps buildds are not that fast than amd64, they should not be five times or more slower than armel (which belongs to the slower architectures). |
Yes, agree. The issue we had with the emulators - golang "multitasking" implementation hanged there (making the builds either crash or MUCH slower). When we tried a workaround, like pinning the build process to a single CPU with The other thing to check is the status of entropy in the OS RNG. Golang uses I'm trying to set up a |
According to https://lists.debian.org/debian-wb-team/2019/07/msg00006.html, the build host has a decent amount of entropy. |
I've setup a Debian
So far I can see generating RSA keys with Go in general is unreasonably slow. A simple standalone Go program, which generates package main
import (
"crypto/rand"
"crypto/rsa"
"fmt"
)
func main() {
_, e := rsa.GenerateKey(rand.Reader, 4096)
fmt.Println(e)
} x64:
mipsel:
Even built-in Go RSA tests (which generate 1024 bit key according to the source code)
mipsel:
I also tried to cross-compile
Given that |
|
Can you open an golang upstream bug report to speed up mips? |
Created golang/go#33224 |
still an issue for go 1.18 |
The Debian package gokey 0.1.0-1 executes the test suite on build and takes normally a few minutes, but it takes hours on mips (running into a timeout for mipsel):
Source: https://buildd.debian.org/status/package.php?p=gokey
Can the test suite be made faster for mips?
The text was updated successfully, but these errors were encountered: