struct zone {

atomic_long_t vm_stat[NR_VM_ZONE_STAT_ITEMS];

It is the job of memory management to keep the global and zone-specific arrays up-to-date. Of prime interest at this point is how the information is used. To gain a status overview of the entire system, it is necessary to combine the information in the array entries to obtain not only CPU-specific data but the data of the overall system. The kernel provides the auxiliary function global_page_state, which delivers the current value of a particular field of vm_stat:

Continue reading here: Info

Was this article helpful?

0 0