Red Hat System Administration I: Document Version
Red Hat System Administration I: Document Version
NETLAB Academy Edition, NETLAB Professional Edition, and NETLAB+ are registered trademarks of Network Development Group, Inc.
“Red Hat,” Red Hat Linux, and the Red Hat “Shadowman” logo are trademarks or registered trademarks of Red Hat, Inc. in the US
and other countries.
7.9. Lab: Monitoring and Managing Linux Processes
Contents
Introduction ........................................................................................................................ 3
Outcomes ............................................................................................................................ 3
Lab Topology ....................................................................................................................... 4
Lab Settings ......................................................................................................................... 5
1 Performance Checklist ................................................................................................ 6
Introduction
In this lab, students will locate and manage processes that are using the most resources
on a system.
Outcomes
Performing this lab will provide experience using the top utility as a process
management tool.
Lab Topology
Lab Settings
The information in the table below will be needed in order to complete the lab. The
task sections below provide details on the use of this information.
1 Performance Checklist
Access the graphical login screen of the Server1 virtual machine and log in as student.
The topology includes two virtual machines that are accessible to users. Take care to
perform the tasks as instructed, including using the appropriate virtual machine as
directed.
1. Open a terminal window and run lab processes setup on server1 to prepare
for this exercise.
3. Observe the top display. The default display sorts by CPU utilization, highest first.
What are the processes using the most CPU time?
In addition to the default GNOME shell, find the process named hippo.
4. Change the display to sort by the amount of memory in use by each process.
In addition to the default GNOME shell and Xorg, find a process named
elephant.
6. Turn off the use of bold in the display. Save this configuration for reuse when
top is restarted.
7. Exit top, then restart it again. Confirm that the new display uses the saved
configuration; i.e., the display starts sorted by memory utilization and bold is
turned off.
8. Modify the display to again sort by CPU utilization. Turn on the use of bold.
Observe that only Running or Runnable (state R) process entries are bold. Save
this configuration.
9. Open another terminal window. As root, suspend the hippo process. In top,
observe that the process state is now T.
[student@server1 ~]$ su -
Password: redhat
[root@server1 ~]# pkill –SIGSTOP hippo
10. The hippo process quickly disappears from the display, since it is no longer
actively using CPU resources. List the process information from the command
line to confirm the process state.
12. When finished observing the display, terminate the extra processes using the
command line. Confirm that the processes no longer display in top.
13. Check that the cleanup is successful by running the grading script. If necessary,
find and terminate processes listed by the grading script, and repeat grading.