From: Andrew Gerrand Date: Thu, 11 Oct 2012 03:21:19 +0000 (+1100) Subject: doc/faq: discuss virtual memory use by go processes X-Git-Tag: go1.1rc2~2152 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2100947d4a25dcf875be1941d0e3a409ea85051e;p=gostls13.git doc/faq: discuss virtual memory use by go processes Fixes #3948. R=golang-dev, r, dave, dsymonds CC=golang-dev https://golang.org/cl/6639064 --- diff --git a/doc/go_faq.html b/doc/go_faq.html index 1da4d5037a..65445d4220 100644 --- a/doc/go_faq.html +++ b/doc/go_faq.html @@ -1099,6 +1099,22 @@ analysis recognizes some cases when such variables will not live past the return from the function and can reside on the stack.

+

+Why does my Go process use so much virtual memory?

+ +

+The Go memory allocator reserves a large region of virtual memory as an arena +for allocations. This virtual memory is local to the specific Go process; the +reservation does not deprive other processes of memory. +

+ +

+To find the amount of actual memory allocated to a Go process, use the Unix +top command and consult the RES (Linux) or +RSIZE (Mac OS X) columns. + +

+

Concurrency