lelewqd
(poale)
1
I have a large golang project (based on docker source code) that runs on Raspberry Pi and the virtual memory that the go process request is huge:
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
728 1 root S 932m 401% 8% /usr/bin/mygoap
There is still free physical memory which I can verify using free -m, why go vmalloc so much memory?
nathankerr
(nathankerr)
2
lelewqd
(poale)
4
Where does this allocation happens in the golang project? https://github.com/golang/go
nathankerr
(nathankerr)
5
I think it is here (I haven’t hacked on the runtime yet):