News for hackers. Stuff that matters.
Re:How much memory do you need in 2024 to run 1M concurrent ... by throwaway81523 on Thursday November 28, 2024 @11:53PM (#42270927)
I don't think 1M posix threads is a thing. 1K is no big deal though.
Re:How much memory do you need in 2024 to run 1M concurrent ... by liontwist on Friday November 29, 2024 @12:03AM (#42270975)
~100k is a thing on Linux.
Re:How much memory do you need in 2024 to run 1M concurrent ... by fulafel on Friday November 29, 2024 @12:44AM (#42271174)
On Linux, 400k threads was a thing on even on 2002 hardware that was 32-bit and thus limited to 4GB: https://news.ycombinator.com/item?id=37621887

In the titular post there's a link to a previous comparison between approaches, and plain OS threads used from Rust fare quite well, even if the author doesn't up the OS limits to keep that in the running for the higher thread cases: https://pkolaczk.github.io/memory-consumption-of-async/