Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\vmstat.h Create Date:2022-07-28 05:43:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:More accurate version that also considers the currently pending* deltas. For that we need to loop over all cpus to find the current* deltas. There is no synchronization so the result cannot be* exactly accurate either.

Proto:static inline unsigned long zone_page_state_snapshot(struct zone *zone, enum zone_stat_item item)

Type:unsigned long

Parameter:

TypeParameterName
struct zone *zone
enum zone_stat_itemitem
223  x = atomic_long_read( & vm_stat[item])
233  Return x
Caller
NameDescribe
zone_reclaimable_pagesThis misses isolated pages which are not accounted for to save counters.* As the data only determines if reclaim or compaction continues, it is* not expected that isolated pages will be a dominating factor.
zone_watermark_ok_safe
should_reclaim_retryChecks whether it makes sense to retry the reclaim to make a forward progress* for the given allocation request.* We give up when we either have tried MAX_RECLAIM_RETRIES in a row* without success, or when we couldn't even meet the watermark if we