runtime/cgo: Memory RSS has been growing abnormally when call cgo and go #43160
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes, reproduce with version 1.13、1.15
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
demo code
What did you expect to see?
when both call cgo test and go test, It would taking 167Mb of RSS and should be able to stabilize around 170Mb,instead of memory increase several times.
What did you see instead?
2.when only call go test function(step 2), not call cgo test function(step 1), It would taking ~33Mb of RSS(resident set size memory) .
3.when both call cgo test and go test, It would taking 167Mb of RSS and then grow to >700Mb
4.In addition, Using the windows platform,RSS is normal , not as high as linux
The text was updated successfully, but these errors were encountered: