Re: [PATCH] blk-throttle: set default latency baseline for harddisk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 06/06/2017 01:40 PM, Shaohua Li wrote:
> From: Shaohua Li <shli@xxxxxx>
> 
> hard disk IO latency varies a lot depending on spindle move. The latency
> range could be from several microseconds to several milliseconds. It's
> pretty hard to get the baseline latency used by io.low.
> 
> We will use a different stragety here. The idea is only using IO with
> spindle move to determine if cgroup IO is in good state. For HD, if io
> latency is small (< 1ms), we ignore the IO. Such IO is likely from
> sequential IO, and is helpless to help determine if a cgroup's IO is
> impacted by other cgroups. With this, we only account IO with big
> latency. Then we can choose a hardcoded baseline latency for HD (4ms,
> which is typical IO latency with seek).  With all these settings, the
> io.low latency works for both HD and SSD.

I think that makes sense for reads - a quick read is certainly a cache
hit, due to a sequential IO hit. But what about for writes? Most are
absorbed by the write cache, so most will be < 1ms probably. Let's say
an app is doing random writes, the one write we do account will
potentially come at a much higher cost than the actual cost of that one
write. Simiarly for sequential writes, but the ratio of costs is closer
there.

Maybe that's OK?

-- 
Jens Axboe




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux