Function report |
Source Code:mm\page_alloc.c |
Create Date:2022-07-28 15:08:12 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__setup_per_zone_wmarks
Proto:static void __setup_per_zone_wmarks(void)
Type:void
Parameter:Nothing
7725 | pages_min = min_free_kbytes >> PAGE_SHIFT determines the page size - 10 |
7726 | lowmem_pages = 0 |
7739 | spin_lock_irqsave( & Primarily protects free_area , flags) |
7740 | tmp = pages_min * zone_managed_pages(zone) |
7754 | min_pages = zone_managed_pages(zone) / 1024 |
7757 | Else |
7774 | zone watermarks, access with *_wmark_pages(zone) macros [WMARK_LOW] = min_wmark_pages(zone) + tmp |
7775 | zone watermarks, access with *_wmark_pages(zone) macros [WMARK_HIGH] = min_wmark_pages(zone) + tmp * 2 |
7776 | watermark_boost = 0 |
7782 | alculate_totalreserve_pages - called when sysctl_lowmem_reserve_ratio* or min_free_kbytes changes. |
Name | Describe |
---|---|
setup_per_zone_wmarks | 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. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |