Function report |
Source Code:mm\page-writeback.c |
Create Date:2022-07-28 14:09:52 |
Last Modify:2022-05-23 13:25:58 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Dirty position control
Proto:static void wb_position_ratio(struct dirty_throttle_control *dtc)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct dirty_throttle_control * | dtc |
909 | limit = hard_dirty_limit(dtc_dom(dtc), dirty threshold ) |
918 | pos_ratio = 0 |
920 | If Value for the false possibility is greater at compile time(le_dirty + write + nfs >= limit) Then Return |
929 | pos_ratio = (dirty) := 1 |
959 | If per-wb counterparts < 8 Then |
960 | pos_ratio = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(longlong, pos_ratio * 2, 2 << RATELIMIT_CALC_SHIFT) |
962 | Return |
965 | If per-wb counterparts >= wb_thresh Then Return |
971 | If wb_setpoint == 0 || wb_setpoint == wb_thresh Then Return |
974 | wb_pos_ratio = (dirty) := 1 |
998 | pos_ratio = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(pos_ratio, wb_pos_ratio) |
999 | Return |
1033 | If Value for the false possibility is greater at compile time(wb_thresh > dirty threshold ) Then wb_thresh = dirty threshold |
1042 | wb_thresh = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(wb_thresh, (limit - le_dirty + write + nfs ) / 8) |
1048 | wb_setpoint = setpoint * x >> 16 |
1057 | span = ( dirty threshold - wb_thresh + 8 * write_bw ) * x >> 16 |
1058 | x_intercept = wb_setpoint + span |
1060 | If per-wb counterparts < x_intercept - span / 4 Then |
1063 | Else pos_ratio /= 4 |
1071 | x_intercept = wb_thresh / 2 |
1072 | If per-wb counterparts < x_intercept Then |
1076 | Else pos_ratio *= 8 |
Name | Describe |
---|---|
balance_dirty_pages | alance_dirty_pages() must be called by processes which are generating dirty* data |
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 |