Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-28 14:19:07
Last Modify:2022-05-23 13:41:30 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:shrink_node_memcgs

Proto:static void shrink_node_memcgs(pg_data_t *pgdat, struct scan_control *sc)

Type:void

Parameter:

TypeParameterName
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  Do
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  Continue
2669  memcg_low_skipped = 1
2670  Continue
2673  Break
2682  Break
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  When memcg = mem_cgroup_iter(target_memcg, memcg, NULL) cycle
Caller
NameDescribe
shrink_node