ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 54 - XK0-005 discussion

Report
Export

A Linux administrator is troubleshooting the root cause of a high CPU load and average.

Which of the following commands will permanently resolve the issue?

A.
renice -n -20 6295
Answers
A.
renice -n -20 6295
B.
pstree -p 6295
Answers
B.
pstree -p 6295
C.
iostat -cy 1 5
Answers
C.
iostat -cy 1 5
D.
kill -9 6295
Answers
D.
kill -9 6295
Suggested answer: D

Explanation:

The command that will permanently resolve the issue of high CPU load and average is kill -9 6295.

This command will send a SIGKILL signal to the process with the PID 6295, which is the process that is consuming 99.7% of the CPU according to the top output. The SIGKILL signal will terminate the process immediately and free up the CPU resources. The kill command is used to send signals to processes by PID or name.

The other options are not correct commands for resolving this issue. The renice -n -20 6295 command will change the priority (niceness) of the process with PID 6295 to -20, which is the highest priority possible. This will make the process more CPU-intensive, not less. The renice command is used to change the priority of running processes. The pstree -p 6295 command will show a tree of processes with PID 6295 as the root. This will not affect the CPU load or average, but only display information. The pstree command is used to display a tree of processes. The iostat -cy 1 5 command will show CPU and disk I/O statistics for 5 iterations with an interval of 1 second. This will also not affect the CPU load or average, but only display information. The iostat command is used to report CPU and I/O statistics. Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 11: Troubleshooting Linux Systems; kill(1) - Linux manual page; renice(1) - Linux manual page; pstree(1) -Linux manual page; iostat(1) - Linux manual page

asked 02/10/2024
Diego Beltran
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first