Re:Tokio 1.0 – async runtime for Rust
by platinumrad on Wednesday December 23, 2020 @06:09PM
(#25523351)
Also worth noting that the entire stack isn't allocated at once so 1 million threads would be using 2TB/68GB of virtual address space, not 2TB/68GB of physical memory.
[ Parent
| on HN ]
Re:Tokio 1.0 – async runtime for Rust
by spacechild1 on Thursday December 24, 2020 @06:27AM
(#25526634)
That is indeed a very important fact to keep in mind! Thread stack sizes have been a problem with 32 bit systems where you quickly run out of virtual memory because the adress space is not large enough. With 64 bit that is not a problem anymore.