Monitoring Performace - Lab
Exercises
Lab preperation
Create the /tmp/perf_test script as below.
#!/bin/sh
while :
do
echo "this_is_a_test_this_is_a_test_this_is_a_test_this_is_a_test">>/tmp/$$
sleep 50
done
Then issue this command to allow this script to execute:
# chmod +x /tmp/perf_test
Exercise 1: Reviewing the ps command output.
- Run the perf_test script, in the background.
# /tmp/perf_test &
- Execute the ps command with appropriate options to determine the
process on your system which has accumlated the most CPU time.
- Identify the process ID of the process for perf_test.
Exercise 2: Measuring Input/Output performance.
- Execute the command iostat or osview if using IRIX,
to determine the average kilobytes per second for the boot drive
on your system.
Exercise 3: Looking at memory usages
- Determine the amount of real and virtual memory
available on this system.
- Execute the command vmstat 5 or osview if using IRIX,
and determine the number of page in's occuring on your system.
Exercise 4: Using the kill command
- Terminate the perf_test process.
Exercise 5: Monitoring the Ethernet traffic
- From your workstation, use ftp to login to edcert21
copy a file from the remote system to the local system and
determine the network throughput for the transfer.
- Determine the percentage of collisions, since the last reboot,
for the Ethernet interface on your workstation.