Home
last modified time | relevance | path

Searched refs:uvmexp (Results 1 – 25 of 49) sorted by relevance

12

/mirbsd/src/sys/uvm/
Duvm_stat.c211 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 …]
Duvm_pdaemon.c148 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 …]
Duvm_meter.c167 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 …]
Duvm_page.c316 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 …]
Duvm_pglist.c129 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)
Duvm_fault.c307 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 …]
Duvm_page_i.h161 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++;
Duvm_anon.c73 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--;
Duvm_glue.c342 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;
Duvm_init.c60 struct uvmexp uvmexp; /* decl */ variable
79 if (uvmexp.pagesize == 0) { in uvm_init()
Duvm_param.h96 #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 */
Duvm_swap.c282 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 …]
Duvm_extern.h255 struct uvmexp { struct
363 extern struct uvmexp uvmexp; argument
511 uvmexp.kmem_object, (waitok))
Duvm_fault_i.h243 uvmexp.fltrelck++;
256 uvmexp.fltrelckok++;
/mirbsd/src/usr.bin/vmstat/
Dvmstat.c100 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/
Dvmstat.c70 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/
Dprocfs_linux.c75 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/
Drstat_proc.c174 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/
Dparam.h278 # 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/
Dkern_malloc_debug.c243 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()
Dkern_fork.c364 uvmexp.forks++; in fork1()
366 uvmexp.forks_ppwait++; in fork1()
368 uvmexp.forks_sharevm++; in fork1()
/mirbsd/src/sys/miscfs/kernfs/
Dkernfs_vfsops.c196 sbp->f_bsize = uvmexp.pagesize;
197 sbp->f_iosize = uvmexp.pagesize;
198 sbp->f_bfree = physmem - uvmexp.wired;
/mirbsd/src/sys/arch/sparc/sparc/
Damd7930intr.s100 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)]
Dmachdep.c282 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);
Dbsd_fdintr.s172 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)]

12