Deleted Added
full compact
vmstat.c (7348) vmstat.c (7351)
1/*-
2 * Copyright (c) 1983, 1989, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 280 unchanged lines hidden (view full) ---

289 mvprintw(PAGEROW + 2, PAGECOL, "count");
290 mvprintw(PAGEROW + 3, PAGECOL, "pages");
291
292 mvprintw(INTSROW, INTSCOL + 3, " Interrupts");
293 mvprintw(INTSROW + 1, INTSCOL + 9, "total");
294
295 mvprintw(VMSTATROW + 0, VMSTATCOL + 10, "cow");
296 mvprintw(VMSTATROW + 1, VMSTATCOL + 10, "zfod");
1/*-
2 * Copyright (c) 1983, 1989, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 280 unchanged lines hidden (view full) ---

289 mvprintw(PAGEROW + 2, PAGECOL, "count");
290 mvprintw(PAGEROW + 3, PAGECOL, "pages");
291
292 mvprintw(INTSROW, INTSCOL + 3, " Interrupts");
293 mvprintw(INTSROW + 1, INTSCOL + 9, "total");
294
295 mvprintw(VMSTATROW + 0, VMSTATCOL + 10, "cow");
296 mvprintw(VMSTATROW + 1, VMSTATCOL + 10, "zfod");
297 mvprintw(VMSTATROW + 2, VMSTATCOL + 10, "objlk");
298 mvprintw(VMSTATROW + 3, VMSTATCOL + 10, "objht");
299 mvprintw(VMSTATROW + 4, VMSTATCOL + 10, "cache");
300 mvprintw(VMSTATROW + 5, VMSTATCOL + 10, "wire");
301 mvprintw(VMSTATROW + 6, VMSTATCOL + 10, "act");
302 mvprintw(VMSTATROW + 7, VMSTATCOL + 10, "inact");
303 mvprintw(VMSTATROW + 8, VMSTATCOL + 10, "free");
304 mvprintw(VMSTATROW + 9, VMSTATCOL + 10, "daefr");
305 mvprintw(VMSTATROW + 10, VMSTATCOL + 10, "prcfr");
306 mvprintw(VMSTATROW + 11, VMSTATCOL + 10, "react");
307 mvprintw(VMSTATROW + 12, VMSTATCOL + 10, "pdwake");
308 mvprintw(VMSTATROW + 13, VMSTATCOL + 10, "pdpgs");
309 mvprintw(VMSTATROW + 14, VMSTATCOL + 10, "intrn");
310 mvprintw(VMSTATROW + 15, VMSTATCOL + 10, "buf");
297 mvprintw(VMSTATROW + 2, VMSTATCOL + 10, "wire");
298 mvprintw(VMSTATROW + 3, VMSTATCOL + 10, "act");
299 mvprintw(VMSTATROW + 4, VMSTATCOL + 10, "inact");
300 mvprintw(VMSTATROW + 5, VMSTATCOL + 10, "cache");
301 mvprintw(VMSTATROW + 6, VMSTATCOL + 10, "free");
302 mvprintw(VMSTATROW + 7, VMSTATCOL + 10, "daefr");
303 mvprintw(VMSTATROW + 8, VMSTATCOL + 10, "prcfr");
304 mvprintw(VMSTATROW + 9, VMSTATCOL + 10, "react");
305 mvprintw(VMSTATROW + 10, VMSTATCOL + 10, "pdwake");
306 mvprintw(VMSTATROW + 11, VMSTATCOL + 10, "pdpgs");
307 mvprintw(VMSTATROW + 12, VMSTATCOL + 10, "intrn");
308 mvprintw(VMSTATROW + 13, VMSTATCOL + 10, "buf");
311
312 mvprintw(GENSTATROW, GENSTATCOL, " Csw Trp Sys Int Sof Flt");
313
314 mvprintw(GRAPHROW, GRAPHCOL,
315 " . %%Sys . %%Intr . %%User . %%Nice . %%Idle");
316 mvprintw(PROCSROW, PROCSCOL, "Proc:r p d s w");
317 mvprintw(GRAPHROW + 1, GRAPHCOL,
318 "| | | | | | | | | | |");

--- 121 unchanged lines hidden (view full) ---

440 putint(pgtokb(total.t_free), MEMROW + 2, MEMCOL + 29, 6);
441 putint(total.t_rq - 1, PROCSROW + 1, PROCSCOL + 3, 3);
442 putint(total.t_pw, PROCSROW + 1, PROCSCOL + 6, 3);
443 putint(total.t_dw, PROCSROW + 1, PROCSCOL + 9, 3);
444 putint(total.t_sl, PROCSROW + 1, PROCSCOL + 12, 3);
445 putint(total.t_sw, PROCSROW + 1, PROCSCOL + 15, 3);
446 PUTRATE(Cnt.v_cow_faults, VMSTATROW + 0, VMSTATCOL + 3, 6);
447 PUTRATE(Cnt.v_zfod, VMSTATROW + 1, VMSTATCOL + 4, 5);
309
310 mvprintw(GENSTATROW, GENSTATCOL, " Csw Trp Sys Int Sof Flt");
311
312 mvprintw(GRAPHROW, GRAPHCOL,
313 " . %%Sys . %%Intr . %%User . %%Nice . %%Idle");
314 mvprintw(PROCSROW, PROCSCOL, "Proc:r p d s w");
315 mvprintw(GRAPHROW + 1, GRAPHCOL,
316 "| | | | | | | | | | |");

--- 121 unchanged lines hidden (view full) ---

438 putint(pgtokb(total.t_free), MEMROW + 2, MEMCOL + 29, 6);
439 putint(total.t_rq - 1, PROCSROW + 1, PROCSCOL + 3, 3);
440 putint(total.t_pw, PROCSROW + 1, PROCSCOL + 6, 3);
441 putint(total.t_dw, PROCSROW + 1, PROCSCOL + 9, 3);
442 putint(total.t_sl, PROCSROW + 1, PROCSCOL + 12, 3);
443 putint(total.t_sw, PROCSROW + 1, PROCSCOL + 15, 3);
444 PUTRATE(Cnt.v_cow_faults, VMSTATROW + 0, VMSTATCOL + 3, 6);
445 PUTRATE(Cnt.v_zfod, VMSTATROW + 1, VMSTATCOL + 4, 5);
448 PUTRATE(Cnt.v_lookups, VMSTATROW + 2, VMSTATCOL + 3, 6);
449 PUTRATE(Cnt.v_hits, VMSTATROW + 3, VMSTATCOL + 3, 6);
450 putint(pgtokb(cnt.v_cache_count), VMSTATROW + 4, VMSTATCOL, 9);
451 putint(pgtokb(cnt.v_wire_count), VMSTATROW + 5, VMSTATCOL, 9);
452 putint(pgtokb(cnt.v_active_count), VMSTATROW + 6, VMSTATCOL, 9);
453 putint(pgtokb(cnt.v_inactive_count), VMSTATROW + 7, VMSTATCOL, 9);
454 putint(pgtokb(cnt.v_free_count), VMSTATROW + 8, VMSTATCOL, 9);
455 PUTRATE(Cnt.v_dfree, VMSTATROW + 9, VMSTATCOL, 9);
456 PUTRATE(Cnt.v_pfree, VMSTATROW + 10, VMSTATCOL, 9);
457 PUTRATE(Cnt.v_reactivated, VMSTATROW + 11, VMSTATCOL, 9);
458 PUTRATE(Cnt.v_pdwakeups, VMSTATROW + 12, VMSTATCOL, 9);
459 PUTRATE(Cnt.v_pdpages, VMSTATROW + 13, VMSTATCOL, 9);
460 PUTRATE(Cnt.v_intrans, VMSTATROW + 14, VMSTATCOL, 9);
461 putint(s.bufspace/1024, VMSTATROW + 15, VMSTATCOL, 9);
446 putint(pgtokb(cnt.v_wire_count), VMSTATROW + 2, VMSTATCOL, 9);
447 putint(pgtokb(cnt.v_active_count), VMSTATROW + 3, VMSTATCOL, 9);
448 putint(pgtokb(cnt.v_inactive_count), VMSTATROW + 4, VMSTATCOL, 9);
449 putint(pgtokb(cnt.v_cache_count), VMSTATROW + 5, VMSTATCOL, 9);
450 putint(pgtokb(cnt.v_free_count), VMSTATROW + 6, VMSTATCOL, 9);
451 PUTRATE(Cnt.v_dfree, VMSTATROW + 7, VMSTATCOL, 9);
452 PUTRATE(Cnt.v_pfree, VMSTATROW + 8, VMSTATCOL, 9);
453 PUTRATE(Cnt.v_reactivated, VMSTATROW + 9, VMSTATCOL, 9);
454 PUTRATE(Cnt.v_pdwakeups, VMSTATROW + 10, VMSTATCOL, 9);
455 PUTRATE(Cnt.v_pdpages, VMSTATROW + 11, VMSTATCOL, 9);
456 PUTRATE(Cnt.v_intrans, VMSTATROW + 12, VMSTATCOL, 9);
457 putint(s.bufspace/1024, VMSTATROW + 13, VMSTATCOL, 9);
462 PUTRATE(Cnt.v_vnodein, PAGEROW + 2, PAGECOL + 5, 5);
463 PUTRATE(Cnt.v_vnodeout, PAGEROW + 2, PAGECOL + 10, 5);
464 PUTRATE(Cnt.v_swapin, PAGEROW + 2, PAGECOL + 17, 5);
465 PUTRATE(Cnt.v_swapout, PAGEROW + 2, PAGECOL + 22, 5);
466 PUTRATE(Cnt.v_vnodepgsin, PAGEROW + 3, PAGECOL + 5, 5);
467 PUTRATE(Cnt.v_vnodepgsout, PAGEROW + 3, PAGECOL + 10, 5);
468 PUTRATE(Cnt.v_swappgsin, PAGEROW + 3, PAGECOL + 17, 5);
469 PUTRATE(Cnt.v_swappgsout, PAGEROW + 3, PAGECOL + 22, 5);

--- 212 unchanged lines hidden ---
458 PUTRATE(Cnt.v_vnodein, PAGEROW + 2, PAGECOL + 5, 5);
459 PUTRATE(Cnt.v_vnodeout, PAGEROW + 2, PAGECOL + 10, 5);
460 PUTRATE(Cnt.v_swapin, PAGEROW + 2, PAGECOL + 17, 5);
461 PUTRATE(Cnt.v_swapout, PAGEROW + 2, PAGECOL + 22, 5);
462 PUTRATE(Cnt.v_vnodepgsin, PAGEROW + 3, PAGECOL + 5, 5);
463 PUTRATE(Cnt.v_vnodepgsout, PAGEROW + 3, PAGECOL + 10, 5);
464 PUTRATE(Cnt.v_swappgsin, PAGEROW + 3, PAGECOL + 17, 5);
465 PUTRATE(Cnt.v_swappgsout, PAGEROW + 3, PAGECOL + 22, 5);

--- 212 unchanged lines hidden ---