Skip to content
holzkohlengrill edited this page Dec 15, 2023 · 3 revisions

Log system information with dstat

Shows/Saves some periodic stats of your system.

Installation

sudo apt-get install dstat

Usage

dstat -t -l --cpu --cpufreq -mds --top-cpu --top-cputime --top-mem --top-oom --noheaders --output nr-infra-event-queue--log.csv

Options

  • -t: enable date/time output
  • -l: load averages (1min, 5min, 15min)
  • --cpu: CPU stats [%]
  • --cpufreq: CPU in percent per core
  • -m: memory (used, free, buff, ...)
  • -d: disk usage
  • -s: swap
  • --noheaders: no repeating headers
  • --output <filename>.csv: output log to .csv
  • -f 1800: frequency in seconds
  • -T, --epoch: enable time counter (seconds since epoch)
Clone this wiki locally