[pkg-go] Limiting number of "link" instances -- how?

Michael Hudson-Doyle michael.hudson at canonical.com
Thu Nov 12 18:46:02 UTC 2015


I don't think you can currently -- you need to pass -p 1 to the go
install command, but dh-golang doesn't let you do that currently.
Maybe it should!

Cheers,
mwh

On 13 November 2015 at 05:15, Dmitry Smirnov <onlyjob at debian.org> wrote:
> Hi team,
>
> My system cripples when I build heavy Golang application that produces
> multiple executables.
>
> The problem is that build process starts multiple instances (as many as there
> are CPUs on system) of "/usr/lib/go/pkg/tool/linux_amd64/link" in parallel
> and that devours system resources.
>
> I've tried
>
>         export GOMAXPROCS=1
>         dh --max-parallel=1
>         DEB_BUILD_OPTIONS="parallel=1"
>         debuild -j1
>
> but nothing helped...
>
> How can I restrict number of Go link processes?
>
> Thanks.
>
> --
> Best wishes,
>  Dmitry Smirnov.
>
> ---
>
> Good luck happens when preparedness meets opportunity.
>
> _______________________________________________
> Pkg-go-maintainers mailing list
> Pkg-go-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-go-maintainers



More information about the Pkg-go-maintainers mailing list