LinuxAlternative

Linux · Ferramentas do Sistema

sysstat

Sysstat is a collection of performance monitoring tools for Linux, providing real‑time and historical data on CPU, memory, I/O, and network usage.

Código abertoGrátis
Seja o primeiro a avaliar
Licença
GPL-2.0
Versão mais recente
12.8.0

O que é o sysstat?

Sysstat has been part of the Linux ecosystem since the late 1990s, originally bundled with the kernel source and later distributed as a separate package. It offers a set of command‑line utilities—such as sar, iostat, mpstat, pidstat, and sadf—that collect and report system statistics. The tools are mature, widely used in production environments, and are maintained by the Linux community.

Sysstat is aimed at system administrators, developers, and power users who need detailed insight into system performance. It works entirely from the terminal, so it fits naturally into scripts, cron jobs, and remote SSH sessions.

Compared to Windows utilities like Wise Memory Optimizer, Sysstat is less flashy but far more flexible. It doesn’t offer a GUI, but it can generate logs that can be parsed by other tools or visualized with Grafana, Prometheus, or simple spreadsheets. The learning curve is modest if you’re comfortable with shell commands.

Ideal para: Monitoring and diagnosing system performance over time in a Linux environment.

Principais recursos do sysstat

  • sar – collects and reports CPU, memory, and I/O statistics
  • iostat – reports device and partition I/O statistics
  • mpstat – per‑processor CPU utilization
  • pidstat – per‑process statistics
  • sadf – converts data to CSV, XML, or JSON
  • sadc – saves data for later analysis
  • systat – real‑time system monitor
  • sensors – optional hardware monitoring via lm‑sensors

Prós

  • Free and open source
  • Cross‑platform across major distros
  • Extensible via scripting
  • Provides long‑term data collection
  • No GUI overhead

Contras

  • No graphical interface
  • Requires manual configuration for logging
  • Learning curve for command syntax
  • Limited real‑time visualisation out of the box

Programas do Windows que o sysstat substitui

Como instalar o sysstat no Linux

Ubuntu / Mintsudo apt install sysstat
Debiansudo apt install sysstat
Fedorasudo dnf install sysstat
Arch / Manjarosudo pacman -S sysstat
openSUSEsudo zypper install sysstat

Dicas para quem vem do Windows

When moving from Wise Memory Optimizer, note that Sysstat outputs plain text or CSV; you can redirect sar output to a file and open it in Excel or LibreOffice. Use cron to run sar -o /var/log/sysstat/$(date +%Y%m%d).sa 1 1 to collect hourly data. There is no direct shortcut key, but you can alias sar to a shorter command. Workflow shifts from a GUI wizard to command‑line scripts and log analysis.

sysstat: perguntas frequentes

How do I install sysstat on Ubuntu?

Run sudo apt install sysstat and enable the service with sudo systemctl enable --now sysstat.

Can sysstat monitor memory usage?

Yes, sar -r reports memory and swap statistics; iostat can also show memory usage when combined with -r.

Is there a GUI for sysstat?

Not built‑in; however, you can use third‑party front‑ends like Conky or Grafana dashboards that read sysstat logs.

How do I view historical data?

Use sar -f /var/log/sysstat/$(date +%Y%m%d).sa to read a saved file.

Atualizado em