== sanityn test 77z: check TBF global rate mode and per-rule stats ========================================================== 15:29:18 (1776886158) tbf_global_rate=1 ncpts=1 ost.OSS.ost_io.nrs_policies=tbf opcode ost.OSS.ost_io.nrs_tbf_rule=start ost_w opcode={ost_write} rate=20 ost.OSS.ost_io.nrs_tbf_rule=start ost_r opcode={ost_read} rate=20 Verify write rate under TBF global rate control 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100 MiB) copied, 4.86841 s, 21.5 MB/s Write runtime is 5 s, throughput is 20.000000 MiB/s Verify read rate under TBF global rate control 100+0 records in 100+0 records out 104857600 bytes (105 MB, 100 MiB) copied, 4.85871 s, 21.6 MB/s Read runtime is 5 s, throughput is 20.000000 MiB/s Verify TBF rule stats are populated after I/O ost.OSS.ost_io.nrs_tbf_rule: regular_requests: - cpt: 0 rules: - name: ost_r conditions: "opcode={ost_read}" rate: 20 ref: 1 enqueue: 100 dispatch: 100 exhausted: 97 min_used: 0 steal_attempts: 0 tokens_stolen: 0 elapsed_ms: 10124 - name: ost_w conditions: "opcode={ost_write}" rate: 20 ref: 1 enqueue: 100 dispatch: 100 exhausted: 96 min_used: 0 steal_attempts: 0 tokens_stolen: 0 elapsed_ms: 10125 - name: default conditions: "*" rate: 10000 ref: 0 enqueue: 0 dispatch: 0 exhausted: 0 min_used: 0 steal_attempts: 0 tokens_stolen: 0 elapsed_ms: 10125 high_priority_requests: - cpt: 0 rules: - name: ost_r conditions: "opcode={ost_read}" rate: 20 ref: 0 enqueue: 0 dispatch: 0 exhausted: 0 min_used: 0 steal_attempts: 0 tokens_stolen: 0 elapsed_ms: 10124 - name: ost_w conditions: "opcode={ost_write}" rate: 20 ref: 0 enqueue: 0 dispatch: 0 exhausted: 0 min_used: 0 steal_attempts: 0 tokens_stolen: 0 elapsed_ms: 10125 - name: default conditions: "*" rate: 10000 ref: 0 enqueue: 0 dispatch: 0 exhausted: 0 min_used: 0 steal_attempts: 0 tokens_stolen: 0 elapsed_ms: 10125 ost_w dispatch count: 100 ost_r dispatch count: 100 ost_w enqueue count: 100 ost.OSS.ost_io.nrs_tbf_rule=stop ost_r ost.OSS.ost_io.nrs_tbf_rule=stop ost_w ost.OSS.ost_io.nrs_policies=fifo