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


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Old 09-26-2016
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.
# 2  
Old 09-27-2016
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 11:15 AM..
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
DAX fallbacks pressy Solaris 0 07-26-2018 12:06 PM
Shrink ext4 filesystem and reduce the size of a Logical Volume in Linux los_bandidos Red Hat 2 02-14-2017 04:08 AM
Copy files with pattern from ext4 to cifs file system rakeshkumar Shell Programming and Scripting 5 09-10-2013 07:21 AM
Unable to mount ext4 filesystem (created from Ubuntu) in Solaris 11 Prakhar Mishra Solaris 6 05-25-2013 01:54 AM
Convert ext4 to ext3 Shirishlnx Red Hat 1 03-29-2012 07:06 AM
User and Group quota is not working on RHEL6.2 ext4/ext3 admin_xor Red Hat 5 02-16-2012 09:14 AM
Kernel programming - Ext4 and extents contents oedurgan Programming 1 12-30-2011 10:12 AM
What are the possible action regarding having bad sector in my ext4 root partition? jao_madn Hardware 5 10-13-2011 11:27 AM
Mount Filesystem in AIX Unable to read /etc/filesystem m_raheelahmed AIX 2 09-19-2011 05:21 AM
hwo to find shared filesystem and local filesystem in AIX kamranjalal UNIX for Dummies Questions & Answers 2 04-18-2011 01:27 PM
Testing for O_DIRECT support brsett Shell Programming and Scripting 2 06-07-2010 02:06 PM
Writing files using O_DIRECT in C anchit87 Programming 3 03-01-2010 06:11 AM
Difference between filesystem and partition rajaramrnb Solaris 3 02-05-2010 08:23 AM
ext4 - ready for production system? Loic Domaigne Filesystems, Disks and Memory 3 12-07-2009 01:23 PM
Gfs2 vs xfs vs ext4 king_hippo Filesystems, Disks and Memory 12 11-30-2009 04:00 PM