Front Cover: AIX Internals & Performance IV: I/O Management - Part 2 (Specialized I/O)
Front Cover: AIX Internals & Performance IV: I/O Management - Part 2 (Specialized I/O)
cover
Front cover
Course Exercises Guide
AIX Internals & Performance IV: I/O
Management - Part 2 (Specialized I/O)
Course code AHQV474 ERC 1.1
Trademarks
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business
Machines Corp., registered in many jurisdictions worldwide.
The following are trademarks of International Business Machines Corporation, registered in many
jurisdictions worldwide:
AIX 6™ AIX® DB2®
DS8000® Express® FlashSystem™
GPFS™ IBM FlashSystem® Power Systems™
Power® PowerHA® PowerSC™
PowerVM® POWER6® POWER7+™
POWER7® POWER8® PurePower System™
SystemMirror® Systems Director VMControl™
Intel is a trademark or registered trademark of Intel Corporation or its subsidiaries in the United
States and other countries.
Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.
Java™ and all Java-based trademarks and logos are trademarks or registered trademarks of
Oracle and/or its affiliates.
VMware and the VMware "boxes" logo and design, Virtual SMP and VMotion are registered
trademarks or trademarks (the "Marks") of VMware, Inc. in the United States and/or other
jurisdictions.
Other product and service names might be trademarks of IBM or other companies.
TOC Contents
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
TMK Trademarks
The reader should recognize that the following terms, which appear in the content of this
training document, are official trademarks of IBM or other companies:
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International
Business Machines Corp., registered in many jurisdictions worldwide.
The following are trademarks of International Business Machines Corporation, registered in
many jurisdictions worldwide:
Active Memory™ AIX 6™ AIX®
BladeCenter® DS4000® DS6000™
DS8000® Enterprise Storage Server® POWER Hypervisor™
Power Systems™ Power® PowerVM®
POWER6® POWER7® Storwize®
System Storage®
UNIX is a registered trademark of The Open Group in the United States and other
countries.
Other product and service names might be trademarks of IBM or other companies.
Text highlighting
The following text highlighting conventions are used throughout this book:
Bold Identifies file names, file paths, directories, user names,
principals, menu paths and menu selections. Also identifies
graphical objects such as buttons, labels and icons that the
user selects.
Italics Identifies links to web sites, publication titles, is used where the
word or phrase is meant to stand out from the surrounding text,
and identifies parameters whose actual names or values are to
be supplied by the user.
Monospace Identifies attributes, variables, file listings, SMIT menus, code
examples and command output that you would see displayed
on a terminal, and messages from the system.
Monospace bold Identifies commands, subroutines, daemons, and text the user
would type.
Requirements
In the normal lab environment for this class, each lab team will be
assigned a logical partition (LPAR) on a managed system. The
assigned logical partition should be running AIX 7.1 and should
normally be on a POWER6 or POWER7 processor-based system.
You will not be sitting directly in front of your lab system. Instead, you
will be using your personal PC to connect to your lab system.
Exercise instructions
Preface
This exercise includes information for you to read, and exercise steps for you to
perform. The following examples illustrate the numbered checklist format used to
identify exercise steps:
__ 1. (This is example step one.) Login to ...
__ 2. (This is example step two.) Execute the following ...
Two versions of these instructions are available: one with hints and one without. You
can use either version to complete this exercise (or flip back and forth between the two
versions). In other words, use these two versions of the exercise in whatever way best
aids your learning. Also, please do not hesitate to ask the instructor if you have
questions.
101
19C
59B
4C3
104
106
200
460
462
4B0
10C
492
234
Hypervisor
Thread Event FLIH and
Hook Id Call
Dispatching Management Clock
Interface
100
__ 16. Let your instructor know that you have completed the exercise.
End of exercise
Requirements
In the normal lab environment for this class, each lab team will be
assigned a logical partition (LPAR) on a managed system. The
assigned logical partition should be running AIX 7.1 and should
normally be on a POWER6 or POWER7 processor-based system.
You will not be sitting directly in front of your lab system. Instead, you
will be using your personal PC to connect to your lab system.
© Copyright IBM Corp. 2013 Exercise 2. Possible Disk I/O Configurations 2-1
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
Exercise instructions
Preface
This exercise includes information for you to read, and exercise steps for you to
perform. The following examples illustrate the numbered checklist format used to
identify exercise steps:
__ 1. (This is example step one.) Login to ...
__ 2. (This is example step two.) Execute the following ...
Two versions of these instructions are available: one with hints and one without. You
can use either version to complete this exercise (or flip back and forth between the two
versions). In other words, use these two versions of the exercise in whatever way best
aids your learning. Also, please do not hesitate to ask the instructor if you have
questions.
© Copyright IBM Corp. 2013 Exercise 2. Possible Disk I/O Configurations 2-3
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
© Copyright IBM Corp. 2013 Exercise 2. Possible Disk I/O Configurations 2-5
Course materials may not be reproduced in whole or in part
without the prior written permission of IBM.
Student Exercises
End of exercise
Requirements
In the normal lab environment for this class, each lab team will be
assigned a logical partition (LPAR) on a managed system. The
assigned logical partition should be running AIX 7.1 and should
normally be on a POWER6 or POWER7 processor-based system.
You will not be sitting directly in front of your lab system. Instead, you
will be using your personal PC to connect to your lab system.
Exercise instructions
Preface
This exercise includes information for you to read, and exercise steps for you to
perform. The following examples illustrate the numbered checklist format used to
identify exercise steps:
__ 1. (This is example step one.) Login to ...
__ 2. (This is example step two.) Execute the following ...
Two versions of these instructions are available: one with hints and one without. You
can use either version to complete this exercise (or flip back and forth between the two
versions). In other words, use these two versions of the exercise in whatever way best
aids your learning. Also, please do not hesitate to ask the instructor if you have
questions.
End of exercise
Requirements
In the normal lab environment for this class, each lab team will be
assigned a logical partition (LPAR) on a managed system. The
assigned logical partition should be running AIX 7.1 and should
normally be on a POWER6 or POWER7 processor-based system.
You will not be sitting directly in front of your lab system. Instead, you
will be using your personal PC to connect to your lab system.
Exercise instructions
Preface
This exercise includes information for you to read, and exercise steps for you to
perform. The following examples illustrate the numbered checklist format used to
identify exercise steps:
__ 1. (This is example step one.) Login to ...
__ 2. (This is example step two.) Execute the following ...
Two versions of these instructions are available: one with hints and one without. You
can use either version to complete this exercise (or flip back and forth between the two
versions). In other words, use these two versions of the exercise in whatever way best
aids your learning. Also, please do not hesitate to ask the instructor if you have
questions.
__ 11. What is happening with the direct I/O test to make it so slow?
________________________________________________________________
__ 15. What is happening with the direct I/O tests (DIO and demoted DIO)?
________________________________________________________________
EXempty __ d. The I/O was supposed to be DIO. Were there any demoted DIOs? ________
__ e. What was the most active logical volume? __________________________
__ f. What was the most active logical volume being written? _______________
__ g. What was the most active physical volume? ______________________
__ h. What was the utilization of the most active physical volume?_______________
__ i. For the most active file being written, answer the following questions:
Note: Examine the Detailed File Stats session of the filemon output.
a. How many total bytes were transferred? ________________________
b. What was the write size, and was it consistent? ____________________
c. What was the average write time? __________________________
__ 21. Using the answers from the filemon outputs in the previous steps, fill in the table
below.
filemon1.out filemon2.out
Most active file being written
#wrs
Demoted DIOs?
Most active segment (VSID)
#wpgs
Most active logical volume
util
Most active physical volume
util
Most active file being written
total bytes xfrd
write size (avg)
write msec (avg)
What can you summarize about the differences in the two runs?
________________________________________________
EXempty __ c. How does the number of AIO servers created compare to the minimum and
maximum AIO servers allowed?
__ 41. Once the ndiskaio command finished and if there are no more AIO requests, how
long will all the AIO servers stay active? After that time, how many will remain
active?
__ 42. Change the minimum number of (Legacy AIO) AIO servers to 0.
__ 43. Has the number of active AIO servers been reduced to 0? If not, why not?
__ 44. Change the aio_server_inactivity time to 30 seconds.
__ 45. After 30 seconds, has the number of active AIO servers been reduced to 0 (the
minimum number you set it to in the previous step)?
Part 8 - Comparing JFS2 AIO and JFS2 AIO with CIO accesses
__ 46. If you are not already logged in, login to your assigned system as the root user and
change directory to /home/QV474/ex4.
In this section, you will run a program named ndiskaio that generates AIO
requests. You will do this two times, once for conventional AIO and then again for
AIO using CIO accesses, and then compare the results.
__ 47. In the previous part of the exercise, you set aio_minservers to 0 and
aio_server_inactivity to 30 seconds. You will keep these settings so the
number of AIO servers get set back to 0 after each test. Verify there are no active
AIO servers on the system.
__ 48. Open a second window to your system, login as the root user and run the following
command:
# iostat -A 5
__ 49. In the first window, verify the /aio file system is mounted. If it is not, mount it. Then,
run the following command:
# ./ndiskaio -A -f /aio/bigfile -S -r75 -b4096 -t20 -M20 -X60
__ 50. When the ndiskaio program finishes, stop the iostat -A command in the other
window. Record the following values:
From the ndiskaio output:
Total disk I/O: ___________________________
IO/sec : ___________________________________
MB/sec : __________________________________
From the iostat -A output (Use the interval that has the highest values):
avgc: ___________________________
avfc: ___________________________
maxgc: __________________________
maxfc: _________________________
maxreqs: _______________________
% user: _________________________
% sys: __________________________
% idle: _________________________
% iowait: _______________________
physc: __________________________
% entc: _________________________
End of exercise
backpg
Back page