3 ms·
> More people think they need a hundred thousand threads than actually do. This is fair, but is a hundred thousand OS threads really a reasonable load on reaso
by toast0 14d ago
> More people think they need a hundred thousand threads than actually do.
This is fair, but is a hundred thousand OS threads really a reasonable load on reasonable OSes?
I've (helped to) run systems with millions of Erlang processes on a node, so I'm not most people and my attitudes might well be skewed. I would expect that the reasonable ceiling for OS threads is closer to 10k than 100k, although I don't think I've seen many articles about findinf the limits... maybe everything just quietly works?
If the limit is 10k, I think there's a lot of real situations where thread per connection or thread per task runs out of headroom. If the limit is 100k, a lot fewer people are going to hit that. Common wisdom is "thread per connection doesn't scale", but it has a desirable programming model, so the question becomes how to get the programming model and scale, at least to modest size.
If it's fine to mostly just use threads (hopefully without so much of the shared everything model that makes everything hard), it would be great if people knew that instead of spending so much time adding async/await to everything. :P