Dynamically sizing the kernel stack
Dynamically sizing the kernel stack
Posted May 21, 2024 18:27 UTC (Tue) by epa (subscriber, #39769)In reply to: Dynamically sizing the kernel stack by josh
Parent article: Dynamically sizing the kernel stack
I was surprised to learn that handling a page fault can itself trigger a page fault. (If you could guarantee that the page fault handler didn't need to be re-entrant, then it wouldn't need to use the stack, but could have a small dedicated memory area per processor.) I guess it makes sense on complex modern systems that faulting in a page from swap space (for example) might itself perform filesystem or device driver operations that need to allocate.