Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: