Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memcontrol.c Create Date:2022-07-28 16:10:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:reclaim_high

Proto:static void reclaim_high(struct mem_cgroup *memcg, unsigned int nr_pages, gfp_t gfp_mask)

Type:void

Parameter:

TypeParameterName
struct mem_cgroup *memcg
unsigned intnr_pages
gfp_tgfp_mask
2230  Do
2231  If page_counter_read( & Accounted resources ) <= Upper bound of normal memory consumption range Then Continue
2233  memcg_memory_event(memcg, MEMCG_HIGH)
2234  try_to_free_mem_cgroup_pages(memcg, nr_pages, gfp_mask, true)
2235  When memcg = parent_mem_cgroup - find the accounting parent of a memcg*@memcg: memcg whose parent to find* Returns the parent memcg, or NULL if this is the root or the memory* controller is in legacy no-hierarchy mode. cycle
Caller
NameDescribe
high_work_func
mem_cgroup_handle_over_highScheduled by try_charge() to be executed from the userland return path* and reclaims memory over the high limit.