Originally posted by coder
View Post
Once you run out of memory, the OS will remove cache first, then dirty pages, finally it might swap some unbacked pages to disks.
Though I wonder if using mmap would make a difference, at least it would avoid some copying between userspace and kernelspace, at best it might also avoid some syscalls, though interruption can be even more expensive.
Comment