Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:set_recommended_min_free_kbytes

Proto:static void set_recommended_min_free_kbytes(void)

Type:void

Parameter:Nothing

2144  nr_zones = 0
2147  do nothing (zone)
2152  If zone_idx() returns 0 for the ZONE_DMA zone, 1 for the ZONE_NORMAL zone, etc.(zone) > gfp_zone(GFP_USER) Then Continue
2155  nr_zones++
2159  recommended_min = pageblock_nr_pages * nr_zones * 2
2167  recommended_min += pageblock_nr_pages * nr_zones * MIGRATE_PCPTYPES * MIGRATE_PCPTYPES
2171  recommended_min = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(recommended_min, (unsignedlong)r_free_buffer_pages - count number of pages beyond high watermark* nr_free_buffer_pages() counts the number of pages which are beyond the high* watermark within ZONE_DMA and ZONE_NORMAL.* Return: number of pages beyond high watermark within ZONE_DMA and / 20)
2173  recommended_min <<= PAGE_SHIFT determines the page size - 10
2175  If recommended_min > min_free_kbytes Then
2176  If user_min_free_kbytes >= 0 Then pr_info("raising min_free_kbytes from %d to %lu to help transparent hugepage allocations\n", min_free_kbytes, recommended_min)
2180  min_free_kbytes = recommended_min
2182  setup_per_zone_wmarks - called when min_free_kbytes changes* or when memory is hot-{added|removed}* Ensures that the watermark[min,low,high] values for each zone are set* correctly with respect to min_free_kbytes.
Caller
NameDescribe
start_stop_khugepaged