LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 12: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, 05:16 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
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



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 06:28 AM
file writes to RAID using posix_fadvise vs O_DIRECT zobtempo Linux - Software 0 05-02-2007 10:11 AM
LXer: Linux: Accessing Files With O_DIRECT LXer Syndicated Linux News 0 01-11-2007 07:03 PM
gcc question....on solaris....O_DIRECT Petros Koutoupis Solaris / OpenSolaris 2 09-14-2006 01:53 PM
Max read size for O_DIRECT file I/O bigqueso Linux - Software 1 06-02-2006 10:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:22 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
Open Source Consulting | Domain Registration