函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Reclaim/compaction is used for high-order allocation requests. It reclaims* order-0 pages before compacting the zone. should_continue_reclaim() returns* true if more pages should be reclaimed such that when the page allocator

函数原型:static inline bool should_continue_reclaim(struct pglist_data *pgdat, unsigned long nr_reclaimed, struct scan_control *sc)

返回类型:bool

参数:

类型参数名称
struct pglist_data *pgdat
unsigned longnr_reclaimed
struct scan_control *sc
2599  如果非Use reclaim/compaction for costly allocs or under memory pressure 则返回:false
2612  如果非nr_reclaimed则返回:false
2616 z小于等于 The highest zone to isolate pages for reclaim from 循环
2617  zone等于包含了结点中各内存域的数据结构[z]
2618  如果非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().则继续下一循环
2622  :compaction_suitable(zone, Allocation order , 0, The highest zone to isolate pages for reclaim from )恒等于COMPACT_SUCCESS
2624  返回:false
2625  默认
2635  pages_for_compaction等于Number of free order-0 pages that should be available above given watermark* to make sure compaction has reasonable chance of not running out of free* pages that it needs to isolate as migration target during its work.
2636  inactive_lru_pages等于node_page_state(pgdat, NR_INACTIVE_FILE)
2637  如果get_nr_swap_pages()大于0则inactive_lru_pages加等于node_page_state(pgdat, NR_INACTIVE_ANON)
2640  返回:inactive_lru_pages大于pages_for_compaction
调用者
名称描述
shrink_node