函数逻辑报告 |
Source Code:mm\vmscan.c |
Create Date:2022-07-27 15:42:55 |
Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:shrink_lruvec
函数原型:static void shrink_lruvec(struct lruvec *lruvec, struct scan_control *sc)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct lruvec * | lruvec | |
struct scan_control * | sc |
2464 | nr_reclaimed等于0 |
2488 | blk_start_plug( & plug) |
2496 | nr_to_scan等于两数取小(nr[lru], SWAP_CLUSTER_MAX) |
2497 | nr[lru]减等于nr_to_scan |
2499 | nr_reclaimed加等于shrink_list(lru, nr_to_scan, lruvec, sc) |
2504 | cond_resched() |
2506 | 如果nr_reclaimed小于nr_to_reclaim或scan_adjusted则继续下一循环 |
2516 | nr_file等于nr[LRU_INACTIVE_FILE]加nr[LRU_ACTIVE_FILE] |
2517 | nr_anon等于nr[LRU_INACTIVE_ANON]加nr[LRU_ACTIVE_ANON] |
2532 | percentage等于nr_anon乘100除scan_target |
2533 | 否则 |
2537 | percentage等于nr_file乘100除scan_target |
2542 | nr[lru + LRU_ACTIVE]等于0 |
2549 | nr_scanned等于targets[lru]减nr[lru] |
2550 | nr[lru]等于targets[lru]乘100减percentage的差除100 |
2553 | lru加等于LRU_ACTIVE |
2554 | nr_scanned等于targets[lru]减nr[lru] |
2555 | nr[lru]等于targets[lru]乘100减percentage的差除100 |
2558 | scan_adjusted = true |
2560 | blk_finish_plug( & plug) |
名称 | 描述 |
---|---|
shrink_node_memcgs | |
mem_cgroup_shrink_node | Only used by soft limit reclaim. Do not reuse for anything else. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |