Users complain that the site on this server responds slowly. You have not started anything on the machine yourself. Find out what keeps the CPU busy.
What keeps the CPU busy
Run top: it shows the running processes and refreshes the list every three seconds. Look at the summary above the list and at the top row of the list, then quit with q.
First, predict
You started nothing. How many processes will top count in the Tasks line?
Now start the exercise, run the command and compare your prediction with the output.
Which user does the indexer that keeps the CPU busy run as?
-
student is on the top row for top itself, which you started. The indexer row shows another name under USER.
-
Many processes run as root, but not all of them. Look at the USER column on the indexer row.
-
Every process has an account, even one started without you. The USER column shows it.
The USER column on the indexer row says www-data.