Skip to contentSkip to conversation

Print info if direct I/O is used

DISCUSSION Georg Schönberger 2 participants 2 messages Jul 4, 2012 – Jul 31, 2012

lore
Share & tools
lore
#0 lore raw

Hi Jens,

it would be nice if an information is printed out if direct I/O has been used:
Instead of
--------
/usr/local/bin/fio --rw=write --direct=1 --name=usb --filename=/dev/sdb1
usb: (g=0): rw=write, bs=4K-4K/4K-4K, ioengine=sync, iodepth=1
--------
I suggest
--------
/usr/local/bin/fio --rw=write --direct=1 --name=usb --filename=/dev/sdb1
usb: (g=0): rw=write, bs=4K-4K/4K-4K, ioengine=sync, direct=1, iodepth=1
--------
So I can verify if the page cache has been used for a test when inspecting the output files.

-Georg

#1 lore raw
Quoted 16 lines · Georg Schᅵnberger

Hi Jens,

it would be nice if an information is printed out if direct I/O has been used:
Instead of
--------
/usr/local/bin/fio --rw=write --direct=1 --name=usb --filename=/dev/sdb1
usb: (g=0): rw=write, bs=4K-4K/4K-4K, ioengine=sync, iodepth=1
--------
I suggest
--------
/usr/local/bin/fio --rw=write --direct=1 --name=usb --filename=/dev/sdb1
usb: (g=0): rw=write, bs=4K-4K/4K-4K, ioengine=sync, direct=1, iodepth=1
--------
So I can verify if the page cache has been used for a test when inspecting the output files.

I'll take a patch to add that :-)

Signature · 1 line
Jens Axboe