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); |