Conversation

Turns out there is an OS-wide limit on how many threads you can have, and if you create an *operating system thread* for each host on your network (???) you will hit the limit
Quote Tweet
Just found the AWS US-East-1 outage postmortem is up. Overall: increasing capacity causing more syncing overhead then slamming against configuration limits was the start of the cascading failure - an interesting read! Well worth a few minutes: aws.amazon.com/message/11201/
2
50
Each thread requires up to 2 mappings or 4 mappings when supporting catching stack overflows. It can be higher for a hardened implementation. Since adjacent, identical mappings get merged, the count per thread will be lower until the address space gets fragmented over time.
1
Hardened runtimes often require additional mappings per stack. There are also a lot of other memory mappings beyond thread stacks. The 65530 limit isn't very reasonable for 64-bit. It doesn't even support common cases if you use a hardened allocator heavily using guard regions.
2