Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:khugepaged_init

Proto:int __init khugepaged_init(void)

Type:int

Parameter:Nothing

354  mm_slot_cache = kmem_cache_create - Create a cache.*@name: A string which is used in /proc/slabinfo to identify this cache.*@size: The size of objects to be created in this cache.*@align: The required alignment for the objects.*@flags: SLAB flags
357  If Not mm_slot_cache Then Return -ENOMEM
360  default scan 8*512 pte (or vmas) every 30 second = HPAGE_PMD_NR * 8
361  default collapse hugepages if there is at least one pte mapped like* it would have happened if the vma was large enough during page* fault. = HPAGE_PMD_NR - 1
362  khugepaged_max_ptes_swap = HPAGE_PMD_NR / 8
364  Return 0
Caller
NameDescribe
hugepage_init