-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: increased VmSize/VmData consumption #44999
Comments
This sounds like #44554 |
Duplicate of #44554 |
reopening at the OP's request |
Issue #44554 talks about memory consumption increase in release 1.16 in comparison with release 1.15 My issue was about memory increase in 1.15, 1,16 releases in comparison with 1.13 I dig a bit more, here what I've found For the sake of simplicity I used a test programm below
With release go1.13.15.linux-amd64.tar.gz (from page https://golang.org/dl/) results are following [root@localhost versions]# /mnt/ext-drive/go-ver/go1.13.15/bin/go run ./test.go VmPeak: 102816 kB With release go1.14.linux-amd64.tar.gz memory usage increased 7 times [root@localhost versions]# /mnt/ext-drive/go-ver/go1.14.0/bin/go run ./test.go .....
|
As explained in #45000 (comment) , VmSize/VsData does not reflect actual physical memory resources used, and this is working as intended. Closing. Thanks. cc @mknyszek in case I'm mistaken. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
A programm allocates some memory and than release it.
https://play.golang.org/p/Ljr0c6zRasB
What did you expect to see?
After golang version update to 1.16.2 I expect to see the same memory consumption as with go lang 1.13
With go lang 1.13 programm output was:
START VmSize:138Mb VmLck:0 VmPin:0 VmRSS:1 VmData:131 VmStk:0 VmExe:0 VmLib:1
VmSize:476Mb VmLck:0 VmPin:0 VmRSS:11 VmData:468 VmStk:0 VmExe:0 VmLib:1
VmSize:476Mb VmLck:0 VmPin:0 VmRSS:12 VmData:468 VmStk:0 VmExe:0 VmLib:1
What did you see instead?
With go lang 1.16.2 programm output is:
START VmSize:725Mb VmLck:0 VmPin:0 VmRSS:1 VmData:717 VmStk:0 VmExe:0 VmLib:1
VmSize:1321Mb VmLck:0 VmPin:0 VmRSS:21 VmData:1313 VmStk:0 VmExe:0 VmLib:1
VmSize:1321Mb VmLck:0 VmPin:0 VmRSS:22 VmData:1313 VmStk:0 VmExe:0 VmLib:1
Memory consumption is three times more in comparison with go lang 1.13 (VmSize:476Mb vs VmSize:1321Mb)
The text was updated successfully, but these errors were encountered: