XK0-004 · Question #293
A customer reports a Linux production server is randomly suffering degraded performance. The administrator verifies that the package is installed and enabled on the server. sysstat Which of the follow
The correct answer is C. Analyze the data in /var/log/sa using the sar command.. The sysstat package collects and stores system activity data in /var/log/sa, and the sar command is the proper tool to analyze this historical performance data.
Question
Options
- ACreate a cron job that runs uptime every 15 minutes to collect historical data of the load
- BLeave a ping running overnight from a laptop to the server to catch any latency encountered.
- CAnalyze the data in /var/log/sa using the sar command.
- DOpen a session and run inside of it. Let it run over night and collect the data.
How the community answered
(34 responses)- A3% (1)
- B9% (3)
- C74% (25)
- D15% (5)
Why each option
The sysstat package collects and stores system activity data in /var/log/sa, and the sar command is the proper tool to analyze this historical performance data.
The uptime command only shows load average and system uptime, providing insufficient detail to identify which specific resource - CPU, memory, disk, or network - is causing the degraded performance.
Pinging the server from a laptop only measures network round-trip latency and cannot identify server-side resource bottlenecks such as CPU saturation or memory exhaustion.
The sysstat package automatically collects system performance metrics at regular intervals and stores them in /var/log/sa as binary data files. The sar (System Activity Reporter) command reads these files and can display historical CPU, memory, I/O, and network statistics. This makes it ideal for diagnosing intermittent performance issues that do not occur during active real-time monitoring sessions.
Running a real-time monitoring tool in a terminal session provides only a live snapshot and does not leverage the pre-collected historical data already stored by sysstat, making it less effective for diagnosing random past performance events.
Concept tested: Using sar and sysstat for historical performance analysis
Source: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/performance_tuning_guide/sect-red_hat_enterprise_linux-performance_tuning_guide-performance_monitoring_tools-sysstat
Topics
Community Discussion
No community discussion yet for this question.