{"push_id":1151522226,"size":1,"distinct_size":1,"ref":"refs/heads/marc/rework_mem_stats","head":"0ff75c69413deb300aea4080efac35c0ac8a212b","before":"a321d65196af4c0720c61cf983a19d21e68ac89e","commits":[{"sha":"0ff75c69413deb300aea4080efac35c0ac8a212b","author":{"name":"marc","email":"914bb1aa8f50cbee5072379fc4374eb10cf80dcc@cockroachlabs.com"},"message":"Rework memory stats logging and metrics.\n\n* gather mem stats from jemalloc\n* subtract go heap-released from sys (the runtime does not do that)\n* limit memory metrics to: RSS, go/cgo alloc/total\n\nThe numbers now make a lot more sense (with a bunch of caveats).\nThe new log line get a bit long and looks like:\n```\nI160609 10:27:27.041866 server/status/runtime.go:187  runtime stats: 650\nMiB RSS, 96 goroutines, 82 MiB/329 MiB/444 MiB GO alloc/idle/total, 150\nMiB/186 MiB CGO alloc/total, 59579.51cgo/sec, 0.33/0.04 %(u/s)time, 0.00\n%gc (1x)\n```\n\nGo's MemStats.Sys - MemStats.HeapReleased is memory go is currently\nmanaging. MemStats.Alloc is the memory really allocated by the\napplication. Idle is the total size of idle pages.\nCgo's allocated is the actual memory allocated by the application,\nresident is used as total.\n\nIn both cases, some metadata may not be included in allocated,\nand allocated is real bytes, not active pages.\n\nOverall, this gets us much closer to real memory usage, where the new\nmetrics exported almost sum up (go.total + cgo.total ~= rss)","distinct":true,"url":"https://api.github.com/repos/cockroachdb/cockroach/commits/0ff75c69413deb300aea4080efac35c0ac8a212b"}]}
{"actor":{"display_login":"mberhault"}}