MySQL Forums
Forum List  »  MySQL & Storage

Re: MySQL + NAS(NFS) - Possible solution?
Posted by: Ingo Strüwing
Date: September 26, 2005 05:09AM

Difficult to say. I never did anything with O_DIRECT. But since the description seems to say that the application has to wait until the data are on disk, I don't believe that this would make things much faster.

OTOH, I experienced quite often that I was wrong with such beliefs.

What seems to be quite clear: This option must be disastrous for MyISAM performance. MyISAM writes every row (!) to the file system cache. With O_DIRECT it would have to wait for every row to travel the network and settle on disk.

InnoDB should only write in pages, when they are evicted from its cache or at savepoints. And in most cases InnoDB should need to know that the stuff is on disk. So O_DIRECT makes sense here. (Still guessing, I'm no InnoDB guru).

The only thing I wonder is why InnoDB would not use this for logging. I would expect the most benefit here. IMHO, every commit must be written to disk. So O_DIRECT should be good.

I would like to hear of your experiences if you find time to try this out.

Options: ReplyQuote

Written By
Re: MySQL + NAS(NFS) - Possible solution?
September 26, 2005 05:09AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.