LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 10-04-2009, 01:36 PM   #1
Stephan_Craft
Member
 
Registered: Jul 2008
Posts: 184

Rep: Reputation: 30
how to use O_DIRECT ?


Hi,
yesterday i moved from MYISAM to innodb and everything works great, than i changed innodb_flush_method to O_DIRECT and things work even better...

my question is, what O_DIRECT do? how to use it with apache httpd or other services?
 
Old 10-05-2009, 06:16 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,467
Blog Entries: 11

Rep: Reputation: 184Reputation: 184
http://dev.mysql.com/doc/refman/5.1/...b_flush_method for further reading

O_DIRECT is just the way things are getting synced to disk. InnoDB uses memory in every fashion, but somehow the data has to be stored permanently on the disk. That the syncing mechanism.
As far as I recall there is no similar option to apache. Mainly cause it only writes logs...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IO write using O_DIRECT flag with and without memset() after malloc() naik_yogesh Linux - Software 0 04-01-2009 07:28 AM
file writes to RAID using posix_fadvise vs O_DIRECT zobtempo Linux - Software 0 05-02-2007 11:11 AM
LXer: Linux: Accessing Files With O_DIRECT LXer Syndicated Linux News 0 01-11-2007 08:03 PM
gcc question....on solaris....O_DIRECT Petros Koutoupis Solaris / OpenSolaris 2 09-14-2006 02:53 PM
Max read size for O_DIRECT file I/O bigqueso Linux - Software 1 06-02-2006 11:47 AM


All times are GMT -5. The time now is 02:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration