yes I'm aware of that but still, why the super large size VSS in Golang? It does have side effects some are pretty bad.
On Thursday, January 14, 2021 at 12:20:43 AM UTC-6 Amnon wrote: > Have you tried https://tinygo.org/ ? > > On Thursday, 14 January 2021 at 06:02:35 UTC laos...@gmail.com wrote: > >> a helloworld net/http will ask for 1GB VSS, I understand VSS is not the >> same as RSS, also did my googling and know golang malloc.go allocates 512GB >> heap for 64bit system and such. >> >> other GC(garbage collection) languages do not preallocate huge size of >> VSS and they worked well. >> >> large size VSS does have an impact on Linux related to overcommit >> settings, it also impacts ulimit resource, and swap, and mlock, and >> probably core dump or even cgroups etc. >> >> I'm running go on embedded boards where 64M/128M RAM is the norm. The 1GB >> VSS for a helloword just seems not right. In fact I saw some apps demands >> many GBs VSS. >> >> turning on/off CGO helped little but not much. >> >> so all in all, is this super-sized VSS really a feature? can it at least >> be made configurable somehow? >> >> Try to set overcommit to 2 and run multiple helloworld http you may kill >> all your x-windows system for example, which really should never happen. >> >> Shaw >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/11df24ac-008d-4f93-a3e2-85607d0d4e93n%40googlegroups.com.