函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-27 15:42:00
Last Modify:2022-05-23 13:41:30 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Update LRU sizes after isolating pages. The LRU size updates must* be complete before mem_cgroup_update_lru_size due to a santity check.

函数原型:static __always_inline void update_lru_sizes(struct lruvec *lruvec, enum lru_list lru, unsigned long *nr_zone_taken)

返回类型:void

参数:

类型参数名称
struct lruvec *lruvec
enum lru_listlru
unsigned long *nr_zone_taken
1616 zid小于MAX_NR_ZONES循环
1617  如果非nr_zone_taken[zid]则继续下一循环
1620  __update_lru_size(lruvec, lru, zid, - nr_zone_taken[zid])
1622  mem_cgroup_update_lru_size(lruvec, lru, zid, - nr_zone_taken[zid])
调用者
名称描述
isolate_lru_pagespgdat->lru_lock is heavily contended. Some of the functions that* shrink the lists perform better by taking out a batch of pages* and working on them outside the LRU lock.* For pagecache intensive workloads, this function is the hottest