3 ms·
> The pauses occur even [..] if you call mlock I wonder how this is even possible. The only scenario I can think of involves a page fault on the page table its
by sltkr 2y ago
> The pauses occur even [..] if you call mlock
I wonder how this is even possible. The only scenario I can think of involves a page fault on the page table itself (i.e., the page is locked into memory, but a page fault occurs during virtual-to-physical address translation). Does anyone know the real reason?
- survivedurcode 2y agoProbably because pages mapped, even if they are locked into memory are not allowed to stay dirty forever. Does this help? https://stackoverflow.com/a/11024388 https://stackoverflow.com/a/11024388 (In contrast, if you mlocked but never wrote to the pages, you probably would not encounter read pauses)