Function report |
Source Code:mm\page_alloc.c |
Create Date:2022-07-28 15:08:08 |
| 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_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().
Proto:static void setup_per_zone_lowmem_reserve(void)
Type:void
Parameter:Nothing
| 7694 | When j < MAX_NR_ZONES cycle |
| 7695 | zone = node_zones + j |
| 7696 | managed_pages = zone_managed_pages(zone) |
| 7704 | idx-- |
| 7705 | lower_zone = node_zones + idx |
| 7710 | Else |
| 7714 | managed_pages += zone_managed_pages(lower_zone) |
| 7720 | alculate_totalreserve_pages - called when sysctl_lowmem_reserve_ratio* or min_free_kbytes changes. |
| Name | Describe |
|---|---|
| init_per_zone_wmark_min | Initialise min_free_kbytes |
| lowmem_reserve_ratio_sysctl_handler | lowmem_reserve_ratio_sysctl_handler - just a wrapper around* proc_dointvec() so that we can call setup_per_zone_lowmem_reserve()* whenever sysctl_lowmem_reserve_ratio changes.* The reserve ratio obviously has absolutely no relation with the |
| 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 |