IP Library Granted Patent US 7,673,114
Granted Patent B2
US 7,673,114 · App. 11/335,812 · Granted Mar 2, 2010

Dynamically improving memory affinity of logical partitions

Assignee: International Business Machines Corporation
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,673,114
App. No.
11/335,812
Granted
Mar 2, 2010
Kind
B2
Abstract

In a computer system that includes multiple nodes and multiple logical partitions, a dynamic partition manager computes current memory affinity and potential memory affinity at the request of a logical partition to help the logical partition determine whether a reallocation of resources between nodes may improve memory affinity for the logical partition. If so, the logical partition requests reallocation of resources by the dynamic partition manager so memory affinity for the logical partition is improved.

Claims (121)

1. A computer system comprising:

a plurality of logical partitions defined on a plurality of nodes, each logical partition comprising a plurality of resources on at least two of the plurality of nodes;

a dynamic partition manager that manages allocation of the plurality of resources on the plurality of nodes to the plurality of logical partitions, the dynamic partition manager comprising a memory affinity computation mechanism that computes memory affinity for a selected logical partition; and

a memory affinity agent in the selected logical partition, the memory affinity agent determining from the memory affinity computation mechanism a current memory affinity for the selected logical partition based on a current allocation of resources in the selected logical partition, the memory affinity agent determining from the memory affinity computation mechanism a potential memory affinity for the selected logical partition based on a proposed reallocation of resources in the selected logical partition,

wherein the memory affinity computation mechanism computes memory affinity for a selected logical partition using the equation

memory

affinity

=

1

n

(

100

-

PMn

-

PCn

)

*

PRn

where

n=the number of nodes used by the selected logical partition

PMn=percent of memory corresponding to the selected logical partition on a selected node

PCn=percent of processors corresponding to the selected logical partition on the selected node

PRn=percent of total resources corresponding to the selected logical partition on the selected node, which equals (PMn+PCn)/2.

2. The computer system of claim 1 wherein the memory affinity for the selected node is defined to be zero if either PMn is zero or PCn is zero.

3. A computer-implemented method for dynamically improving memory affinity of a selected logical partition in a computer system that comprises a plurality of logical partitions on a plurality of nodes, each logical partition comprising a plurality of resources on at least two of the plurality of nodes, the method comprising the steps of:

(A) determining current memory affinity for the selected logical partition based on a current allocation of resources in the logical partition;

(B) determining whether at least one resource is available to improve the current memory affinity;

(C) if at least one resource is available to improve the current memory affinity, performing the steps of:

(C1) determining potential memory affinity for the selected logical partition based on a proposed reallocation of resources in the selected logical partition; and

(C2) if the potential memory affinity determined in step (C1) is greater than the current memory affinity determined in step (A), dynamically adjusting at least one resource in the selected logical partition,

wherein step (A) determines the current memory affinity for a selected logical partition using the equation

memory

affinity

=

1

n

(

100

-

PMn

-

PCn

)

*

PRn

where

n=the number of nodes used by the selected logical partition

PMn=Percent of memory corresponding to the selected logical partition on a selected node

PCn=percent of processors corresponding to the selected logical partition on the selected node

PRn=percent of total resources corresponding to the selected logical partition on the selected node, which equals (PMn+PCn)/2.

4. The method of claim 3 , wherein the current memory affinity for the selected node is defined to be zero if either PMn is zero or PCn is zero.

5. The method of claim 3 wherein step (C1) determines the potential memory affinity for a selected logical partition using the equation

memory

affinity

=

1

n

(

100

-

PMn

-

PCn

)

*

PRn

where

n=the number of nodes used by the selected logical partition based on the proposed reallocation of resources

PMn=percent of memory corresponding to the selected logical partition on a selected node based on the proposed reallocation of resources

PCn=percent of processors corresponding to the selected logical partition on the selected node based on the proposed reallocation of resources

PRn=percent of total resources corresponding to the selected logical partition on the selected node based on the proposed reallocation of resources, which equals (PMn+PCn)/2.

6. The method of claim 5 wherein the potential memory affinity for the selected node is defined to be zero if either PMn is zero or PCn is zero.

7. A computer-readable program product including recordable media, the program product comprising:

(A) a dynamic partition manager that manages allocation of a plurality of resources on a plurality of nodes to a plurality of logical partitions, each logical partition comprising a plurality of resources on at least two of the plurality of nodes, the dynamic partition manager comprising a memory affinity computation mechanism that computes memory affinity for a selected logical partition; and

(B) a memory affinity agent in the selected logical partition, the memory affinity agent determining from the memory affinity computation mechanism a current memory affinity for the selected logical partition based on a current allocation of resources in the selected logical partition, the memory affinity agent determining from the memory affinity computation mechanism a potential memory affinity for the selected logical partition based on a proposed reallocation of resources in the selected logical partition,

wherein the memory affinity computation mechanism computes memory affinity for a selected logical partition using the equation

memory

affinity

=

1

n

(

100

-

PMn

-

PCn

)

*

PRn

where

n=the number of nodes used by the selected logical partition

PMn=percent of memory corresponding to the selected logical partition on a selected node

PCn=percent of processors corresponding to the selected logical partition on the selected node

PRn=percent of total resources corresponding to the selected logical partition on the selected node, which equals (PMn+PCn)/2.

8. The program product of claim 7 wherein the memory affinity for the selected node is defined to be zero if either PMn is zero or PCn is zero.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 8, 2006
From: ALLEN, KENNETH ROGER; BROWN, WILLIAM ANTON; JACOBS, STUART ZACHARY; OUREN, WADE BRYON; VOSSEN, KENNETH CHARLES
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 017319/0983 →
Continuity (1)
Related Publication 20070168635A1 · Jul 19, 2007