Replies: 10 comments 6 replies
-
If the measurement is zero in a time interval then fio does not emit a log entry. The relevant code is in As for your second question, I do not have an immediate answer. Fio inserts a delay as it sets up each I/O for submission. This happens when it chooses a data direction. It does seem strange that fio is to attain the specified rate target for reads but not writes. Can you come up with a small, simple job to reproduce this issue? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your feedback
As per my understanding it seems that all the time that IO paths are down,
fio keeps generating IO operations as if IO was normal and somehow puts
them into the growing queue. Once IO is back to normal fio starts sending
out all the queued operations. Just in my case read rate is not that high
and so all the delayed read operations get sent to the storage relatively
fast. But 90k write rate is big enough so it takes time for the delayed
operations to be sent out.
It is clear to me now about recording logs, thanks for your explanation.
What remains unclear is why does fio queue IO when the drive (storage) is
unavailable for read-write, and is there any way to make it not do like that
Your opinion and advices will be greatly appreciated
Br,
Ilya
Пн, 18 марта 2024 г. в 23:30, Vincent Kang Fu ***@***.***>:
… If the measurement is zero in a time interval then fio does not emit a log
entry. The relevant code is in stat.c:__add_samples(). You can just
assume that log entries are zero if they do not appear at the expected
time. This reduces the amount of memory consumed by log entries which is
beneficial for long jobs.
As for your second question, I do not have an immediate answer. Fio
inserts a delay as it sets up each I/O for submission. This happens when it
chooses a data direction. It does seem strange that fio is to attain the
specified rate target for reads but not writes. Can you come up with a
small, simple job to reproduce this issue?
—
Reply to this email directly, view it on GitHub
<#1734 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCZ6XO26QYLUNWBQ5SEF3KTYY5FF5AVCNFSM6AAAAABE3YLHR2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQMZSHA2DQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
During one of the tests the storage was unavailable for about 2 minutes.
After recovering write IO rate jumped to ~110k IOPS (despite 90k
configured) and lasted at that level for about 9 minutes after which write
rate stabilized at the expected mark of 90k iops.
110k mean 90k “normal” operations plus 20k delayed ops. Now if you multiply
90000 by 120, then divide by 20000, you will get 540 seconds which
absolutely meet the above mentioned 9 minutes of high write rate duration.
It's really strange why fio goes beyond the configured rate
Вт, 19 марта 2024 г. в 00:05, Vincent Kang Fu ***@***.***>:
… You can test your hypothesis by observing fio's output when it is run with
--debug=io. There are no timestamps in the debug output but you can observe
the console when your SAN is unresponsive. I would expect that once fio
reaches the specified IO depth it will stop submitting requests.
—
Reply to this email directly, view it on GitHub
<#1734 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BCZ6XO4X6E55BGBZ2EPF67LYY5JLLAVCNFSM6AAAAABE3YLHR2VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQMZTGEYTG>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Ok that's pretty convincing. I have two suggestions:
|
Beta Was this translation helpful? Give feedback.
-
@vincentkfu It looks like either Linux IO subsystem or libaio engine work differently than windows/windowsaio: after the outage there is a short spike due to pending operations, and yet there is no "smeared" traffic from pending operations at the 20k IOPS level that was added to the 90k IOPS test traffic as we observed in Windows. One more thing to say - fio in linux makes almost no load to vCPUs, whereas windows VM really works hard consuming a lot of CPU time - under the same configuration scenario |
Beta Was this translation helpful? Give feedback.
-
We keep doing tetst and the worst thing is that after each path recovery we have to wait until write IO stabilizes. It does look like fio wants at any cost to make average iops level to be equal to the the configured rated IOPS. So if we have configured write IOPS rate = 90k and the storage can only process 60k, then after the storage is OK again, fio just makes the write IOPS as big as possible to deliver all "undelivered" IO ops. |
Beta Was this translation helpful? Give feedback.
-
@vincentkfu Could you please explain, what fio is supposed to do in case queue size of the target device matches iodepth value or goes beyond that value? Will fio decrease IOPS until the number of ongoing IO ops decreases to be less or equal to iodepth? |
Beta Was this translation helpful? Give feedback.
-
@vincentkfu After a lot of testing, I think the IO bursts which I'm seening are a kind of catch-up mode that fio goes into when it can't handle the target rate_iops level for some time. The situation is similar to an old problem reported in connection with the thinktime option: https://github.com/axboe/fio/issues/497. |
Beta Was this translation helpful? Give feedback.
-
We have just finished testing a SAN storage. There was a bunch of stress-tests done to it with the fio running on a dedicated Windows VM. Some tests were supposed to affect IO on the host, so we expected to see IOPS log entries with 0 value while those test were executed. However I found that there were no records at all instead. Moreover, after IO recovered we faced higher IOPS level of write operations (about 110k) for a period of time after which IOPS got back to normal (meaning configured level - 90k). I figured out, that it might be happening because all the IO which could not be written to the storage during IO paths outage was presumably delayed/queued. And after IO became normal again, all delayed write operations were sent out among with the "normal" operations.
We've got a lot of questions about testing results, but I will focus on the below 2 most important ones:
fo configuration file:
[global]
iodepth=128
direct=1
ioengine=windowsaio
group_reporting=1
time_based
runtime=36000
numjobs=1
rw=randrw
write_lat_log=test1
log_avg_msec=1000
write_iops_log=test1
iopsavgtime=1000
disable_slat=1
disable_clat=1
log_unix_epoch=1
[job1]
size=3G
filename=\.\PhysicalDrive1
bs=8k
rate_iops=10k,90k
Beta Was this translation helpful? Give feedback.
All reactions