News for hackers. Stuff that matters.
Re:How much memory do you need in 2024 to run 1M concurrent ... by winternewt on Friday November 29, 2024 @01:08AM (#42271286)
Please elaborate. If each stack is 2KB then surely all of that virtual memory is committed to physical RAM, and hence is using actual memory?
Re:How much memory do you need in 2024 to run 1M concurrent ... by scrapheap on Friday November 29, 2024 @02:55AM (#42271877)
Yes and no.

If that memory isn't being used and other things need the memory then the OS will very quickly dump it into swap, and as it's never being touched the OS will never need to bring it back in to physical memory. So while it's allocated it doesn't tie up the physical RAM.