Subject: Re: direct I/O
To: Chuck Silvers <chuq@chuq.com>
From: Jared D.McNeill <jmcneill@invisible.ca>
List: tech-kern
Date: 02/28/2005 08:59:54
This is awesome, thanks Chuck! Just a quick question..

On 28-Feb-05, at 4:10 AM, Chuck Silvers wrote:

[snip]
> this is safer than the loaning-for-read()/write() stuff, since 
> applications
> must explicitly ask for the new behaviour and the interface to do this 
> is
> fairly standard already.  the interface is just a new open/fcntl flag,
> O_DIRECT, which is a hint that I/O done via this file descriptor be 
> performed
> without buffering in the kernel as much as possible.  there are a 
> number of
> reasons why it may not be possible to do an I/O without kernel 
> buffering
> (eg. because the request is not appropriately aligned on disk or in 
> memory),
> and those cases the hint is ignored.

Solaris also supports 'forcedirectio' as a mount option. Are you 
planning on supporting similar functionality as well?

Thanks,
Jared