[EdCert previous] [EdCert next] [EdCert top]

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.

  1. Run the perf_test script, in the background.
    # /tmp/perf_test &
    
  2. Execute the ps command with appropriate options to determine the process on your system which has accumlated the most CPU time.
  3. Identify the process ID of the process for perf_test.

Exercise 2: Measuring Input/Output performance.

  1. 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

  1. Determine the amount of real and virtual memory available on this system.
  2. 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

  1. Terminate the perf_test process.

Exercise 5: Monitoring the Ethernet traffic

  1. 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.
  2. Determine the percentage of collisions, since the last reboot, for the Ethernet interface on your workstation.



[EdCert previous] [EdCert next] [EdCert top]