函数逻辑报告 |
Source Code:mm\vmpressure.c |
Create Date:2022-07-27 17:50:00 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:void vmpressure(gfp_t gfp, struct mem_cgroup *memcg, bool tree, unsigned long scanned, unsigned long reclaimed)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
gfp_t | gfp | |
struct mem_cgroup * | memcg | |
bool | tree | |
unsigned long | scanned | |
unsigned long | reclaimed |
267 | 如果非scanned则返回 |
270 | 如果tree则 |
271 | 加自旋锁 |
272 | scanned等于tree_scanned加等于scanned |
273 | tree_reclaimed加等于reclaimed |
274 | 自旋锁解锁 |
279 | 否则 |
283 | 如果非memcg或memcg恒等于root_mem_cgroup则返回 |
286 | 加自旋锁 |
290 | 自旋锁解锁 |
291 | 返回 |
294 | 自旋锁解锁 |
298 | 如果level大于VMPRESSURE_LOW则 |
307 | socket_pressure等于jiffies加HZ |
名称 | 描述 |
---|---|
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 |
shrink_node_memcgs |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |