Forrest logo
back to the dstat tool

dstat:tldr:10086

dstat: Display CPU and memory statistics only.
$ dstat --cpu --mem
try on your machine

The command "dstat --cpu --mem" is used to monitor the CPU and memory usage statistics in a system.

  • "dstat" is a command-line tool that provides real-time system resource monitoring like CPU, memory, disk usage, network activity, etc.
  • "--cpu" is an option that tells dstat to display the CPU statistics. This includes information such as the percentage of CPU usage, the number of processes in different states (running, sleeping, etc.), interrupts per second, context switches, and more.
  • "--mem" is an option that tells dstat to display the memory statistics. This includes information such as the total memory, used memory, free memory, buffer memory, cache memory, and swap usage.

When you execute the command "dstat --cpu --mem", it will continuously display updated statistics for CPU and memory usage until you manually stop it. This can be helpful in monitoring system performance and identifying any potential performance bottlenecks related to CPU or memory utilization.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the dstat tool