201-450 practice question 6 of 25

Which of the following tools are used to measure memory usage? (Choose THREE correct answers.)

Full set: 161 questions
Answer options
A: mpstat
B: pstree
C: sar Correct answer
D: top Correct answer
E: vmstat Correct answer
Correct Answer:
C. sar; D. top; E. vmstat
Explanation

The tools sar, top, and vmstat are standard Linux utilities for monitoring system performance and resource utilization. sar (System Activity Reporter) can provide detailed reports on memory and swap usage over time using the -r and -S flags. top offers a real-time, interactive dashboard of system processes, which includes a summary of physical and virtual memory usage. vmstat (Virtual Memory Statistics) is specifically designed to report on memory, showing statistics for free, buffered, and cached memory, as well as swap activity.

Why Incorrect

A. mpstat is used to report processor-related statistics, such as CPU utilization, not memory usage.
B. pstree displays running processes as a tree, showing parent-child relationships, but does not provide memory metrics.

References

1. vmstat(8) Linux manual page. Section: "DESCRIPTION". It states, "vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity."

2. sar(1) Linux manual page. Section: "DESCRIPTION". It notes that sar can report on "Paging statistics" (-B), "Memory and swap space utilization statistics" (-r and -S).

3. top(1) Linux manual page. Section: "DESCRIPTION". It describes top as providing a "dynamic real-time view of a running system," which includes memory and swap information in its summary area.

Scroll to Top