Re:The Greatest Bug of All
by tptacek on Tuesday July 08, 2008 @09:46PM
(#240635)
Well, here's where this gets fun: most of the kernels we work with are structured like event loops, and disk I/O is asynchronous. When you issue a read vnop in a Unix kernel, your process will probably yield back to the scheduler loop, incurring the out switch and the in switch.
This mmap vs. read argument is as old as the hills. I picked a side a long time ago; keep it simple.
This mmap vs. read argument is as old as the hills. I picked a side a long time ago; keep it simple.