March 24, 2021
2:59 p.m.
On Wed, 24 Mar 2021 09:21:31 -0400, Aruna Hewapathirane said:
And all of that has to fit in 8K of stack. That's why we warn when things have a large stack frame entry.
I still don't understand why the 8K barrier ? Why can't we make it say 16K ?
The issue is that then you need 4 contiguous pages for fork() to succeed, which can become a problem if memory gets fragmented. The chances of being able to find 2 contiguous pages are *much* higher than 4.