linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* question about the usage of avg_lat in io latency controller
@ 2020-05-26 11:27 xiaohui li
  2020-05-26 16:20 ` Dennis Zhou
  0 siblings, 1 reply; 2+ messages in thread
From: xiaohui li @ 2020-05-26 11:27 UTC (permalink / raw)
  To: dennisszhou; +Cc: linux-block

hi Dennis Zhou and other who are familiar with io latency controller :

i have a question about the io latency controller :
how to configure the min latency value of a blk cgroup ?
using the avg_lat value may be not right.

from the Documentation/admin-guide/cgroup-v2.rst, i know we can do
configuring work in this way:
-------------------
Use the avg_lat value as a basis for
your real setting, setting at 10-15% higher than the value in io.stat
-------------------

but when i have found  the avg_lat value is the total sum of running
average of io latency in the past time, and it can't reflect the
average time cost of per single IO request.
but whether one thread can be throttled depends on the compare result
of stat.mean and iolat->min_lat_nsec.
and stat.mean can reflect the average time cost of per single IO request.

so from above analysis, if do the configuring min io latency value
work of a blk group, use the avg_lat may not be appropriate, because
it is the total sum of running average.
why not make use of the stat.mean to do the configuring min io latency
value work ?

one experiment on my device:
cat io.stat
8:0 rbytes=586723328 wbytes=99248033792 rios=143243 wios=331782
dbytes=0 dios=0 use_delay=12 delay_nsec=0 depth=1 avg_lat=11526
win=800

so the avg_lat value 11526(ns) is so big, it can't be the average time
cost of per single IO request on our device.
so it can not be used for do the configuring min io latency value work.

Maybe I'm not familiar with the io latency controller code.
If any mistake exist in my above analysis, welcome to add your suggestions.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-05-26 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-26 11:27 question about the usage of avg_lat in io latency controller xiaohui li
2020-05-26 16:20 ` Dennis Zhou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).