-
Notifications
You must be signed in to change notification settings - Fork 18k
runtime: 1.3 garbage collector not releasing server memory back to system from finished goroutines #8287
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
Labels
Milestone
Comments
Dmitry commented on golang-nuts that it is due goroutine stack, not released to the system ever. Here is a minimal example: http://play.golang.org/p/ircvbhPy3u 100k goroutines created doing nothing and the dying. top shows 450 MB of RES used indefinitely. ~/tmp$ go version go version devel +41a383d40558 Tue Jun 24 20:37:28 2014 -0700 linux/amd64 ~/tmp$ GODEBUG=gctrace=1 ./tmp gc1(1): 8+1+160+1 us, 0 -> 0 MB, 18 (19-1) objects, 0/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields scvg0: inuse: 30, idle: 0, sys: 31, released: 0, consumed: 31 (MB) gc2(1): 5+2+33063+0 us, 0 -> 29 MB, 103618 (103649-31) objects, 13/0/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields scvg1: GC forced scvg1: inuse: 30, idle: 0, sys: 31, released: 0, consumed: 31 (MB) scvg2: inuse: 30, idle: 0, sys: 31, released: 0, consumed: 31 (MB) gc3(1): 6+15+31651+0 us, 29 -> 29 MB, 103614 (103649-35) objects, 3649/3634/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields scvg3: GC forced scvg3: inuse: 30, idle: 0, sys: 31, released: 0, consumed: 31 (MB) scvg4: inuse: 30, idle: 0, sys: 31, released: 0, consumed: 31 (MB) gc4(1): 8+3+25012+0 us, 29 -> 29 MB, 103612 (103649-37) objects, 3649/3632/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields scvg5: GC forced scvg5: 0 MB released scvg5: inuse: 30, idle: 0, sys: 31, released: 0, consumed: 30 (MB) scvg6: 0 MB released scvg6: inuse: 30, idle: 0, sys: 31, released: 0, consumed: 30 (MB) gc5(1): 5+2+31097+0 us, 29 -> 29 MB, 103612 (103649-37) objects, 3649/3632/0 sweeps, 0(0) handoff, 0(0) steal, 0/0/0 yields scvg7: GC forced scvg7: inuse: 30, idle: 0, sys: 31, released: 0, consumed: 30 (MB) |
Labels changed: added release-go1.4, repo-main. Owner changed to @dvyukov. Status changed to Accepted. |
CL https://golang.org/cl/145010043 mentions this issue. |
This issue was closed by revision 92eb1e1. Status changed to Fixed. |
Hi, revision 6c2dfbd8577f, makes a difference, but after running http://play.golang.org/p/ircvbhPy3u ,I still get 252M RES ( FreeBSD and MacOS ) Should this be reopened ? |
I'm also seeing funny memory things. I've open this issue: https://golang.org/issue/8832 |
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jun 25, 2018
We could probably free the G structures as well, but for the allg list. Leaving that for another day. Fixes golang#8287 LGTM=rsc R=golang-codereviews, dvyukov, khr, rsc CC=golang-codereviews https://golang.org/cl/145010043
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jul 9, 2018
We could probably free the G structures as well, but for the allg list. Leaving that for another day. Fixes golang#8287 LGTM=rsc R=golang-codereviews, dvyukov, khr, rsc CC=golang-codereviews https://golang.org/cl/145010043
wheatman
pushed a commit
to wheatman/go-akaros
that referenced
this issue
Jul 30, 2018
We could probably free the G structures as well, but for the allg list. Leaving that for another day. Fixes golang#8287 LGTM=rsc R=golang-codereviews, dvyukov, khr, rsc CC=golang-codereviews https://golang.org/cl/145010043
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by matusis:
The text was updated successfully, but these errors were encountered: