Function report |
Source Code:mm\vmscan.c |
Create Date:2022-07-28 14:18:36 |
Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:shrink_active_list
Proto:static void shrink_active_list(unsigned long nr_to_scan, struct lruvec *lruvec, struct scan_control *sc, enum lru_list lru)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | nr_to_scan | |
struct lruvec * | lruvec | |
struct scan_control * | sc | |
enum lru_list | lru |
2018 | LIST_HEAD(l_inactive) |
2020 | reclaim_stat = reclaim_stat |
2022 | nr_rotated = 0 |
2023 | file = is_file_lru(lru) |
2024 | pgdat = lruvec_pgdat(lruvec) |
2026 | lru_add_drain() |
2033 | __mod_node_page_state(pgdat, NR_ISOLATED_ANON + file, nr_taken) |
2034 | recent_scanned[file] += nr_taken |
2036 | __count_vm_events(PGREFILL, nr_scanned) |
2042 | cond_resched() |
2043 | page = lru_to_page( & l_hold) |
2061 | nr_rotated += hpage_nr_pages(page) |
2077 | ClearPageActive(page) |
2078 | SetPageWorkingset(page) |
2102 | __mod_node_page_state(pgdat, NR_ISOLATED_ANON + file, - nr_taken) |
2105 | mem_cgroup_uncharge_list( & l_active) |
2106 | free_unref_page_list( & l_active) |
2107 | trace_mm_vmscan_lru_shrink_active(node_id, nr_taken, nr_activate, nr_deactivate, nr_rotated, Scan (total_size >> priority) pages at once , file) |
Name | Describe |
---|---|
shrink_list | |
shrink_lruvec | |
age_active_anon |
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 |