函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:The inactive anon list should be small enough that the VM never has* to do too much work.* The inactive file list should be small enough to leave most memory* to the established workingset on the scan-resistant active list,

函数原型:static bool inactive_is_low(struct lruvec *lruvec, enum lru_list inactive_lru)

返回类型:bool

参数:

类型参数名称
struct lruvec *lruvec
enum lru_listinactive_lru
2211  active_lru等于inactive_lruLRU_ACTIVE
2216  inactive等于lruvec_page_state(lruvec, NR_LRU_BASE + inactive_lru)
2217  active等于lruvec_page_state(lruvec, NR_LRU_BASE + active_lru)
2219  gb等于inactiveactive右移30减PAGE_SHIFT determines the page size
2220  如果gbinactive_ratio等于_sqrt - computes the integer square root*@x: integer of which to calculate the sqrt* Computes: floor(sqrt(x))
2222  否则inactive_ratio等于1
2225  返回:inactiveinactive_ratio小于active
调用者
名称描述
shrink_lruvec
shrink_node
age_active_anon