Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:A direct reclaimer may isolate SWAP_CLUSTER_MAX pages from the LRU list and* then get rescheduled

Proto:static int too_many_isolated(struct pglist_data *pgdat, int file, struct scan_control *sc)

Type:int

Parameter:

TypeParameterName
struct pglist_data *pgdat
intfile
struct scan_control *sc
1798  If current_is_kswapd() Then Return 0
1801  If Not writeback_throttling_sane - is the usual dirty throttling mechanism available?*@sc: scan_control in question* The normal page dirty throttling mechanism in balance_dirty_pages() is* completely broken with the legacy memcg and direct stalling in* Then Return 0
1804  If file Then
1805  inactive = node_page_state(pgdat, NR_INACTIVE_FILE)
1806  isolated = node_page_state(pgdat, NR_ISOLATED_FILE)
1807  Else
1808  inactive = node_page_state(pgdat, NR_INACTIVE_ANON)
1809  isolated = node_page_state(pgdat, NR_ISOLATED_ANON)
1817  If ( This context's GFP mask & (DOC: Reclaim modifiers* Reclaim modifiers* ~~~~~~~~~~~~~~~~~* %__GFP_IO can start physical IO.* %__GFP_FS can call down to the low-level FS. Clearing the flag avoids the* allocator recursing into the filesystem which might already be holding* locks. | __GFP_FS)) == (DOC: Reclaim modifiers* Reclaim modifiers* ~~~~~~~~~~~~~~~~~* %__GFP_IO can start physical IO.* %__GFP_FS can call down to the low-level FS. Clearing the flag avoids the* allocator recursing into the filesystem which might already be holding* locks. | __GFP_FS) Then inactive >>= 3
1820  Return isolated > inactive
Caller
NameDescribe
shrink_inactive_listshrink_inactive_list() is a helper for shrink_node(). It returns the number* of reclaimed pages