Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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,

Proto:static bool inactive_is_low(struct lruvec *lruvec, enum lru_list inactive_lru)

Type:bool

Parameter:

TypeParameterName
struct lruvec *lruvec
enum lru_listinactive_lru
2211  active_lru = inactive_lru + LRU_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 = inactive + active >> 30 - PAGE_SHIFT determines the page size
2220  If gb Then inactive_ratio = _sqrt - computes the integer square root*@x: integer of which to calculate the sqrt* Computes: floor(sqrt(x))
2222  Else inactive_ratio = 1
2225  Return inactive * inactive_ratio < active
Caller
NameDescribe
shrink_lruvec
shrink_node
age_active_anon