函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-27 15:43:03
Last Modify:2022-05-23 13:41:30 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:shrink_node_memcgs

函数原型:static void shrink_node_memcgs(pg_data_t *pgdat, struct scan_control *sc)

返回类型:void

参数:

类型参数名称
pg_data_t *pgdat
struct scan_control *sc
2645  target_memcg等于* The memory cgroup that hit its limit and as a result is the * primary target of this reclaim invocation.
2648  memcg等于mem_cgroup_iter(target_memcg, NULL, NULL)
2649  循环
2650  lruvec等于mem_cgroup_lruvec - get the lru list vector for a memcg & node*@memcg: memcg of the wanted lruvec* Returns the lru list vector holding pages for a given @memcg &*@node combination. This can be the node lruvec, if the memory* controller is disabled.
2660  继续下一循环
2669  memcg_low_skipped等于1
2670  继续下一循环
2673  退出
2682  退出
2685  reclaimed等于 Number of pages freed so far during a call to shrink_zones()
2686  scanned等于 Incremented by the number of inactive pages that were scanned
2688  shrink_lruvec(lruvec, sc)
2690  shrink_slab - shrink slab caches*@gfp_mask: allocation context*@nid: node whose slab caches to target*@memcg: memory cgroup whose slab caches to target*@priority: the reclaim priority* Call the shrink functions to age shrinkable caches
2694  vmpressure( This context's GFP mask , memcg, TSC's on different sockets may be reset asynchronously.* This may cause the TSC ADJUST value on socket 0 to be NOT 0., Incremented by the number of inactive pages that were scanned - scanned, Number of pages freed so far during a call to shrink_zones() - reclaimed)
2698 memcg等于mem_cgroup_iter(target_memcg, memcg, NULL)循环
调用者
名称描述
shrink_node