Spdk/scripts/rpc
GangCao 05b43152b2 QoS/Bdev: add RPC support for Read/Write separate bandwidth limits
This patch adds the RPC support for the Read/Write separate
bandwidth limit controls. The basic usage as following:

usage:
rpc.py set_bdev_qos_limit [-h] [--rw_ios_per_sec RW_IOS_PER_SEC]
                               [--rw_mbytes_per_sec RW_MBYTES_PER_SEC]
                               [--r_mbytes_per_sec R_MBYTES_PER_SEC]
                               [--w_mbytes_per_sec W_MBYTES_PER_SEC]
                               name

positional arguments:
  name       Blockdev name to set QoS. Example: Malloc0

optional arguments:
  -h, --help show this help message and exit
  --rw_ios_per_sec RW_IOS_PER_SEC
             R/W IOs per second limit (>=10000, example: 20000).
             0 means unlimited.
  --rw_mbytes_per_sec RW_MBYTES_PER_SEC
             R/W megabytes per second limit (>=10, example: 100).
             0 means unlimited.
  --r_mbytes_per_sec R_MBYTES_PER_SEC
             Read megabytes per second limit (>=10, example: 100).
             0 means unlimited.
  --w_mbytes_per_sec W_MBYTES_PER_SEC
             Write megabytes per second limit (>=10, example: 100).
             0 means unlimited.

Change-Id: I822ec4814d21adff9826ce03a6af3783b1b98f44
Signed-off-by: GangCao <gang.cao@intel.com>
Reviewed-on: https://review.gerrithub.io/c/417650
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-01-22 23:21:43 +00:00
..
__init__.py lib/trace: add 3 RPC method for tpoint_group_mask 2018-12-14 21:29:12 +00:00
app.py scripts: fix executable attribute for includes 2018-09-18 16:34:45 +00:00
bdev.py QoS/Bdev: add RPC support for Read/Write separate bandwidth limits 2019-01-22 23:21:43 +00:00
client.py scripts/rpc: increment JSON RPC request id between calls 2018-12-05 00:42:37 +00:00
ioat.py copy/ioat: Add scan_ioat_copy_engine RPC 2018-06-14 03:54:42 +00:00
iscsi.py scripts: fix executable attribute for includes 2018-09-18 16:34:45 +00:00
log.py log: remove "trace" from log flag RPCs 2018-12-03 19:50:15 +00:00
lvol.py lvol: exposed marking lvol bdev as read only 2019-01-18 19:02:36 +00:00
nbd.py scripts: fix executable attribute for includes 2018-09-18 16:34:45 +00:00
net.py scripts: fix executable attribute for includes 2018-09-18 16:34:45 +00:00
nvme.py scripts/rpc.py: add method "get_nvme_controllers" 2018-10-25 17:26:25 +00:00
nvmf.py nvmf_rpc: add control for rdma buffer cache size 2019-01-18 16:57:37 +00:00
pmem.py scripts: fix executable attribute for includes 2018-09-18 16:34:45 +00:00
subsystem.py scripts: fix executable attribute for includes 2018-09-18 16:34:45 +00:00
trace.py lib/trace: add 3 RPC method for tpoint_group_mask 2018-12-14 21:29:12 +00:00
vhost.py vhost: rpc: add an optional parameter -n/--name for get_vhost_controllers 2018-10-04 23:33:04 +00:00