3 ms·
I'm interested in point 2, can you clarify how and why Linux in-kernel virtual memory is crippled or provide a link?
by gnu8 12y ago
I'm interested in point 2, can you clarify how and why Linux in-kernel virtual memory is crippled or provide a link?
- ryao 12y agoThere are two issues: 1. Page table allocations use GFP_KERNEL, even when done for an allocation that used GFP_ATOMIC. This means that allocations that are needed to do pageout and other things to free memory can deadlock. There is a workaround in the SPL that will switch it to kmalloc when this issue occurs. There is also a new mechanism in Linux 3.9 and later that should render this unnecessary. 2. The kernel deals with kernel virtual address space exhaustion in vmalloc() by spinning until memory becomes available. This is not a problem on current 64-bit systems where the virtual address space used by vmalloc is larger than physical memory, but it is a problem on most 32-bit systems.