Function report |
Source Code:mm\vmscan.c |
Create Date:2022-07-28 14:19:19 |
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 compaction should go ahead for a costly-order request, or* the allocation would already succeed without compaction. Return false if we* should reclaim first.
Proto:static inline bool compaction_ready(struct zone *zone, struct scan_control *sc)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct zone * | zone | |
struct scan_control * | sc |
2894 | suitable = compaction_suitable(zone, Allocation order , 0, The highest zone to isolate pages for reclaim from ) |
2895 | If suitable == COMPACT_SUCCESS Then Return true |
2898 | If suitable == COMPACT_SKIPPED Then Return false |
2913 | Return zone_watermark_ok_safe(zone, 0, watermark, The highest zone to isolate pages for reclaim from ) |
Name | Describe |
---|---|
shrink_zones | This is the direct reclaim path, for page-allocating processes. We only* try to reclaim pages from zones which will satisfy the caller's allocation* request.* If a zone is deemed to be full of pinned pages then just give it a light |
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 |