/src/usr.bin/systat/ |
bufcache.c | 81 static uint64_t bufmem; variable in typeref:typename:uint64_t 136 if (sysctlnametomib("vm.bufmem", mib, &len) == -1) 137 error("can't get \"vm.bufmem\" mib: %s", 140 len = sizeof(bufmem); 141 if (sysctl(mib, 2, &bufmem, &len, NULL, 0) == -1) 142 error("can't get \"vm.bufmem\": %s", strerror(errno)); 147 pgwidth, nbuf, kbwidth, bufmem / 1024, 148 ((bufmem * 100.0) + 0.5) / getpagesize() / uvmexp.npages); 179 if (nbuf == 0 || bufmem == 0) { 201 (long)(v/1024), 100 * v / bufmem, [all...] |
vmstat.c | 480 static u_long bufmem; local in function:showvmstat 518 size = sizeof(bufmem); 519 if (sysctlbyname("vm.bufmem", &bufmem, &size, NULL, 0) < 0) { 543 putint((int) (bufmem / 1024), MEMROW + 3, MEMCOL + 5, 12); 544 putint((int) ((bufmem * 100) + 0.5) / s.uvmexp.pagesize / s.uvmexp.npages,
|
/src/bin/pax/ |
buf_subs.c | 70 * Need to change bufmem to dynamic allocation when the upper 74 static char bufmem[MAXBLK+BLKMULT]; /* i/o buffer + pushback id space */ variable in typeref:typename:char[] 96 buf = &(bufmem[BLKMULT]); 144 buf = &(bufmem[BLKMULT]); 179 buf = &(bufmem[BLKMULT]);
|
/src/sys/kern/ |
vfs_bio.c | 313 u_long bufmem; variable in typeref:typename:u_long 487 bufmem = 0; 563 if (bufmem < bufmem_lowater) 567 if (bufmem > bufmem_hiwater) 583 (bufmem - bufmem_lowater)) 603 if (bufmem < bufmem_lowater) 606 if (bufmem > bufmem_hiwater) 607 return bufmem - bufmem_hiwater; 615 MIN((bufmem - bufmem_lowater) / 16, pagedemand * PAGE_SIZE))); 1353 if ((bufmem += delta) > bufmem_hiwater) [all...] |