Function report |
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 activity | Download SCCT | Chinese |
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 |
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 |
Name | Describe |
---|---|
start_stop_khugepaged |
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 |