in reply to Need writes to happen immediately.

I'm having a similar problem, except with sysread, which this mmap-facilitated buffer alignment method isn't working for. Has anyone used this method to use sysread successfully on an O_DIRECT filehandle?

It's at node 653075.