Conversation

NFT profile picture
💯 > In general, it is my opinion that if your program is crashing on Alpine, it is because your program is dependent on behavior that is not guaranteed to actually exist, which means your program is not actually portable
Quote Tweet
understanding thread stack sizes and how alpine is different ariadne.space/2021/06/25/und
1
9
It means if you want to have reliable main thread stack space under memory exhaustion, you need to touch all of the main thread stack you're going to need later on up front to get it mapped in to the process. Alternatively, you can just not use the main thread after init.
1
2
You can gradually read it in blocks based on the configured thread gap size to map it in when your process starts and then optionally add your own guard where you want the limit to be since the kernel doesn't necessarily even have a specific limit configured.
1
Show replies