Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-28 15:08:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__zone_pcp_update

Proto:static void __zone_pcp_update(struct zone *zone)

Type:void

Parameter:

TypeParameterName
struct zone *zone
7982  for_each_possible_cpu(cpu)
7983  pageset_set_high_and_batch(zone, per_cpu_ptr(pageset, cpu))
Caller
NameDescribe
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.