Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\workingset.c Create Date:2022-07-28 14:33:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:workingset_init

Proto:static int __init workingset_init(void)

Type:int

Parameter:Nothing

579  BUILD_BUG_ON - break compile if a condition is true(BITS_PER_LONG < Double CLOCK lists* Per node, two clock lists are maintained for file pages: the* inactive and the active list. Freshly faulted pages start out at* the head of the inactive list and page reclaim scans pages from the* tail)
587  timestamp_bits = BITS_PER_LONG - Double CLOCK lists* Per node, two clock lists are maintained for file pages: the* inactive and the active list. Freshly faulted pages start out at* the head of the inactive list and page reclaim scans pages from the* tail
588  max_order = fls_long(totalram_pages() - 1)
589  If max_order > timestamp_bits Then Eviction timestamps need to be able to cover the full range of* actionable refaults. However, bits are tight in the xarray* entry, and after storing the identifier for the lruvec there might* not be enough left to represent every single actionable refault = max_order - timestamp_bits
591  pr_info("workingset: timestamp_bits=%d max_order=%d bucket_order=%u\n", timestamp_bits, max_order, Eviction timestamps need to be able to cover the full range of* actionable refaults. However, bits are tight in the xarray* entry, and after storing the identifier for the lruvec there might* not be enough left to represent every single actionable refault)
594  ret = Add a shrinker callback to be called from the vm.
595  If ret Then Go to err
597  ret = __list_lru_init( & Shadow entries reflect the share of the working set that does not* fit into memory, so their number depends on the access pattern of* the workload, true, & Our list_lru->lock is IRQ-safe as it nests inside the IRQ-safe* i_pages lock., & workingset_shadow_shrinker)
599  If ret Then Go to err_list_lru
601  register_shrinker_prepared( & workingset_shadow_shrinker)
602  Return 0
603  err_list_lru :
604  free_prealloced_shrinker( & workingset_shadow_shrinker)
605  err :
606  Return ret