aboutsummaryrefslogtreecommitdiff
path: root/procps/vmstat.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* vmstat: fix I/O, int and ctxt rates: need to be divided by secondsbusyboxDenys Vlasenko4 days1-5/+8
| | | | | | | function old new delta vmstat_main 657 708 +51 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vmstat: fixes for >4TB memory and long sampling intervalsDenys Vlasenko4 days1-39/+75
| | | | | | | | | | | function old new delta load_row 661 1061 +400 vmstat_main 561 657 +96 .rodata 106716 106746 +30 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 526/0) Total: 526 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vmstat: fix "vmstat N 0" to act compatibly (do not print infinitely)Denys Vlasenko5 days1-5/+12
| | | | | | | function old new delta vmstat_main 559 561 +2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vmstat: smarter handling of header re-printingDenys Vlasenko5 days1-23/+30
| | | | | | | | | | function old new delta vmstat_main 230 559 +329 print_row 340 - -340 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 329/-340) Total: -11 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vmstat: show shorter, human-readable accumulating counts if they grow largeDenys Vlasenko5 days1-13/+29
| | | | | | | | | | function old new delta print_row 247 340 +93 .rodata 106717 106716 -1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 93/-1) Total: 92 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vmstat: reduce the chances of misaligned columnsDenys Vlasenko6 days1-8/+26
| | | | | | | function old new delta print_row 215 247 +32 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* vmstat: code shrinkDenys Vlasenko6 days1-28/+39
| | | | | | | | | | | function old new delta load_row 667 661 -6 next_col 105 59 -46 coldescs 239 146 -93 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-145) Total: -145 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* procps: new applet: vmstatDavid Leonard6 days1-0/+483
Adds a compact vmstat applet that matches the default behaviour of procps's vmstat. function old new delta load_row - 667 +667 .rodata 106441 106717 +276 coldescs - 239 +239 vmstat_main - 230 +230 print_row - 215 +215 next_col - 105 +105 find_col - 78 +78 packed_usage 35828 35868 +40 applet_names 2849 2856 +7 applet_main 1640 1644 +4 applet_install_loc 205 206 +1 ------------------------------------------------------------------------------ (add/remove: 7/0 grow/shrink: 5/0 up/down: 1862/0) Total: 1862 bytes Signed-off-by: David Leonard <d+busybox@adaptive-enterprises.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>