Function report |
Source Code:mm\vmpressure.c |
Create Date:2022-07-28 16:15:26 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:vmpressure() - Account memory pressure through scanned/reclaimed ratio*@gfp: reclaimer's gfp mask*@memcg: cgroup memory controller handle*@tree: legacy subtree mode*@scanned: number of pages scanned*@reclaimed: number of pages reclaimed* This function
Proto:void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree, unsigned long scanned, unsigned long reclaimed)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
gfp_t | gfp | |
struct mem_cgroup * | memcg | |
bool | tree | |
unsigned long | scanned | |
unsigned long | reclaimed |
267 | If Not scanned Then Return |
270 | If tree Then |
272 | scanned = tree_scanned += scanned |
273 | tree_reclaimed += reclaimed |
279 | Else |
283 | If Not memcg || memcg == root_mem_cgroup Then Return |
291 | Return |
296 | level = vmpressure_calc_level(scanned, reclaimed) |
298 | If level > VMPRESSURE_LOW Then |
307 | socket_pressure = jiffies + HZ |
Name | Describe |
---|---|
shrink_node | |
vmpressure_prio | vmpressure_prio() - Account memory pressure through reclaimer priority level*@gfp: reclaimer's gfp mask*@memcg: cgroup memory controller handle*@prio: reclaimer's priority* This function should be called from the reclaim path every time when |
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 |