On Wed, Dec 5, 2012 at 11:11 AM, Ben Noordhuis <[email protected]> wrote:
> On the other hand, Linux AIO only works with files opened in O_DIRECT
> mode.  You no longer benefit from the disk cache so in general it will
> be slower, possibly a lot slower.  O_DIRECT only makes sense for very
> specialized workloads.

I should probably have mentioned that the situation has much improved
with recent kernels (though still not perfect) and that O_DIRECT is no
longer a hard requirement for reliable AIO.  If you're writing bespoke
software and control the kernel it's getting deployed on, AIO may be a
feasible option.

For node.js it's more complicated.  It runs on a broad range of
kernels and there are still lots of 2.6.18 machines out there, or even
older.

I don't think sniffing the kernel version is going to cut it: distro
vendors tend to back-port and forward-port kernel patches a lot.  For
example, the delta between a mainline 2.6.32 kernel and RHEL 2.6.32 is
_massive_.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to