函数逻辑报告 |
Source Code:mm\vmscan.c |
Create Date:2022-07-27 15:42:38 |
| Last Modify:2022-05-23 13:41:30 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:The inactive anon list should be small enough that the VM never has* to do too much work.* The inactive file list should be small enough to leave most memory* to the established workingset on the scan-resistant active list,
函数原型:static bool inactive_is_low(struct lruvec *lruvec, enum lru_list inactive_lru)
返回类型:bool
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct lruvec * | lruvec | |
| enum lru_list | inactive_lru |
| 2211 | active_lru等于inactive_lru加LRU_ACTIVE |
| 2216 | inactive等于lruvec_page_state(lruvec, NR_LRU_BASE + inactive_lru) |
| 2217 | active等于lruvec_page_state(lruvec, NR_LRU_BASE + active_lru) |
| 2219 | gb等于inactive加active右移30减PAGE_SHIFT determines the page size 位 |
| 2220 | 如果gb则inactive_ratio等于_sqrt - computes the integer square root*@x: integer of which to calculate the sqrt* Computes: floor(sqrt(x)) |
| 2222 | 否则inactive_ratio等于1 |
| 2225 | 返回:inactive乘inactive_ratio小于active |
| 名称 | 描述 |
|---|---|
| shrink_lruvec | |
| shrink_node | |
| age_active_anon |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |