Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Initialise min_free_kbytes

Proto:int __meminit init_per_zone_wmark_min(void)

Type:int

Parameter:Nothing

7830  lowmem_kbytes = 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 * (PAGE_SIZE >> 10)
7831  new_min_free_kbytes = _sqrt - computes the integer square root*@x: integer of which to calculate the sqrt* Computes: floor(sqrt(x))
7833  If new_min_free_kbytes > user_min_free_kbytes Then
7834  min_free_kbytes = new_min_free_kbytes
7835  If min_free_kbytes < 128 Then min_free_kbytes = 128
7837  If min_free_kbytes > 65536 Then min_free_kbytes = 65536
7839  Else
7840  pr_warn("min_free_kbytes is not updated to %d because user defined value %d is preferred\n", new_min_free_kbytes, user_min_free_kbytes)
7843  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.
7844  refresh_zone_stat_thresholds()
7845  setup_per_zone_lowmem_reserve - called whenever* sysctl_lowmem_reserve_ratio changes. Ensures that each zone* has a correct pages reserved value, so an adequate number of* pages are left in the zone after a successful __alloc_pages().
7848  setup_min_unmapped_ratio()
7849  setup_min_slab_ratio()
7852  Return 0