Unix/Linux Go Back    


Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

What is the difference between o_direct and DAX with ext4 filesystem?

Filesystems, Disks and Memory


Tags
ext4, filesystem

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-26-2016   -   Original Discussion by BHASKAR JUPUDI
BHASKAR JUPUDI BHASKAR JUPUDI is offline
Registered User
 
Join Date: Jan 2016
Last Activity: 26 September 2016, 3:55 PM EDT
Location: Santa Cruz
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
What is the difference between o_direct and DAX with ext4 filesystem?

I'm trying to understand the difference between o_direct flag of open system call and dax (direct access) with ext4 filesystem.

According to my understanding both bypass page cache.

But I'm still unclear about the crucial difference between these 2 techniques. If there is a huge difference then what does it mean to use o_direct flag with DAX? Can anyone please explain about this in detail?

NOTE: Here I have partitioned a pmem device on top of DRAM using memmap parameter.
Sponsored Links
    #2  
Old Unix and Linux 09-27-2016   -   Original Discussion by BHASKAR JUPUDI
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 23 November 2017, 4:41 PM EST
Location: Saskatchewan
Posts: 22,523
Thanks: 1,154
Thanked 4,275 Times in 3,948 Posts
Usually, direct I/O is a bad idea. What are you attempting to accomplish? pmem uses DAX already.

DAX is intended for RAM or RAM-like devices with page sizes identical to the system page size. It avoids an extra copy-between-kernel step that may otherwise happen the first time a page is read using block devices, even RAM ones.

In other words, DAX is direct I/O specially optimized for RAM.

Last edited by Corona688; 09-27-2016 at 12:15 PM..
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unable to mount ext4 filesystem (created from Ubuntu) in Solaris 11 Prakhar Mishra Solaris 6 05-25-2013 02:54 AM
Testing for O_DIRECT support brsett Shell Programming and Scripting 2 06-07-2010 03:06 PM
Writing files using O_DIRECT in C anchit87 Programming 3 03-01-2010 07:11 AM
Difference between filesystem and partition rajaramrnb Solaris 3 02-05-2010 09:23 AM
Gfs2 vs xfs vs ext4 king_hippo Filesystems, Disks and Memory 12 11-30-2009 05:00 PM



All times are GMT -4. The time now is 11:51 PM.