Function report |
Source Code:mm\page-writeback.c |
Create Date:2022-07-28 14:09:44 |
Last Modify:2022-05-23 13:25:58 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__wb_calc_thresh - @wb's share of dirty throttling threshold*@dtc: dirty_throttle_context of interest* Note that balance_dirty_pages() will only seriously take it as a hard limit* when sleeping max_pause per page is not enough to keep the dirty pages under
Proto:static unsigned long __wb_calc_thresh(struct dirty_throttle_control *dtc)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
struct dirty_throttle_control * | dtc |
767 | thresh = dirty threshold |
775 | fprop_fraction_percpu( & Scale the writeback cache size proportional to the relative* writeout speed, wb_completions, & numerator, & denominator) |
778 | wb_thresh = thresh * (100 - di_min_ratio keeps the sum of the minimum dirty shares of all* registered backing devices, which, for obvious reasons, can not* exceed 100%.) / 100 |
780 | wb_thresh = div64_ul(wb_thresh, denominator) |
782 | wb_min_max_ratio(wb, & wb_min_ratio, & wb_max_ratio) |
784 | wb_thresh += thresh * wb_min_ratio / 100 |
785 | If wb_thresh > thresh * wb_max_ratio / 100 Then wb_thresh = thresh * wb_max_ratio / 100 |
788 | Return wb_thresh |
Name | Describe |
---|---|
wb_calc_thresh | |
wb_dirty_limits |
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 |