Function report |
Source Code:mm\page-writeback.c |
Create Date:2022-07-28 14:10:09 |
| Last Modify:2022-05-23 13:25:58 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__wb_update_bandwidth
Proto:static void __wb_update_bandwidth(struct dirty_throttle_control *gdtc, struct dirty_throttle_control *mdtc, unsigned long start_time, bool update_ratelimit)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct dirty_throttle_control * | gdtc | |
| struct dirty_throttle_control * | mdtc | |
| unsigned long | start_time | |
| bool | update_ratelimit |
| 1352 | elapsed = now - last time write bw is updated |
| 1356 | lockdep_assert_held( & protects the b_* lists ) |
| 1361 | If elapsed < Estimate write bandwidth at 200ms intervals. Then Return |
| 1364 | dirtied = percpu_counter_read( & stat[WB_DIRTIED]) |
| 1365 | written = percpu_counter_read( & stat[WB_WRITTEN]) |
| 1371 | If elapsed > HZ && time_before(last time write bw is updated , start_time) Then Go to snapshot |
| 1374 | If update_ratelimit Then |
| 1375 | domain_update_bandwidth(gdtc, now) |
| 1387 | wb_update_write_bandwidth(wb, elapsed, written) |
| 1389 | snapshot : |
| 1390 | dirtied_stamp = dirtied |
| 1392 | last time write bw is updated = now |
| Name | Describe |
|---|---|
| wb_update_bandwidth | |
| 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 |