Function report |
Source Code:mm\vmscan.c |
Create Date:2022-07-28 14:19:30 |
| Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:allow_direct_reclaim
Proto:static bool allow_direct_reclaim(pg_data_t *pgdat)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| pg_data_t * | pgdat |
| 3127 | pfmemalloc_reserve = 0 |
| 3128 | free_pages = 0 |
| 3132 | If Number of 'reclaimed == 0' runs >= Maximum number of reclaim retries without progress before the OOM* killer is consider the only way forward. Then Return true |
| 3136 | zone = node_zones[i] |
| 3143 | pfmemalloc_reserve += min_wmark_pages(zone) |
| 3144 | free_pages += zone_page_state(zone, NR_FREE_PAGES) |
| 3148 | If Not pfmemalloc_reserve Then Return true |
| 3151 | wmark_ok = free_pages > pfmemalloc_reserve / 2 |
| 3157 | wake_up_interruptible( & kswapd_wait) |
| 3160 | Return wmark_ok |
| Name | Describe |
|---|---|
| throttle_direct_reclaim | Throttle direct reclaimers if backing storage is backed by the network* and the PFMEMALLOC reserve for the preferred node is getting dangerously* depleted. kswapd will continue to make progress and wake the processes* when the low watermark is reached. |
| balance_pgdat | For kswapd, balance_pgdat() will reclaim pages across a node from zones* that are eligible for use by the caller until at least one zone is* balanced.* Returns the order kswapd finished reclaiming at. |
| 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 |