[dm-devel] [PATCH v6 1/1] multipath-tools: Prioritizer based on a latency algorithm
Yang Feng
philip.yang at huawei.com
Thu Jun 22 02:05:16 UTC 2017
Hi Christophe,
OK, thanks a lot.
Regards,
Yang
---
On 2017/6/21 18:22, Christophe Varoqui wrote:
> This version is now merged.
> Thanks.
>
> Incremental enhancements can go from there if needed.
>
> On Wed, Jun 21, 2017 at 11:40 AM, Yang Feng <philip.yang at huawei.com <mailto:philip.yang at huawei.com>> wrote:
>
> libmultipath/prioritizers: Prioritizer for device mapper multipath,
> where the corresponding priority values of specific paths are provided
> by a latency algorithm on the logarithmic scale. And the latency algorithm
> is dependent on the following arguments(io_num and base_num).
> The principle of the algorithm is illustrated as follows:
> 1. By sending a certain number "io_num" of read IOs to the current
> path continuously, the IOs' average latency can be calculated.
> 2. Max average latency value is 100s, and min value is 1us. According
> to the average latency of each path and the "base_number" of logarithmic
> scale, the priority "rc" of each path can be provided.
>
> For example: If base_num=10, the paths will be grouped in priority groups
> with path latency <=1us, (1us, 10us], (10us, 100us], (100us, 1ms], (1ms, 10ms],
> (10ms, 100ms], (100ms, 1s], (1s, 10s], (10s, 100s], >100s. As follows:
>
> <=1us (1us, 10us] (10us, 100us] >100s
> |------------------|------------------|------------------|...|------------------|
> | priority rank 9 | priority rank 8 | priority rank 7 |...| priority rank 0 |
> |------------------|------------------|------------------|...|------------------|
> Priority Rank Partitioning
>
> Signed-off-by: Yang Feng <philip.yang at huawei.com <mailto:philip.yang at huawei.com>>
> Reviewed-by: Benjamin Marzinski <bmarzins at redhat.com <mailto:bmarzins at redhat.com>>
> Reviewed-by: Martin Wilck <mwilck at suse.com <mailto:mwilck at suse.com>>
> Reviewed-by: Xose Vazquez Perez <xose.vazquez at gmail.com <mailto:xose.vazquez at gmail.com>>
> Reviewed-by: Hannes Reinecke <hare at suse.de <mailto:hare at suse.de>>
> ---
> libmultipath/prio.h | 1 +
> libmultipath/prioritizers/Makefile | 4 +
> libmultipath/prioritizers/path_latency.c | 257 +++++++++++++++++++++++++++++++
> multipath/multipath.conf.5 | 20 +++
> 4 files changed, 282 insertions(+)
> create mode 100644 libmultipath/prioritizers/path_latency.c
>
---
More information about the dm-devel
mailing list