LFCS · Question #437
Which of the following tools are used to measure memory usage? (Select THREE correct answers.)
The correct answer is C. sar D. top E. vmstat. This question asks to identify three command-line tools commonly used in Linux/Unix environments to measure system memory usage.
Question
Options
- Ampstat
- Bpstree
- Csar
- Dtop
- Evmstat
How the community answered
(46 responses)- A4% (2)
- B2% (1)
- C93% (43)
Why each option
This question asks to identify three command-line tools commonly used in Linux/Unix environments to measure system memory usage.
`mpstat` (multiprocessor statistics) is primarily used for reporting processor-related statistics for individual CPUs or cores, not for detailed memory usage.
`pstree` displays running processes as a tree, showing process relationships, but it does not provide quantitative measurements of resource usage like memory.
`sar` (System Activity Reporter) collects, reports, and saves system activity information, including detailed memory statistics such as used memory, free memory, swap usage, and buffer/cache memory.
`top` provides a real-time, dynamic view of running processes, displaying their individual memory consumption (resident set size, virtual memory size) as well as overall system memory and swap usage.
`vmstat` (virtual memory statistics) reports comprehensive information about processes, memory (including free, buffer, cache, swap), paging activity, and CPU usage, making it excellent for assessing memory bottlenecks.
Concept tested: Linux system monitoring tools (memory)
Source: https://man7.org/linux/man-pages/man1/sar.1.html
Topics
Community Discussion
No community discussion yet for this question.