Conversation

Use garbage collection, they said. Manual memory management is too hard, they said. Garbage collection means you don't need to think about memory, they said. Now the code uses 14m of actual memory, but my OS needs to provide 400m for those 14m, and I am reading the runtime.
8
97
Replying to
I am not sure that’s Go fault. With TamaGo, which keeps the Go runtime almost identical but on ARM bare metal and therefore without the OS virtual memory, we don’t see much memory waste. And we have much less memory to spare. Are you sure it isn’t just Linux overcommitting?
1
Replying to
From golang's own accounting: Alloc: 31324248 Sys: 917090656 - 900 megs of system memory for 31 megs of live heap-allocated objects. But I am not sure yet, I am in the process of root-causing what is going on.
1
2
Show replies