Function report |
Source Code:mm\vmscan.c |
Create Date:2022-07-28 14:19:44 |
| Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Returns true if there is an eligible zone balanced for the request order* and classzone_idx
Proto:static bool pgdat_balanced(pg_data_t *pgdat, int order, int classzone_idx)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| pg_data_t * | pgdat | |
| int | order | |
| int | classzone_idx |
| 3439 | mark = -1 |
| 3446 | When i <= classzone_idx cycle |
| 3447 | zone = node_zones + i |
| 3452 | mark = high_wmark_pages(zone) |
| 3453 | If zone_watermark_ok_safe(zone, order, mark, classzone_idx) Then Return true |
| 3462 | If mark == -1 Then Return true |
| 3465 | Return false |
| Name | Describe |
|---|---|
| prepare_kswapd_sleep | Prepare kswapd for sleeping. This verifies that there are no processes* waiting in throttle_direct_reclaim() and that watermarks have been met.* Returns true if kswapd is ready to sleep |
| 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. |
| wakeup_kswapd | A zone is low on free memory or too fragmented for high-order memory |
| 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 |