Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zoneinfo_show_print

Proto:static void zoneinfo_show_print(struct seq_file *m, pg_data_t *pgdat, struct zone *zone)

Type:void

Parameter:

TypeParameterName
struct seq_file *m
pg_data_t *pgdat
struct zone *zone
1564  seq_printf(m, "Node %d, zone %8s", node_id, name)
1565  If is_zone_first_populated(pgdat, zone) Then
1566  seq_printf(m, "\n per-node stats")
1567  When i < NR_VM_NODE_STAT_ITEMS cycle
1572  seq_printf(m, "\n pages free %lu\n min %lu\n low %lu\n high %lu\n spanned %lu\n present %lu\n managed %lu", zone_page_state(zone, First 128 byte cacheline (assuming 64 bit words) ), min_wmark_pages(zone), low_wmark_pages(zone), high_wmark_pages(zone), spanned_pages, present_pages, zone_managed_pages(zone))
1588  seq_printf(m, "\n protection: (%ld", * We don't know if the memory that we're going to allocate will be * freeable or/and it will be released eventually, so to avoid totally * wasting several GB of ram we must reserve some of the lower zone * memory (otherwise we risk to run OOM on the lower [0])
1591  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(* We don't know if the memory that we're going to allocate will be * freeable or/and it will be released eventually, so to avoid totally * wasting several GB of ram we must reserve some of the lower zone * memory (otherwise we risk to run OOM on the lower ) cycle seq_printf(m, ", %ld", * We don't know if the memory that we're going to allocate will be * freeable or/and it will be released eventually, so to avoid totally * wasting several GB of ram we must reserve some of the lower zone * memory (otherwise we risk to run OOM on the lower [i])
1593  seq_putc(m, ')')
1596  If Not Returns true if a zone has memory Then
1597  seq_putc(m, '\n')
1598  Return
1601  When i < NR_VM_ZONE_STAT_ITEMS cycle seq_printf(m, "\n %-12s %lu", zone_stat_name(i), zone_page_state(zone, i))
1606  When i < NR_VM_NUMA_STAT_ITEMS cycle seq_printf(m, "\n %-12s %lu", numa_stat_name(i), zone_numa_state_snapshot(zone, i))
1611  seq_printf(m, "\n pagesets")
1612  for_each_online_cpu(i)
1615  pageset = per_cpu_ptr(pageset, i)
1616  seq_printf(m, "\n cpu: %i\n count: %i\n high: %i\n batch: %i", i, count, high watermark, emptying needed , chunk size for buddy add/remove )
1630  seq_printf(m, "\n node_unreclaimable: %u\n start_pfn: %lu", Number of 'reclaimed == 0' runs >= Maximum number of reclaim retries without progress before the OOM* killer is consider the only way forward., zone_start_pfn == zone_start_paddr >> PAGE_SHIFT )
1635  seq_putc(m, '\n')