What?
Quickly check for direct I/O support on a file system
Why?
Direct I/O can bypass the system’s page cache for application control of file reads/writes direct to storage for reduced copies and performance.
How?
Check
If the above returns without error then DIRECT I/O is supported
Example: Supported
Verification Check(s)
Using vmtouch
or fincore
shows no pages were loaded into the page cache:
Using strace
shows use of O_DIRECT
flag: