Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\vmscan.c Create Date:2022-07-28 14:18:05
Last Modify:2022-05-23 13:41:30 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static __always_inline void update_lru_sizes(struct lruvec *lruvec, enum lru_list lru, unsigned long *nr_zone_taken)

Type:void

Parameter:

TypeParameterName
struct lruvec *lruvec
enum lru_listlru
unsigned long *nr_zone_taken
1616  When zid < MAX_NR_ZONES cycle
1617  If Not nr_zone_taken[zid] Then Continue
1620  __update_lru_size(lruvec, lru, zid, - nr_zone_taken[zid])
1622  mem_cgroup_update_lru_size(lruvec, lru, zid, - nr_zone_taken[zid])
Caller
NameDescribe
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