EXempty Exercise 4. Active Memory Sharing
__ 8. Activate your partition using the Normal_AMS profile
» Your logical partition might still be selected from the last operation. If it is not, click the checkbox in the Select column to select it.
» To activate the partition, access the Operations menu and choose the Activate task.
» On the screen that pops up, be sure to select the Normal_AMS profile. Click the Open a terminal window or console session checkbox, then click OK.
Course materials may not be reproduced in whole or in part
© Copyright IBM Corp. 2010, 2013 Exercise 4. Active Memory Sharing 4-11
EXempty
__ 9. As there is no relationship between a paging device and a logical partition before the first LPAR activation, and because four students use the same shared memory pool, you cannot be sure of which paging device will be used by your partition when it activates. Depending on which partition activates first in your managed system, your partition might not use the device that you created.
__ a. When your partition has finished booting, identify the paging device used by your partition. Use the HMC Shared Memory Pool Management wizard to check the paging device configuration. Record the hdisk name or logical volume name of the paging device assigned to your partition. Your partition is identified by its partition ID number. Paging device name: _____________________
» Go to the Systems Management application on the HMC. Expand the Servers information, then select your managed system.
» Choose Configuration > Virtual Resources > Shared Memory Pool Management from the Tasks menu or from the tasks pad. In the pop-up window, select the Paging Space Device(s) tab.
» Record the Device name associated with your logical partition ID. Here is an example showing the device name (hdisk devices in this example) and the partition ID.
__ 10. Once you see that the LPAR has booted in the console, log in as the root user.
__ a. Use the lparstat AIX command with the -i option and view the available memory information. Check for the Memory Mode, the I/O Memory Entitlement, the Variable Memory Capacity Weight value, and the physical memory size in the shared memory pool. Use the main page for lpartstat if you have questions about the output of this command.
» Log in to your partition and run lparstat -i. The output shows the memory settings for your partition.
» Identify the Memory Mode, the I/O Memory Entitlement, the variable Memory Capacity Weight value, and the physical memory size in the shared memory pool.
Course materials may not be reproduced in whole or in part
© Copyright IBM Corp. 2010, 2013 Exercise 4. Active Memory Sharing 4-13
EXempty » Example of lparstat -i output:
lparstat -i
-Power Saving Mode : Disabled __ b. Perform the lparstat command to get statistics about the I/O memory
entitlement for your shared memory partition. What is the value of the I/O entitled memory for your LPAR? ________MB.
» I/O memory entitlement can be seen using the lparstat -m command. lparstat command example and its output that shows 77 MB of I/O entitled memory:
# lparstat -m
System configuration: lcpu=4 mem=1536MB mpsz=4.00GB iome=77.00MB iomp=9 ent=0.35
physb hpi hpit pmem iomin iomu iomf iohwm iomaf %entc vcsw - - - - 0.00 3318 2171 1.11 23.7 12.0 53.3 12.7 0 0.0 147943 __ c. How would you get detailed statistics about I/O memory pools?
» I/O memory pool statistics can be seen using the lparstat -me command. Here is an lparstat command output example:
# lparstat -me
System configuration: lcpu=4 mem=1536MB mpsz=4.00GB iome=77.00MB iomp=9 ent=0.35
physb hpi hpit pmem iomin iomu iomf iohwm iomaf %entc vcsw - - - - 0.00 3318 2171 1.11 23.7 12.0 53.3 12.7 0 0.0 180276 iompn: iomin iodes iomu iores iohwm iomaf
ent0.txpool 2.12 16.00 2.00 2.12 2.00 0 ent0.rxpool__4 4.00 16.00 3.50 4.00 3.50 0 ent0.rxpool__3 4.00 16.00 2.00 4.00 2.00 0 ent0.rxpool__2 2.50 5.00 2.00 2.50 2.00 0 ent0.rxpool__1 0.84 2.25 0.75 0.84 0.75 0 ent0.rxpool__0 1.59 4.25 1.50 1.59 1.50 0
Course materials may not be reproduced in whole or in part
© Copyright IBM Corp. 2010, 2013 Exercise 4. Active Memory Sharing 4-15
EXempty » When your partition is idle, the sum of the pmem and loan values is equal to the logical memory size of the partition.
__ e. Using the HMC, dynamically add 512 MB of memory to your LPAR. Then run the vmstat -h command with no interval count again. What do you observe about the pmem and loan column values?
» The loan value increases as the overall logical memory size increases. Without any memory load on your LPAR, your logical partition working set is completely backed by physical memory in the shared pool, so your LPAR operating system can loan logical memory to the PHYP. That is why the loan column value increased. Depending on the memory activity on the other LPARs, the pmem value can fluctuate on your LPAR.
» Here is an example vmstat -h command output:
# vmstat -h
__ f. The topas cross-partition view (topas -C) can be used to get statistics on the shared memory pool and shared memory partitions. On your shared memory partition, issue topas -C. The cross-partition panel should appear showing the partitions.
__ g. Wait for topas to find the other LPARs. Then, to display the Memory Pool panel from the CEC Panel, press the m key. This panel displays the statistics of all of the memory pools in the system (at this time we have only one memory pool).
» Here is example topas command output:
__ h. Display the partitions associated with the shared memory pool by selecting the shared memory pool (move the cursor to highlight it) and press the f key. You can look at the logical memory that is used for each partition (memu column) and the logical memory loaned to hypervisor by each LPAR (meml column). Consult the topas main page for more informations about this panel and columns.
Keep this topas panel running while performing the next step.
» Here is a example of an example topas output showing the partitions using the shared memory pool:
Course materials may not be reproduced in whole or in part
© Copyright IBM Corp. 2010, 2013 Exercise 4. Active Memory Sharing 4-17
EXempty » The mem, memu, and meml values change according to the logical memory size in the partition.