Page-based direct I/O
Posted Aug 28, 2009 2:55 UTC (Fri) by giraffedata
In reply to: Page-based direct I/O
Parent article: Page-based direct I/O
Thanks for pointing out fadvise; I forgot about it. That's probably a better option than having the application choose the actual cache behavior.
But I believe most users of direct I/O today need a new option to get what they want. NOREUSE says "I'm not going to access this data again soon," but we also need, "I don't have anything better to do than wait for I/O, so don't buffer writes on my account."
The beauty of this, as opposed to direct I/O, is the kernel can still do readahead and write behind in order to do more efficient disk scheduling, which is something the application really isn't in a position to do -- a user of a filesystem isn't supposed to know anything about seeks and such.
to post comments)