New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhance documentation support for interleavings of options. #1179
Comments
Hi @TimHe95, (Hmm I'm not sure about this enhancement request but I'll take a look at this and use what happens to guide how I respond to other similar situations in the future) I'm guessing you're referring to Linux since you mentioned (Pedantry: raw device implies no buffering. Linux doesn't have "raw devices" any more so I will interpret all of your uses of the term to be block device so we can progress)
Well this doesn't sound like an fio question because as you said sync ioengine just makes
Well, we can see that setting
Well again, what makes you think block devices can't support the fsync(2) syscall? Doing a quick search of lxr for fsync gets us to
fio will pass it on to the C library/operating system. I've covered
Whatever the Linux kernel reports the disk stats in. Would you like to submit a patch to document this in the manual and HOWTO? OK having gotten this far it's clear this isn't really the form an enhancement request should take so I'll change my approach going forward. However, it is very reasonable to ask "how does OS A implement feature X?" to the OS developers and from fio's perspective we can sometimes can point people in the right direction when those questions are sent to the fio mailing list so if you have more follow up clarifications or queries we can continue over there (obviously no guarantees but it's a better place). Thanks! |
(Setting to needreporterinfo pending a reply from the reporter) |
Closing due to lack of reply from reporter. If this issue is still happening with the latest fio (see https://github.com/axboe/fio/releases to find out which version that is) please reopen. Thanks! |
Description of the new feature
I am doing some raw disk tests using
fio
. I found some behaviour is not clear when specifying--filename=/dev/device_name
and--direct=1
.(1) default
ioengine
issync
, which use read(2)/write(2), but for raw disks, there is no filesystem. So howfio
read/write raw disks? The same problem forlibaio
,posix_aio
engine.(2) what will fio do for the raw device when specifying
sync=sync
. It is claimed thatfio
useO_SYNC
when testing files. But what for raw disks. The same problem forfsync=1
option.Further, if using
libaio
orposix_aio
engine, what willfio
do if specifyingsync=sync
andfsync=1
options. (In case one may want to make sure the write is right on the storage medium (e.g., TLC NAND for SSD) rather than disk cache.)(3) the result report has an "in_queue" time which is documented as "Total time spent in the disk queue". What is the unit of this data (ns/us/ms).
Thank you very much for the patience!
The text was updated successfully, but these errors were encountered: