linux内核文件翻译 dm-queue-length

本文介绍DM-队列长度作为device-mapper的目标之一,该模块是一种路径选择策略,用于选择当前I/O负载最少的路径。文章详细解释了其工作原理、配置参数含义及其在实际场景中的应用。


                              dm-queue-length

中文版维护者: Chinese translated version of Documentation/usb/anchors.txt

If you have any comment or update to the content, please contact the
original document maintainer directly.  However, if you have a problem
communicating in English you can also ask the Chinese maintainer for
help.  Contact the Chinese maintainer if this translation is outdated
or if there is a problem with the translation.

Chinese maintainer: tianyu
---------------------------------------------------------------------
Documentation/usb/anchors.txt 的中文翻译

如果想评论或更新本文的内容,请直接联系原文档的维护者。如果你使用英文
交流有困难的话,也可以向中文版维护者求助。如果本翻译更新不及时或者翻
译存在问题,请联系中文版维护者。

中文版维护者: 田雨
中文版翻译者: 田雨
中文版校译者: 田雨

  1 dm-queue-length
  2 DM-队列长度===============
  3
  4 dm-queue-length is a path selector module for device-mapper targets,
    DM-队列长度是一个路径选择模块的device-mapper目标,
  5 which selects a path with the least number of in-flight I/Os.
    选择一个有最少数目I / O的路径
  6 The path selector name is 'queue-length'.
  7 路径选择的名字是'队列长度
  8
  每个路径表参数:[<repeat_count>]
  9         <repeat_count>: The number of I/Os to dispatch using the selected
 10                         path before switching to the next path.
 11                         If not given, internal default is used. To check
 12                         the default value, see the activated table.
 13                      I / O调度使用选择的
                         路径的数目,然后再切换到下一个路径。
                         如果没有给出,内部使用默认值。要检查
                         的默认值,请参阅激活表。
 14 Status for each path: <status> <fail-count> <in-flight>
 15         <status>: 'A' if the path is active, 'F' if the path is failed.
 16         <fail-count>: The number of path failures.
 17         <in-flight>: The number of in-flight I/Os on the path.
 18              每个路径的状态:<STATUS><fail-count><in-flight>
            <STATUS>:'A',如果路径处于活动状态,'F'如果路径失败。
            <fail-count>:路径故障的数量。
            <in-flight>:在飞行路径上的I / O数量..
 19
 20 Algorithm
 21 =算法========
 22
 23 dm-queue-length increments/decrements 'in-flight' when an I/O is
 24 dispatched/completed respectively.
 25 dm-queue-length selects a path with the minimum 'in-flight'.
    DM-队列长度递增/递减“飞行”时,I / O是
    分别派出/完成。
    分米队列长度选择一个具有最小“在飞行中”的路径。
 26
 27
 28 Examples
 29 示例========
 30 In case that 2 paths (sda and sdb) are used with repeat_count == 128.
 31 的情况下,2路(SDA和SDB)与REPEAT_COUNT==128。
 32 # echo "0 10 multipath 0 0 1 1 queue-length 0 2 1 8:0 128 8:16 128" \
 33   dmsetup create test
 34 #回声“010多径001 1队列长度0218:01288:16128”\
 33 dmsetup的创建测试
 35 # dmsetup table
      dmsetup的表
 36 test: 0 10 multipath 0 0 1 1 queue-length 0 2 1 8:0 128 8:16 128
 37 #测试:010多径001 1队列长度0 2 18:01288:16128

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值