Skip to content
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

x/tools: building tip requires more than 4GiB addressing space? #18039

Closed
mikioh opened this issue Nov 24, 2016 · 1 comment
Closed

x/tools: building tip requires more than 4GiB addressing space? #18039

mikioh opened this issue Nov 24, 2016 · 1 comment

Comments

@mikioh
Copy link
Contributor

mikioh commented Nov 24, 2016

When building golang.org/x/tools w/ go tip by using go get and go install, the rise in required memory and swap area sizes a bit tremendous (to a node doesn't have much resources). For example,

// On linux/amd64, 2GiB memory w/ 2GiB swap area

while :; do cat /proc/meminfo | grep -e ^Mem -e ^Swap; sleep 3; printf "\n"; done

// Building other repositories like golang.org/x/text

MemTotal:        2029400 kB
MemFree:          571976 kB
MemAvailable:    1534076 kB
SwapCached:          168 kB
SwapTotal:       2097148 kB
SwapFree:        2096168 kB

MemTotal:        2029400 kB
MemFree:          574228 kB
MemAvailable:    1537492 kB
SwapCached:          168 kB
SwapTotal:       2097148 kB
SwapFree:        2096168 kB

// Start building golang.org/x/tools

MemTotal:        2029400 kB
MemFree:          537288 kB
MemAvailable:    1508624 kB
SwapCached:          168 kB
SwapTotal:       2097148 kB
SwapFree:        2096168 kB

MemTotal:        2029400 kB
MemFree:          517740 kB
MemAvailable:    1497608 kB
SwapCached:          168 kB
SwapTotal:       2097148 kB
SwapFree:        2096168 kB

MemTotal:        2029400 kB
MemFree:          501680 kB
MemAvailable:    1497812 kB
SwapCached:          168 kB
SwapTotal:       2097148 kB
SwapFree:        2096168 kB

MemTotal:        2029400 kB
MemFree:          465808 kB
MemAvailable:    1482736 kB
SwapCached:          168 kB
SwapTotal:       2097148 kB
SwapFree:        2096168 kB

MemTotal:        2029400 kB
MemFree:           83228 kB
MemAvailable:      25604 kB
SwapCached:        20488 kB
SwapTotal:       2097148 kB
SwapFree:        2038740 kB

MemTotal:        2029400 kB
MemFree:           76612 kB
MemAvailable:      19920 kB
SwapCached:       124956 kB
SwapTotal:       2097148 kB
SwapFree:        1378308 kB

MemTotal:        2029400 kB
MemFree:           70112 kB
MemAvailable:      13884 kB
SwapCached:        79820 kB
SwapTotal:       2097148 kB
SwapFree:         750940 kB

MemTotal:        2029400 kB
MemFree:           54396 kB
MemAvailable:          0 kB
SwapCached:       120232 kB
SwapTotal:       2097148 kB
SwapFree:         288780 kB

MemTotal:        2029400 kB
MemFree:           53664 kB
MemAvailable:       1824 kB
SwapCached:        60372 kB
SwapTotal:       2097148 kB
SwapFree:          20012 kB

// Done

MemTotal:        2029400 kB
MemFree:         1788720 kB
MemAvailable:    1753224 kB
SwapCached:         2032 kB
SwapTotal:       2097148 kB
SwapFree:        1940992 kB

Just FYI, @alandonovan.

PS: I guess that the virtual memory management stuff on BSD variants is less persistent than Linux, so the build on a BSD node with the same resources perhaps could fail caused by out of swap space.

@quentinmit quentinmit added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Nov 24, 2016
@quentinmit quentinmit added this to the Unreleased milestone Nov 24, 2016
@mikioh mikioh removed the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Dec 1, 2016
@mikioh
Copy link
Contributor Author

mikioh commented Dec 1, 2016

Looks like this issue comes from #16394, and #18078 patched up. Closing.

@mikioh mikioh closed this as completed Dec 1, 2016
@golang golang locked and limited conversation to collaborators Dec 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants