| /mirbsd/src/sys/uvm/ |
| D | uvm_stat.c | 211 uvmexp.pagesize, uvmexp.pagesize, uvmexp.pagemask, in uvmexp_print() 212 uvmexp.pageshift); in uvmexp_print() 214 uvmexp.npages, uvmexp.active, uvmexp.inactive, uvmexp.wired, in uvmexp_print() 215 uvmexp.free); in uvmexp_print() 217 uvmexp.anonminpct, uvmexp.anonmin, uvmexp.vnodeminpct, in uvmexp_print() 218 uvmexp.vnodemin, uvmexp.vtextminpct, uvmexp.vtextmin); in uvmexp_print() 220 uvmexp.anonpages, uvmexp.vnodepages, uvmexp.vtextpages); in uvmexp_print() 222 "wired-max=%d\n", uvmexp.freemin, uvmexp.freetarg, uvmexp.inactarg, in uvmexp_print() 223 uvmexp.wiredmax); in uvmexp_print() 225 uvmexp.faults, uvmexp.traps, uvmexp.intrs, uvmexp.swtch); in uvmexp_print() [all …]
|
| D | uvm_pdaemon.c | 148 UVM_UNLOCK_AND_WAIT(&uvmexp.free, &uvm.pagedaemon_lock, FALSE, wmsg, 167 uvmexp.freemin = uvmexp.npages / 30; in uvmpd_tune() 171 uvmexp.freemin = max(uvmexp.freemin, (16*1024) >> PAGE_SHIFT); in uvmpd_tune() 172 uvmexp.freemin = min(uvmexp.freemin, (512*1024) >> PAGE_SHIFT); in uvmpd_tune() 175 if (uvmexp.freemin < uvmexp.reserve_kernel + 1) in uvmpd_tune() 176 uvmexp.freemin = uvmexp.reserve_kernel + 1; in uvmpd_tune() 178 uvmexp.freetarg = (uvmexp.freemin * 4) / 3; in uvmpd_tune() 179 if (uvmexp.freetarg <= uvmexp.freemin) in uvmpd_tune() 180 uvmexp.freetarg = uvmexp.freemin + 1; in uvmpd_tune() 184 uvmexp.wiredmax = uvmexp.npages / 3; in uvmpd_tune() [all …]
|
| D | uvm_meter.c | 167 return (sysctl_rdstruct(oldp, oldlenp, newp, &uvmexp, 168 sizeof(uvmexp))); 182 t = uvmexp.anonminpct; 187 if (t + uvmexp.vtextminpct + uvmexp.vnodeminpct > 95 || t < 0) { 190 uvmexp.anonminpct = t; 191 uvmexp.anonmin = t * 256 / 100; 195 t = uvmexp.vtextminpct; 200 if (uvmexp.anonminpct + t + uvmexp.vnodeminpct > 95 || t < 0) { 203 uvmexp.vtextminpct = t; 204 uvmexp.vtextmin = t * 256 / 100; [all …]
|
| D | uvm_page.c | 316 uvmexp.npages++; 343 uvmexp.reserve_pagedaemon = 4; 344 uvmexp.reserve_kernel = 6; 345 uvmexp.anonminpct = 10; 346 uvmexp.vnodeminpct = 10; 347 uvmexp.vtextminpct = 5; 348 uvmexp.anonmin = uvmexp.anonminpct * 256 / 100; 349 uvmexp.vnodemin = uvmexp.vnodeminpct * 256 / 100; 350 uvmexp.vtextmin = uvmexp.vtextminpct * 256 / 100; 374 if (uvmexp.pagesize == 0) in uvm_setpagesize() [all …]
|
| D | uvm_pglist.c | 129 if (uvmexp.free <= (uvmexp.reserve_pagedaemon + uvmexp.reserve_kernel)) 215 uvmexp.free--; 217 uvmexp.zeropages--; 235 if (uvmexp.free + uvmexp.paging < uvmexp.freemin || 236 (uvmexp.free + uvmexp.paging < uvmexp.freetarg && 237 uvmexp.inactive < uvmexp.inactarg)) { 271 uvmexp.free++; 272 if (uvmexp.zeropages < UVM_PAGEZERO_TARGET)
|
| D | uvm_fault.c | 307 uvmexp.fltanget++; 350 uvmexp.fltpgwait++; 383 uvmexp.fltnoram++; 402 uvmexp.pageins++; 458 uvmexp.fltpgrele++; 534 uvmexp.fltanretry++; 585 uvmexp.faults++; /* XXX: locking? */ 678 uvmexp.fltamcopy++; 849 uvmexp.fltnamap++; 925 uvmexp.fltlget++; [all …]
|
| D | uvm_page_i.h | 161 uvmexp.active--; 169 uvmexp.inactive--; 171 uvmexp.wired++; 190 uvmexp.active++; 192 uvmexp.wired--; 211 uvmexp.active--; 220 uvmexp.inactive++; 252 uvmexp.inactive--; 265 uvmexp.active++;
|
| D | uvm_anon.c | 73 int nanon = uvmexp.free - (uvmexp.free / 16); /* XXXCDC ??? */ in uvm_anon_init() 99 uvmexp.nanonneeded += count; 100 needed = uvmexp.nanonneeded - uvmexp.nanon; 123 uvmexp.nanon += needed; 124 uvmexp.nfreeanon += needed; 148 uvmexp.nanonneeded -= count; 164 uvmexp.nfreeanon--; in uvm_analloc() 263 uvmexp.nfreeanon++; 290 uvmexp.swpgonly--;
|
| D | uvm_glue.c | 342 p->p_rlimit[RLIMIT_RSS].rlim_cur = ptoa(uvmexp.free); 390 ++uvmexp.swapins; 448 if (uvmexp.free > atop(USPACE)) { in uvm_scheduler() 452 p->p_pid, p->p_comm, p->p_addr, ppri, uvmexp.free); in uvm_scheduler() 464 p->p_pid, p->p_comm, uvmexp.free); in uvm_scheduler() 469 printf("scheduler: room again, free %d\n", uvmexp.free); in uvm_scheduler() 543 if (didswap == 0 && uvmexp.free <= atop(round_page(USPACE))) { in uvm_swapout_threads() 574 p->p_slptime, uvmexp.free); 590 ++uvmexp.swapouts;
|
| D | uvm_init.c | 60 struct uvmexp uvmexp; /* decl */ variable 79 if (uvmexp.pagesize == 0) { in uvm_init()
|
| D | uvm_param.h | 96 #define PAGE_SIZE uvmexp.pagesize /* size of page */ 97 #define PAGE_MASK uvmexp.pagemask /* size of page - 1 */ 98 #define PAGE_SHIFT uvmexp.pageshift /* bits to shift for pages */
|
| D | uvm_swap.c | 282 uvmexp.nswapdev = 0; in uvm_swap_init() 370 minus = uvmexp.free - npages; in uvm_swap_allocpages() 371 reserve = uvmexp.reserve_kernel; in uvm_swap_allocpages() 372 fail = uvmexp.free - npages < uvmexp.reserve_kernel; in uvm_swap_allocpages() 506 uvmexp.nswapdev++; 536 uvmexp.nswapdev--; 654 UVMHIST_LOG(pdhist, "<- done SWAP_NSWAP=%d", uvmexp.nswapdev, 656 *retval = uvmexp.nswapdev; 1087 uvmexp.swpages += size; 1153 uvmexp.swpages -= sdp->swd_npages; [all …]
|
| D | uvm_extern.h | 255 struct uvmexp { struct 363 extern struct uvmexp uvmexp; argument 511 uvmexp.kmem_object, (waitok))
|
| D | uvm_fault_i.h | 243 uvmexp.fltrelck++; 256 uvmexp.fltrelckok++;
|
| /mirbsd/src/usr.bin/vmstat/ |
| D | vmstat.c | 100 struct uvmexp uvmexp, ouvmexp; variable 385 size = sizeof(struct uvmexp); in dovmstat() 388 if (sysctl(mib, 2, &uvmexp, &size, NULL, 0) < 0) { in dovmstat() 390 bzero(&uvmexp, sizeof(struct uvmexp)); in dovmstat() 393 kread(X_UVMEXP, &uvmexp, sizeof(struct uvmexp)); in dovmstat() 405 #define pgtok(a) ((a) * ((int)uvmexp.pagesize >> 10)) in dovmstat() 408 (void)printf("%5u ", (unsigned)rate(uvmexp.faults - ouvmexp.faults)); in dovmstat() 409 (void)printf("%3u ", (unsigned)rate(uvmexp.pdreact - ouvmexp.pdreact)); in dovmstat() 410 (void)printf("%3u ", (unsigned)rate(uvmexp.pageins - ouvmexp.pageins)); in dovmstat() 412 (unsigned)rate(uvmexp.pdpageouts - ouvmexp.pdpageouts), 0); in dovmstat() [all …]
|
| /mirbsd/src/usr.bin/systat/ |
| D | vmstat.c | 70 struct uvmexp uvmexp; member 408 #define pgtokb(pg) ((pg) * (s.uvmexp.pagesize / 1024)) in showkre() 410 putint(pgtokb(s.uvmexp.active), MEMROW + 2, MEMCOL + 6, 7); in showkre() 411 putint(pgtokb(s.uvmexp.active + s.uvmexp.swpginuse), /* XXX */ in showkre() 413 putint(pgtokb(s.uvmexp.npages - s.uvmexp.free), MEMROW + 3, MEMCOL + 6, 7); in showkre() 414 putint(pgtokb(s.uvmexp.npages - s.uvmexp.free + s.uvmexp.swpginuse), in showkre() 416 putint(pgtokb(s.uvmexp.free), MEMROW + 2, MEMCOL + 24, 7); in showkre() 417 putint(pgtokb(s.uvmexp.free + s.uvmexp.swpages - s.uvmexp.swpginuse), in showkre() 424 PUTRATE(uvmexp.forks, VMSTATROW + 0, VMSTATCOL + 3, 6); in showkre() 425 PUTRATE(uvmexp.forks_ppwait, VMSTATROW + 1, VMSTATCOL + 3, 6); in showkre() [all …]
|
| /mirbsd/src/sys/miscfs/procfs/ |
| D | procfs_linux.c | 75 PGTOB(uvmexp.npages), in procfs_domeminfo() 76 PGTOB(uvmexp.npages - uvmexp.free), in procfs_domeminfo() 77 PGTOB(uvmexp.free), in procfs_domeminfo() 81 PGTOB(uvmexp.swpages), in procfs_domeminfo() 82 PGTOB(uvmexp.swpginuse), in procfs_domeminfo() 83 PGTOB(uvmexp.swpages - uvmexp.swpginuse), in procfs_domeminfo() 84 PGTOKB(uvmexp.npages), in procfs_domeminfo() 85 PGTOKB(uvmexp.free), in procfs_domeminfo() 89 PGTOKB(uvmexp.swpages), in procfs_domeminfo() 90 PGTOKB(uvmexp.swpages - uvmexp.swpginuse)); in procfs_domeminfo()
|
| /mirbsd/src/libexec/rpc.rstatd/ |
| D | rstat_proc.c | 174 struct uvmexp uvmexp; in updatestat() local 233 len = sizeof(uvmexp); in updatestat() 234 if (sysctl(mib, 2, &uvmexp, &len, NULL, 0) < 0) { in updatestat() 238 stats_all.s1.v_pgpgin = uvmexp.fltanget; in updatestat() 239 stats_all.s1.v_pgpgout = uvmexp.pdpageouts; in updatestat() 240 stats_all.s1.v_pswpin = uvmexp.swapins; in updatestat() 241 stats_all.s1.v_pswpout = uvmexp.swapouts; in updatestat() 242 stats_all.s1.v_intr = uvmexp.intrs; in updatestat() 243 stats_all.s2.v_swtch = uvmexp.swtch; in updatestat()
|
| /mirbsd/src/sys/arch/sparc/include/ |
| D | param.h | 278 # define NBPG uvmexp.pagesize 279 # define PGOFSET uvmexp.pagemask 280 # define PGSHIFT uvmexp.pageshift 281 # define PAGE_SIZE uvmexp.pagesize 282 # define PAGE_MASK uvmexp.pagemask 283 # define PAGE_SHIFT uvmexp.pageshift
|
| /mirbsd/src/sys/kern/ |
| D | kern_malloc_debug.c | 243 va = uvm_km_kmemalloc(kmem_map, uvmexp.kmem_object, PAGE_SIZE * 2, in debug_malloc_allocate_free() 252 simple_lock(&uvmexp.kmem_object->vmobjlock); in debug_malloc_allocate_free() 253 pg = uvm_pagealloc(uvmexp.kmem_object, offset, NULL, 0); in debug_malloc_allocate_free() 258 simple_unlock(&uvmexp.kmem_object->vmobjlock); in debug_malloc_allocate_free()
|
| D | kern_fork.c | 364 uvmexp.forks++; in fork1() 366 uvmexp.forks_ppwait++; in fork1() 368 uvmexp.forks_sharevm++; in fork1()
|
| /mirbsd/src/sys/miscfs/kernfs/ |
| D | kernfs_vfsops.c | 196 sbp->f_bsize = uvmexp.pagesize; 197 sbp->f_iosize = uvmexp.pagesize; 198 sbp->f_bfree = physmem - uvmexp.wired;
|
| /mirbsd/src/sys/arch/sparc/sparc/ |
| D | amd7930intr.s | 100 sethi %hi(_C_LABEL(uvmexp)+V_INTR), %l7 101 ld [%l7 + %lo(_C_LABEL(uvmexp)+V_INTR)], %l6 103 st %l6, [%l7 + %lo(_C_LABEL(uvmexp)+V_INTR)]
|
| D | machdep.c | 282 printf("avail mem = %ld\n", ptoa(uvmexp.free)); in cpu_startup() 1006 uvmexp.swtch, uvmexp.traps, uvmexp.syscalls, uvmexp.intrs, 1007 uvmexp.softs, uvmexp.faults);
|
| D | bsd_fdintr.s | 172 sethi %hi(_C_LABEL(uvmexp)+V_INTR), %l7 173 ld [%l7 + %lo(_C_LABEL(uvmexp)+V_INTR)], %l6 175 st %l6, [%l7 + %lo(_C_LABEL(uvmexp)+V_INTR)]
|