Function report |
Source Code:block\blk-throttle.c |
Create Date:2022-07-28 17:44:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:throtl_downgrade_check
Proto:static void throtl_downgrade_check(struct throtl_grp *tg)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct throtl_grp * | tg |
2011 | If limit_index != LIMIT_MAX || Not limit_valid[LIMIT_LOW] Then Return |
2014 | If Not list_empty - tests whether a list is empty*@head: the list to test. Then Return |
2019 | elapsed_time = now - last_check_time |
2020 | last_check_time = now |
2022 | If time_before(now, g should not be an intermediate node + throtl_slice) Then Return |
2027 | bps = last_bytes_disp[generic data direction definitions ] * HZ |
2033 | If internally used bytes per second rate limits [WRITE][LIMIT_LOW] Then |
2034 | bps = last_bytes_disp[WRITE] * HZ |
2036 | If bps >= internally used bytes per second rate limits [WRITE][LIMIT_LOW] Then last_low_overflow_time[WRITE] = now |
2040 | If internally used IOPS limits [generic data direction definitions ][LIMIT_LOW] Then |
2041 | iops = last_io_disp[generic data direction definitions ] * HZ / elapsed_time |
2046 | If internally used IOPS limits [WRITE][LIMIT_LOW] Then |
2047 | iops = last_io_disp[WRITE] * HZ / elapsed_time |
2048 | If iops >= internally used IOPS limits [WRITE][LIMIT_LOW] Then last_low_overflow_time[WRITE] = now |
2056 | If throtl_hierarchy_can_downgrade(tg) Then throtl_downgrade_state( throtl_data this group belongs to , LIMIT_LOW) |
2060 | last_bytes_disp[WRITE] = 0 |
2061 | last_io_disp[generic data direction definitions ] = 0 |
2062 | last_io_disp[WRITE] = 0 |
Name | Describe |
---|---|
blk_throtl_bio |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |