Preface
• All procedures in this exercise depend on the availability of specific equipment in your classroom.
• All hints are marked by a » sign.
Using the VIOS Performance Advisor tool
__ 1. Log in to your assigned Virtual I/O Server partition and check the software version. It must be at least 2.2.2.1 to continue with this exercise.
» Example command and its expected output:
$ ioslevel 2.2.2.1
__ 2. Use the whence command to find the part tool.
» Example command and its expected output:
$ whence part
/usr/ios/utils/part
__ 3. Now that you have verified that the part tool is available, generate a CPU load in your VIOS partition. Run oem_setup_env and then run two yes commands in the background. Redirect the command output to /dev/null.
» Example commands and expected output with PID:
# yes > /dev/null &
[1] 8978558
# yes > /dev/null &
[2] 8192090
__ 4. Run the part tool for 10 minutes and use the detailed logging level.
» Example command and its expected output:
$ part -i 10 -t 2 &
[1] 10551342
__ 5. Open a second login session to your assigned VIOS partition and run the oem_setup_env command. Run lparstat with a 2 second interval and a count value of 5. You should see some CPU activity.
» Below is an example command and its expected output showing CPU activity. The VIOS is using 1.00 physc. In the system configuration line we see that SMT is set to
four threads and there are four logical processors. This means that the LPAR is configured with one virtual processor, so it is at its maximum processing capacity.
# lparstat 2 5
System configuration: type=Shared mode=Uncapped smt=4 lcpu=4 mem=1024MB psize=4 ent=0.50
%user %sys %wait %idle physc %entc lbusy vcsw phint - - - 91.6 0.8 0.0 7.7 1.00 200.0 50.5 358 2 92.9 0.8 0.0 6.4 1.00 199.9 50.2 425 2 88.8 0.7 0.0 10.5 1.00 199.8 48.5 489 1 88.2 0.7 0.0 11.0 1.00 200.1 51.1 527 2 88.6 0.8 0.0 10.6 1.00 199.9 50.1 497 5 __ 6. Type exit to return to the VIOS command line.
__ 7. While you are waiting for the part command to finish, explore the topas and nmon panels that were covered in the lecture materials. Explore other available
commands from the VIOS command line that were covered in the lecture materials.
Suggested commands include: vmstat, svmon, fcstat, and entstat.
__ 8. When you see the following message in the first login session to the VIOS, the part utility is finished. The filename on your system will be different as it is the hostname followed by the date and time.
part: Reports are successfully generated in lpar1_121210_12_46_16.tar __ 9. When the part utility is finished, look for the filename that was printed to the screen
in the /home/padmin directory.
» Example command and expected output:
$ ls /home/padmin/lpar1*
/home/padmin/lpar1_121210_12_46_16.tar
Course materials may not be reproduced in whole or in part
© Copyright IBM Corp. 2010, 2013 Exercise A. Using the Virtual I/O Server Performance Analysis A-5
AP » Example files and subdirectories:
$ ls lpar1*/*
__ 12. Use the ftp command and copy the entire contents of the new directory to your local PC. If you are using Microsoft Windows, use the Command Prompt window and the ftp tool. If you are on a Linux system, use ftp. Copy the files to a
folder/directory. Follow this procedure to perform these actions:
__ a. Open a session on your local system. This could be a Windows PC that is in your classroom or a personal computer running Linux. When you open the Windows Command Prompt window, it will likely show that the current directory is
C:\Documents and Settings\Administrator or something similar. This is fine.
__ b. Create a directory named vadvisor.
» Example Windows command: mkdir vadvisor
__ c. Change your current directory to the new directory.
» Example Windows command: cd vadvisor __ d. Run ftp to your assigned VIOS partition.
» Example Windows command which lists the VIOS IP address as 10.10.10.10:
ftp 10.10.10.10
__ e. Log in as the padmin user and enter the password when prompted.
__ f. Run the FTP subcommand binary and press Enter.
__ g. Run the FTP subcommand prompt and press Enter.
__ h. Run the FTP subcommand mget followed by the name of the directory, followed by a slash (/) and an asterisk. For example:
mget lpar1_12_12_10_12_46_16/*
__ i. The command will take a moment to run. When it’s finished, type the FTP bye subcommand to close the FTP session.
__ j. List the items in the directory that you created with the dir Windows command.
You should see an filename with the .xml suffix.
__ 13. Use the GUI to navigate to your vadvisor folder/directory. Create a folder in the vadvisor folder/directory called images. Put all of the files that end in .png into that folder/directory.
__ 14. On the Windows or Linux local system, open a browser, then open the XML file in your directory in the browser. An easy way to do this is to use the file explorer and double click on the XML file name.
__ 15. Look at the data available and pay particular attention to the VIOS - CPU panel.
What do you observe?
» Example CPU panel:
» One would expect that the tool to suggested a higher entitled capacity and a higher virtual processor number since the CPU utilization was over 100%. At least the tool highlighted this important area for you to investigate.
Course materials may not be reproduced in whole or in part
© Copyright IBM Corp. 2010, 2013 Exercise A. Using the Virtual I/O Server Performance Analysis A-7
AP
__ 17. Left click on some of the cells in the chart to see help information.
__ 18. Close the browser.
__ 19. Remove the vadvisor folder (or directory) that you created.
__ 20. Let your instructor know that you have completed this exercise.
End of exercise