Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Update NUMA hit/miss statistics* Must be called with interrupts disabled.

Proto:static inline void zone_statistics(struct zone *preferred_zone, struct zone *z)

Type:void

Parameter:

TypeParameterName
struct zone *preferred_zone
struct zone *z
3184  local_stat = allocation from local node
3187  If Not static_branch_likely( & vm_numa_stat_key) Then Return
3190  If zone_to_nid(z) != Returns the number of the current Node. Then local_stat = allocation from other node
3193  If zone_to_nid(z) == zone_to_nid(preferred_zone) Then __inc_numa_state(z, allocated in intended node )
3195  Else
3196  __inc_numa_state(z, allocated in non intended node )
3197  __inc_numa_state(preferred_zone, was intended here, hit elsewhere )
3199  __inc_numa_state(z, local_stat)
Caller
NameDescribe
rmqueue_pcplistLock and remove page from the per-cpu list
rmqueueAllocate a page from the given zone. Use pcplists for order-0 allocations.