Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:khugepaged_find_target_node

Proto:static int khugepaged_find_target_node(void)

Type:int

Parameter:Nothing

740  last_khugepaged_target_node = NUMA_NO_NODE
741  target_node = 0 , max_value = 0
744  When nid < MAX_NUMNODES cycle If khugepaged_node_load[nid] > max_value Then
746  max_value = khugepaged_node_load[nid]
747  target_node = nid
751  If target_node <= last_khugepaged_target_node Then When nid < MAX_NUMNODES cycle
754  If max_value == khugepaged_node_load[nid] Then
755  target_node = nid
756  Break
759  last_khugepaged_target_node = target_node
760  Return target_node
Caller
NameDescribe
khugepaged_scan_pmd