MySQL Forums
Forum List  »  InnoDB

Setting innodb_flush_method to O_DIRECT on Centos 7.8
Posted by: Tor André Sandum
Date: November 06, 2020 12:01PM

I have read that you should set innodb_flush_method to O_DIRECT in MySQL to avoid double buffering. I have also read that you should not use tmpfs for the tmpdir, because that will disable AIO.

While researching these claims, I found that Centos comes with tmpfs on the tmpdir automatically. I have read that this can create conflicts with O_DIRECT.

One suggested solution is to change the temporary folder for MySQL so that you can use native AIO and avoid double buffering.

Are the claims about double buffering correct?

Or should you just not set innodb_flush_method and let the tmpdir be the default with tmpfs?

Options: ReplyQuote


Subject
Views
Written By
Posted
Setting innodb_flush_method to O_DIRECT on Centos 7.8
598
November 06, 2020 12:01PM


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.