[BACK]Return to uvm_meter.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / uvm

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/uvm/uvm_meter.c between version 1.77 and 1.78

version 1.77, 2020/05/23 23:42:44 version 1.78, 2020/06/11 19:20:47
Line 107  sysctl_vm_uvmexp2(SYSCTLFN_ARGS)
Line 107  sysctl_vm_uvmexp2(SYSCTLFN_ARGS)
         u.pagemask = uvmexp.pagemask;          u.pagemask = uvmexp.pagemask;
         u.pageshift = uvmexp.pageshift;          u.pageshift = uvmexp.pageshift;
         u.npages = uvmexp.npages;          u.npages = uvmexp.npages;
         u.free = uvm_availmem();          u.free = uvm_availmem(true);
         u.active = active;          u.active = active;
         u.inactive = inactive;          u.inactive = inactive;
         u.paging = uvmexp.paging;          u.paging = uvmexp.paging;
Line 390  uvm_total(struct vmtotal *totalp)
Line 390  uvm_total(struct vmtotal *totalp)
         /*          /*
          * Calculate object memory usage statistics.           * Calculate object memory usage statistics.
          */           */
         freepg = uvm_availmem();          freepg = uvm_availmem(true);
         uvm_estimatepageable(&active, NULL);          uvm_estimatepageable(&active, NULL);
         totalp->t_free = freepg;          totalp->t_free = freepg;
         totalp->t_vm = uvmexp.npages - freepg + uvmexp.swpginuse;          totalp->t_vm = uvmexp.npages - freepg + uvmexp.swpginuse;
Line 457  uvm_update_uvmexp(void)
Line 457  uvm_update_uvmexp(void)
   
         cpu_count_sync_all();          cpu_count_sync_all();
   
         uvmexp.free = (int)uvm_availmem();          uvmexp.free = (int)uvm_availmem(true);
         uvmexp.zeropages = (int)cpu_count_get(CPU_COUNT_ZEROPAGES);          uvmexp.zeropages = (int)cpu_count_get(CPU_COUNT_ZEROPAGES);
         uvmexp.cpuhit = (int)cpu_count_get(CPU_COUNT_CPUHIT);          uvmexp.cpuhit = (int)cpu_count_get(CPU_COUNT_CPUHIT);
         uvmexp.cpumiss = (int)cpu_count_get(CPU_COUNT_CPUMISS);          uvmexp.cpumiss = (int)cpu_count_get(CPU_COUNT_CPUMISS);

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78

CVSweb <webmaster@jp.NetBSD.org>