This patch adds the support of read and write separate bandwidth rate limits control with the configuration file. Below is the example (in MiB) for the configuration section: [QoS] Limit_Read_BPS Malloc0 100 Limit_Write_BPS Nvme0n1 200 Change-Id: I0221516ce70c3fbb07b9e80c1c814ed5ba271c88 Signed-off-by: GangCao <gang.cao@intel.com> Reviewed-on: https://review.gerrithub.io/c/416672 Chandler-Test-Pool: SPDK Automated Test System <sys_sgsw@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@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>
31 lines
592 B
Plaintext
31 lines
592 B
Plaintext
{
|
|
"aliases": [],
|
|
"assigned_rate_limits": {
|
|
"r_mbytes_per_sec": $(N),
|
|
"rw_ios_per_sec": $(N),
|
|
"rw_mbytes_per_sec": $(N),
|
|
"w_mbytes_per_sec": $(N)
|
|
},
|
|
"block_size": $(N),
|
|
"claimed": false,
|
|
"driver_specific": {
|
|
"split": {
|
|
"base_bdev": "Nvme0n1",
|
|
"offset_blocks": $(N)
|
|
}
|
|
},
|
|
"name": "Nvme0n1p0",
|
|
"num_blocks": $(N),
|
|
"product_name": "Split Disk",
|
|
"supported_io_types": {
|
|
"flush": $(S),
|
|
"nvme_admin": $(S),
|
|
"nvme_io": $(S),
|
|
"read": $(S),
|
|
"reset": $(S),
|
|
"unmap": $(S),
|
|
"write": $(S),
|
|
"write_zeroes": $(S)
|
|
}
|
|
}
|