Skip to contentSkip to conversation

help about how to use latency options

DISCUSSION Larry Chen 2 participants 6 messages Apr 11, 2018 – Apr 18, 2018 1 message not in the archive

lore
Share & tools
lore

Larry Chen

author
#0 lore raw

Hi list,

I referred to the docs and examples but I'm still hard to understand how to use latency_target, latency_window and latency_percentile. Could any one help explain it in detail?
Thanks in advance

Sorry for that this letter might be resent to the list because my misoperation of subscribing fio mail list.

Regards,
Larry

#1 lore raw

Hi,

Quoted 8 lines · Larry Chen

I referred to the docs and examples but I'm still hard to understand how to use latency_target, latency_window and latency_percentile. Could any one help explain it in detail?
Thanks in advance

Sorry for that this letter might be resent to the list because my misoperation of subscribing fio mail list.

These options are used to probe the highest iodepth usable such that the I/Os still have a latency equal to or below that of latency_target on the basis that more asynchronous I/Os being sent at the same time the higher each I/Os latency will be (this is what
http://fio.readthedocs.io/en/latest/fio_man.html#cmdoption-arg-latency-window
is trying to say). latency_window controls the time window that I/Os are considered over. latency_percentile is used to adjust the sensitivity to outlier I/Os during this process so a single moment high spike is ignored.

Any clearer?

Signature · 1 line
Sitsofe | http://sucs.org/~sits/
author
#6 lore raw
In reply to a message not in the archive

Hi 何蒙,

Thanks for your reply, your explain on latency_window is excellent.

The docs says it "will attempt to find the max performance point", but it doesn't say any attempt to make some changed to fit in the latency_target.

Thanks
Larry

Quoted 29 lines · 何蒙

Hi Larry
It is my understanding that:
If latency_target=100ms, latency_target=90, fio will attempt to make 90% of all IOs lower than latency_target, If lantency_window=1s,fio will calculate all IOs in the 1st second,if don't meet the target (90% latency less than 100ms) fio will do some changes to meet the target in next seconde.

2018-04-11 14:48 GMT+08:00 Larry Chen <[email protected] <mailto:[email protected]>>:

Hi list,

I referred to the docs and examples but I'm still hard to understand how to use latency_target, latency_window and latency_percentile.
Could any one help explain it in detail?
Thanks in advance

Sorry for that this letter might be resent to the list because my misoperation of subscribing fio mail list.

Regards,
Larry
--
To unsubscribe from this list: send the line "unsubscribe fio" in the body of a message to [email protected] <mailto:[email protected]>
More majordomo info at http://vger.kernel.org/majordomo-info.html
<http://vger.kernel.org/majordomo-info.html>

author
#2 lore raw
In reply to Sitsofe Wheeler

Hi Sitsofe,
Thanks for your explain.
I found that if latency_target is specified, latency_window must be along with latency_target option. If not, fio will exit immediately.
Why the case is like that?

Thanks
Larry

Quoted 22 lines · Sitsofe Wheeler

Hi,

Quoted 7 lines · Larry Chen

I referred to the docs and examples but I'm still hard to understand how to use latency_target, latency_window and latency_percentile. Could any one help explain it in detail?
Thanks in advance

Sorry for that this letter might be resent to the list because my misoperation of subscribing fio mail list.

These options are used to probe the highest iodepth usable such that the I/Os still have a latency equal to or below that of latency_target on the basis that more asynchronous I/Os being sent at the same time the higher each I/Os latency will be (this is what
http://fio.readthedocs.io/en/latest/fio_man.html#cmdoption-arg-latency-window
is trying to say). latency_window controls the time window that I/Os are considered over. latency_percentile is used to adjust the sensitivity to outlier I/Os during this process so a single moment high spike is ignored.

Any clearer?

#3 lore raw

Hi,

fio needs to know what the period it should be sampling the latency over. If the latency was OK in the current latency window it can up the iodepth by one and start a new latency window thus repeating the process. Without a window you will (by definition) have no samples to look at!

Quoted 6 lines · Larry Chen

Hi Sitsofe,
Thanks for your explain.
I found that if latency_target is specified, latency_window must be along with latency_target option.
If not, fio will exit immediately.
Why the case is like that?

Signature · 1 line
Sitsofe | http://sucs.org/~sits/
author
#4 lore raw

Thanks
 :-)

Quoted 15 lines · Sitsofe Wheeler

Hi,

fio needs to know what the period it should be sampling the latency over. If the latency was OK in the current latency window it can up the iodepth by one and start a new latency window thus repeating the process. Without a window you will (by definition) have no samples to look at!

Quoted 6 lines · Larry Chen

Hi Sitsofe,
Thanks for your explain.
I found that if latency_target is specified, latency_window must be along with latency_target option.
If not, fio will exit immediately.
Why the case is like that?