Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:10:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Scheduled by try_charge() to be executed from the userland return path* and reclaims memory over the high limit.
Proto:void mem_cgroup_handle_over_high(void)
Type:void
Parameter:Nothing
2308 | nr_pages = memcg_nr_pages_over_high |
2311 | If Value is more likely to compile time(!nr_pages) Then Return |
2315 | reclaim_high(memcg, nr_pages, GFP_KERNEL) |
2316 | memcg_nr_pages_over_high = 0 |
2330 | usage = page_counter_read( & Accounted resources ) |
2340 | clamped_high = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(high, 1UL) |
2356 | penalty_jiffies = penalty_jiffies * nr_pages / size of first charge trial. "32" comes from vmscan.c's magic value.* TODO: maybe necessary to use big numbers in big irons. |
2371 | If penalty_jiffies <= HZ / 100 Then Go to out |
2383 | out : |
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 |