Function report |
Source Code:mm\vmscan.c |
Create Date:2022-07-28 14:19:27 |
Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This is the main entry point to direct page reclaim
Proto:static unsigned long do_try_to_free_pages(struct zonelist *zonelist, struct scan_control *sc)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
struct zonelist * | zonelist | |
struct scan_control * | sc |
3042 | retry : |
3043 | delayacct_freepages_start() |
3045 | If Not cgroup_reclaim(sc) Then __count_zid_vm_events(ALLOCSTALL, The highest zone to isolate pages for reclaim from , 1) |
3048 | Do |
3054 | If Number of pages freed so far during a call to shrink_zones() >= How many pages shrink_list() should reclaim Then Break |
3057 | If One of the zones is ready for compaction Then Break |
3066 | When -- Scan (total_size >> priority) pages at once >= 0 cycle |
3068 | last_pgdat = NULL |
3071 | If zone_pgdat == last_pgdat Then Continue |
3073 | last_pgdat = zone_pgdat |
3075 | snapshot_refaults(* The memory cgroup that hit its limit and as a result is the * primary target of this reclaim invocation., zone_pgdat) |
3077 | If cgroup_reclaim(sc) Then |
3086 | delayacct_freepages_end() |
3088 | If Number of pages freed so far during a call to shrink_zones() Then Return Number of pages freed so far during a call to shrink_zones() |
3092 | If One of the zones is ready for compaction Then Return 1 |
3104 | If skipped_deactivate Then |
3112 | If memcg_low_skipped Then |
3121 | Return 0 |
Name | Describe |
---|---|
try_to_free_pages | |
try_to_free_mem_cgroup_pages |
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 |