在Linux下运行编译好的go语言程序,程序占用VSZ达到了661M,本身设备的内存一共也才512M,现在程序运行达不到在X86下面运行的效果,这个是由于VSZ大小超过了物理大小所致吗
![深度截图_选择区域_20180906164432.png](https://static.studygolang.com/180906/7e92963774f53a461bce2cf29fb53c39.png)
http://docs.studygolang.com/doc/faq#Why_does_my_Go_process_use_so_much_virtual_memory
The Go memory allocator reserves a large region of virtual memory as an arena for allocations. This virtual memory is local to the specific Go process; the reservation does not deprive other processes of memory.
To find the amount of actual memory allocated to a Go process, use the Unix top command and consult the RES (Linux) or RSIZE (macOS) columns.
#2