4 ms·
Is this an old presentation? Doesn't Go now start with 8KB stacks per goroutine, which is the same as OS level threads (which physically allocate 8KB from a la
by justinsb 12y ago
Is this an old presentation? Doesn't Go now start with 8KB stacks per goroutine, which is the same as OS level threads (which physically allocate 8KB from a larger virtual mapping)?
I thought the benefits of goroutines were now about more efficient scheduling, not lower memory utilization?
- cnbuff410 12y agoit's latest. Go 1.3 will have a minimum stack size back down at 4 kB. I think they have plan to even trim it down to 1-2 KB in Go 1.4
- 4ad 12y agoGo 1.3 will ship with contiguous stacks that start at 8kB. The original plan was to cut them back at 4kB, but it was not feasible ritgh now (while maintaing performance). It will probably be reduced in the future.
- 4ad 12y agoNo, threads don't use 8kB stacks, they use 2-8MB stacks. A particular point of goroutines is that they use less address space than threads. Both goroutines and threads use roughly the same amount of physical memory.