4 ms·
On any architecture, you may need to reduce the amount of stack space allocated for each thread to avoid running out of virtual memory http://www.kegel.com/c10
by known 7y ago
On any architecture, you may need to reduce the amount of stack space allocated for each thread to avoid running out of virtual memory
http://www.kegel.com/c10k.html#limits.threads http://www.kegel.com/c10k.html#limits.threads
- Koshkin 7y agoNot making a jab at what you are saying, but to me “running out of virtual memory” has always sounded like a crazy thing, like running out of address space. Sure, given enough disk space, your program might get (quite) a bit slower, but it should still chug along just fine. Yet, running out of virtual memory is indeed still a thing, especially in Windows (a workaround being using memory-mapped files).
- CJefferson 7y agoIs this even possible on a 64 bit architexture? The default stack size is, I think, 2mb, and i have previously allocated terabytes of VM space without issues.
- wbkang 7y agoNo this is more of a 32bit issue.
- nurettin 7y agoI can't believe this link is still relevant after more than 15 years.