Patent ID: 8224955

Claim:
A method for folding at each affinity level for a partition spanning multiple nodes, the method comprising: identifying, by a computer processor, a highest affinity level in a number of affinity levels, wherein affinity comprises a memory access time, wherein at least one affinity level in the number of affinity levels has a number of domains, and wherein at least one domain in the number of domains includes a number of nodes; determining, by the computer processor, whether folding one domain at the highest affinity level results in folding a last node at the highest affinity level; responsive to a determination that folding one domain at the highest affinity level does not result in folding the last node, determining, by the computer processor, a domain load for each domain at the highest affinity level; responsive to determining the domain load for each domain at the highest affinity level, identifying, by the computer processor, a lightest loaded domain; responsive to identifying the lightest loaded domain, determining, by the computer processor, whether the lightest loaded domain is a node; responsive to a determination that the lightest loaded domain is a node, identifying, by the computer processor, a lightest loaded processing unit on the node; and folding, by the computer processor, the lightest loaded processing unit, wherein folding the lightest loaded processing unit directs work off of the lightest loaded processing unit and onto other processing unit; responsive to a determination that the lightest loaded domain is not a node, moving by the computer processor to a next affinity level; and recursively executing the determining and identifying steps until the lightest loaded processing unit is folded.