Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Returns true if there is an eligible zone balanced for the request order* and classzone_idx

Proto:static bool pgdat_balanced(pg_data_t *pgdat, int order, int classzone_idx)

Type:bool

Parameter:

TypeParameterName
pg_data_t *pgdat
intorder
intclasszone_idx
3439  mark = -1
3446  When i <= classzone_idx cycle
3447  zone = node_zones + i
3449  If Not Returns true if a zone has pages managed by the buddy allocator.* All the reclaim decisions have to use this function rather than* populated_zone(). If the whole zone is reserved then we can easily* end up with populated_zone() && !managed_zone(). Then Continue
3452  mark = high_wmark_pages(zone)
3453  If zone_watermark_ok_safe(zone, order, mark, classzone_idx) Then Return true
3462  If mark == -1 Then Return true
3465  Return false
Caller
NameDescribe
prepare_kswapd_sleepPrepare kswapd for sleeping. This verifies that there are no processes* waiting in throttle_direct_reclaim() and that watermarks have been met.* Returns true if kswapd is ready to sleep
balance_pgdatFor kswapd, balance_pgdat() will reclaim pages across a node from zones* that are eligible for use by the caller until at least one zone is* balanced.* Returns the order kswapd finished reclaiming at.
wakeup_kswapdA zone is low on free memory or too fragmented for high-order memory