Basic Monitoring Tools

Key Goals

  • Monitor our system performance

Content

  • The procps-ng package:
    • free
    • df
    • top
    • vmstat
    • pgrep
    • pkill
    • pmap
    • ps
    • skill
    • slabtop
    • tload
    • uptime
    • vmstat
    • w & who
    • watch

Exercises

  1. Use the rpm tool to list all the tools that the procps-ng package installs (at /usr/bin).
  2. List the available RAM in GB.
  3. List the file system usage.
  4. List all the pids of the sshd daemon.
  5. Explain the ‘pmap $$’ output.
  6. Which command enables you to view the number of cpus on your machine?
  7. Run: uptime, explain the 3 seaction of the load avarage.
  8. If i got 4 cpus on the machine and the load_avarage equals to 0.1, 2.5, 5.8, am i queuing cpu requests?
  9. Run: cat /proc/uptime, exaplain what each column represents.
  10. Using watch run uptime and refresh the output every 3 seconds.
  11. Scenario:
    1. Use a virtual machine with 1 cpu.
    2. Run tload
    3. On a new shell, start compressing all the content of /usr/share/doc using bzip.
    4. When the cpu starts queuing tasks?