Determining the I/O entitled memory for a shared memory partition
After you create a new logical partition that uses shared memory (hereafter referred to as a shared memory partition) or you dynamically add or remove a virtual adapter, you can use memory statistics that are displayed by the Hardware Management Console (HMC) to dynamically increase and decrease the amount of I/O entitled memory assigned to a shared memory partition.
The I/O entitled memory set for a shared memory partition needs to be high enough to ensure the progress of I/O operations, and low enough to ensure adequate memory use among all the shared memory partitions in the shared memory pool.
The operating system manages the I/O entitled memory allocated to a shared memory partition by distributing it among the I/O device drivers. The operating system monitors how the device drivers use the I/O entitled memory, and sends usage data to the HMC. You can view the data in the HMC and dynamically adjust the I/O entitled memory that is assigned to a shared memory partition.
To determine the I/O entitled memory for a shared memory partition, complete the following steps using the HMC:
Examples
Creating a new shared memory partition
- You activate the new shared memory partition. The HMC automatically sets the I/O entitled memory for the shared memory partition.
- After some time, you view the memory statistics and see that the Maximum I/O Entitled Memory Used value is much less than the Assigned I/O Entitled Memory value.
- You dynamically decrease the I/O entitled memory of the shared memory partition to the Maximum I/O Entitled Memory Used value and reset the data collector. (Dynamically decreasing the I/O entitled memory also changes the I/O entitled memory mode to the manual mode.)
- After some time, you view the memory statistics again and determine that the new Maximum I/O Entitled Memory Used value is only slightly less than the new Assigned I/O Entitled Memory value, and no further adjustment is necessary.
Dynamically adding a virtual adapter to a shared memory partition in the auto I/O entitled memory mode
- You dynamically add a virtual adapter to a shared memory partition. The HMC automatically increases the I/O entitled memory that is assigned to the shared memory partition.
- After some time, you view the memory statistics and see that the Maximum I/O Entitled Memory Used value is much less than the Assigned I/O Entitled Memory value.
- You dynamically decrease the I/O entitled memory of the shared memory partition to the Maximum I/O Entitled Memory Used value and reset the data collector. (Dynamically decreasing the I/O entitled memory also changes the I/O entitled memory mode to the manual mode.)
- After some time, you view the memory statistics again and determine that the new Maximum I/O Entitled Memory Used value is only slightly less than the new Assigned I/O Entitled Memory value, and no further adjustment is necessary.
Dynamically adding a virtual adapter to a shared memory partition in the manual I/O entitled memory mode
- You ensure that the shared memory partition has enough I/O entitled memory to accommodate the new adapter by dynamically increasing the I/O entitled memory of the shared memory partition.
- You dynamically add a virtual adapter to the shared memory partition.
- After some time, you view the memory statistics and see that the Maximum I/O Entitled Memory Used value is much less than the Assigned I/O Entitled Memory value.
- You dynamically decrease the I/O entitled memory of the shared memory partition to the Maximum I/O Entitled Memory Used value and reset the data collector.
- After some time, you view the memory statistics again and determine that the new Maximum I/O Entitled Memory Used value is only slightly less than the new Assigned I/O Entitled Memory value, and no further adjustment is necessary.
Dynamically removing a virtual adapter from a shared memory partition
- You dynamically remove a virtual adapter from a shared memory partition. If the I/O entitled memory mode is in the auto mode, the HMC automatically decreases the I/O entitled memory that is assigned to the shared memory partition.
- You reset the data collector.
- After some time, you view the memory statistics and see that the Maximum I/O Entitled Memory Used value is much less than the Assigned I/O Entitled Memory value.
- You dynamically decrease the I/O entitled memory of the shared memory partition to the Maximum I/O Entitled Memory Used value and reset the data collector. (If the I/O entitled memory mode is in the auto mode, dynamically decreasing the I/O entitled memory also changes the I/O entitled memory mode to the manual mode.)
- After some time, you view the memory statistics again and determine that the new Maximum I/O Entitled Memory Used value is only slightly less than the new Assigned I/O Entitled Memory value, and no further adjustment is necessary.
The following example is another way to accomplish this example for AIX shared memory partitions:
- Determine the amount of physical memory that the virtual adapter (that you plan to remove) currently uses by running the lparstat command from the AIX command line.
- If the I/O entitled memory mode is in the auto mode, dynamically change the I/O entitled memory mode to the manual mode by running the chhwres command from the HMC command line.
- Using the HMC graphical interface, dynamically remove the virtual adapter.
- Using the HMC graphical interface, dynamically decrease the I/O entitled memory that is assigned to the shared memory partition by the amount that you identified in step 1.