You are investigating a performance complaint that only some CPU cores are heavily loaded on a 16-core Linux server. To confirm the imbalance you want three snapshots, one second apart, that show CPU-utilization statistics for every individual core as well as the overall average. Which single mpstat command meets these requirements?
mpstat accepts an interval followed by an optional count. Supplying the value 1 3 causes mpstat to print three reports at one-second intervals. The -P ALL option instructs mpstat to include each processor and the aggregated "all" line in every report. Together, mpstat -P ALL 1 3 prints the per-core and system-wide utilization you need, exactly three times, one second apart.
The other commands fail at least one requirement:
Using -P 1 3 shows statistics only for CPU 1 (no system average and no other cores).
Invoking mpstat 1 omits per-CPU lines and runs continuously until interrupted.
mpstat -u -P ALL outputs per-core data but, without an interval/count, produces only a single snapshot since boot time.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the '-P ALL' option in mpstat do?
Open an interactive chat with Bash
What happens if you provide only '1' as an argument to mpstat?
Open an interactive chat with Bash
Why is 'mpstat -u -P ALL' insufficient for this scenario?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access