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

runtime: scavenger stats are broken #8544

Closed
dvyukov opened this issue Aug 18, 2014 · 4 comments
Closed

runtime: scavenger stats are broken #8544

dvyukov opened this issue Aug 18, 2014 · 4 comments
Milestone

Comments

@dvyukov
Copy link
Member

dvyukov commented Aug 18, 2014

go version devel +b86ee06ef235 Mon Aug 18 16:52:31 2014 +0400 linux/amd64

Run the following program with GODEBUG=gctrace=1

package main
import "time"
func main() {
    for {
        time.Sleep(time.Second)
    }
}

gc1(1): 3+1+139+0 us, 0 -> 0 MB, 13 (13-0) objects, 0/0/0 sweeps, 0(0) handoff, 0(0)
steal, 0/0/0 yields
scvg0: inuse: 17592186044400, idle: 15, sys: 1, released: 0, consumed: 1 (MB)
gc2(1): 3+1+178+0 us, 0 -> 0 MB, 41 (41-0) objects, 11/0/0 sweeps, 0(0) handoff, 0(0)
steal, 0/0/0 yields
scvg1: GC forced
scvg1: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
scvg2: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
gc3(1): 2+0+135+0 us, 0 -> 0 MB, 33 (41-8) objects, 19/12/0 sweeps, 0(0) handoff,
0(0) steal, 0/0/0 yields
scvg3: GC forced
scvg3: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 1 (MB)
scvg4: 0 MB released
scvg4: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)
gc4(1): 2+0+135+0 us, 0 -> 0 MB, 33 (41-8) objects, 19/10/0 sweeps, 0(0) handoff,
0(0) steal, 0/0/0 yields
scvg5: GC forced
scvg5: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)
scvg6: 0 MB released
scvg6: inuse: 17592186044400, idle: 16, sys: 1, released: 0, consumed: 0 (MB)

inuse heap numbers look wrong.
@gopherbot
Copy link
Contributor

Comment 1:

CL https://golang.org/cl/130200044 mentions this issue.

@cookieo9
Copy link
Contributor

Comment 2:

This is likely a duplicate of https://golang.org/issue/8430

@dvyukov
Copy link
Member Author

dvyukov commented Aug 18, 2014

Comment 3:

Updated description. Thanks

@dvyukov
Copy link
Member Author

dvyukov commented Aug 19, 2014

Comment 4:

This issue was closed by revision 30ef2c7.

Status changed to Fixed.

@rsc rsc added this to the Go1.4 milestone Apr 14, 2015
@rsc rsc removed the release-go1.4 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jun 25, 2018
Newly allocated memory is subtracted from inuse, while it was never added to inuse.
Span leftovers are subtracted from both inuse and idle,
while they were never added.
Fixes golang#8544.
Fixes golang#8430.

LGTM=khr, cookieo9
R=golang-codereviews, khr, cookieo9
CC=golang-codereviews, rlh, rsc
https://golang.org/cl/130200044
wheatman pushed a commit to wheatman/go-akaros that referenced this issue Jul 9, 2018
Newly allocated memory is subtracted from inuse, while it was never added to inuse.
Span leftovers are subtracted from both inuse and idle,
while they were never added.
Fixes golang#8544.
Fixes golang#8430.

LGTM=khr, cookieo9
R=golang-codereviews, khr, cookieo9
CC=golang-codereviews, rlh, rsc
https://golang.org/cl/130200044
This issue was closed.
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

4 participants