函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-27 16:38:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__zone_pcp_update

函数原型:static void __zone_pcp_update(struct zone *zone)

返回类型:void

参数:

类型参数名称
struct zone *zone
7982  遍历可用CPU(cpu)
7983  pageset_set_high_and_batch(zone, per_cpu_ptr(CPU热/冷页帧列表, cpu))
调用者
名称描述
percpu_pagelist_fraction_sysctl_handlerpercpu_pagelist_fraction - changes the pcp->high for each zone on each* cpu. It is the fraction of total pages in each zone that a hot per cpu* pagelist can have before it gets flushed back to buddy allocator.
zone_pcp_updateThe zone indicated has a new number of managed_pages; batch sizes and percpu* page high values need to be recalulated.