1. Field
The present disclosure relates to virtually-partitioned computing systems. More particularly, the disclosure concerns partition placement in systems exhibiting Non-Uniform Memory Access (NUMA) characteristics.
2. Description of the Prior Art
By way of background, many current computer systems utilize NUMA-like hardware designs. In these designs, microprocessor chips have access to memory that is relatively “close” to them (low latency and high bandwidth) and also memory that is relatively “far” away (higher latency, sometimes lower bandwidth). System topologies may involve many levels of memory attachment, and as interconnections between the processors themselves.
When a virtual partition is created to provision a virtual machine (VM), it is generally necessary to allocate a set of resources for the partition. In the case of some resources, such as processors, the resource mappings can be soft. For example, a “home processor” for a virtual processor of a shared processor partition is a physical processor where the virtual processor prefers to run, but it may run on other physical processors as well. Other resources, such as memory, tend to be more persistent. Because there is a relationship between the resource mappings and dynamic execution performance, resource placement can be very important.
The NUMA properties of many computer systems can create rather large performance differences between partitions with “good” placement versus “bad” placement. As an example consider the two partition placements shown in
By way of further background, it is becoming increasingly popular to use resource management tools to automatically create partitions and start them on systems. In cloud computing environments, these management tools typically manage multiple systems at the same time. This allows the management tool to select, from a set of systems, the specific system where the partition will be started. Typically, these management tools have a view of the resource usage of the systems at a very high level. For example, they may understand if the system has available processor and memory capacity. However, as far as known, the actual resource usage is not exposed in a granular enough way to determine if a partition will fit well upon a system or not. Thus, existing management tools are not able to judge whether a particular partition placement will be “good” or “bad” from the standpoint of resource access performance.
It is to improvements in the field of virtually partitioned computing systems that the present disclosure is directed. In particular, applicants disclose a technique that allows a resource management tool to evaluate the ability of a system with NUMA-like hardware designs to support particular partition requirements.
A system, method and computer program product are provided for determining placement fitness for partitions under a hypervisor in a host computing system having non-uniform memory access (NUMA) nodes. In an embodiment, a partition resource specification is received from a partition score requester. The partition resource specification identifies a set of computing resources needed for a virtual machine partition to be created by a hypervisor in the host computing system. Resource availability within the NUMA nodes of the host computing system is assessed to determine possible partition placement options. A partition fitness score of a most suitable one of the partition placement options is calculated. The partition fitness score is reported to the partition score requester.
In an embodiment, the partition fitness score reflects an ability of the hypervisor to provision the computing resources within a single one of the NUMA nodes. In an embodiment, the partition fitness score comprises predetermined categories or a numeric gradation value that may be weighted to favor different resource characteristics. In an embodiment, a reservation request is received based on the partition fitness score, and computing resources for use in fulfilling a partition provisioning request are reserved. In an embodiment, the partition fitness score reflects an ability of the hypervisor to provision the computing resources within a single resource pool in the host computing system. In an embodiment, the partition fitness score reflects an ability of the hypervisor to provision computing resources for a set of partitions.
The foregoing and other features and advantages will be apparent from the following more particular description of example embodiments, as illustrated in the accompanying Drawings, in which:
In embodiments disclosed herein, a technique is proposed whereby a partition resource manager agent or other partition management tool is given the ability to ask a host system to score a particular set of partition resource requirements with respect to the available underlying resources of the system. Such resources may include, but are not limited to CPUs, memory, I/O (input/output) resources, hardware accelerators (such as compression assists or field-programmable gate arrays), etc. The partition fitness score allows the resource manager agent to make informed decisions regarding the host system's capabilities, such as by allowing other host systems to be queried if the first system cannot provide a suitable score, or by allowing the resource manager agent to issue parallel scoring requests to different hosts. In an embodiment, a reservation option may be provided so that a proposed partition with a good fitness score can be temporarily “locked down” to preserve the status quo until the partition can be provisioned. In another embodiment, the resource manager agent may request fitness scoring for a set of partitions, such as partitions that run components of a common workload. In still another embodiment, the resource manager agent may request a score that reflects the ability of the host system to create a partition from an assigned resource pool, such as a pool allocated pursuant to a software license.
Turning now to the drawing figures,
The resource manager agent 10 may be located outside the data center 6 or may be disposed within it.
The resource manager agent 10 includes a conventional customer interface that interacts with the customer devices 12 to support to partition resource requests. The resource management server 10 further includes conventional authentication-selection-provisioning logic whose functions may include (1) authenticating a requesting customer device 12, (2) allowing the customer device to specify partition computing resources, and (3) provisioning a suitable partition on a host 8 within the data center 6. The foregoing components of the resource manager server are known in the art of cloud computing and will not be described in further detail herein in the interest of brevity. One example system that may be used to implement the resource manager agent 10 is the IBM® Workload Deployer. Other commercial systems that perform similar functions are also available.
Turning now to
NUMA node 22 includes as set of CPU cores 261 . . . 26n and a memory 28. The CPU cores 261 . . . 26n may be integrated on a processor chip that also includes various levels of cache memory, including level 1 instruction and data caches within the cores themselves, a level 2 cache 30 and a level 3 cache 32. An I/O controller hub 34 interfaces NUMA node 22 to an I/O expansion bus 36. This bus connects to a set of I/O adapters 381 . . . 38n that may connect to storage devices, network devices and/or other hardware. A node interconnect controller 40 connects NUMA node 22 to NUMA node 24.
NUMA node 24 is identical to NUMA node 22. It includes as set of CPU cores 421 . . . 42n, and a memory 44. The CPU cores 421 . . . 42n may be integrated on a processor chip that also includes various levels of cache memory, including level 1 instruction and data caches within the cores themselves, a level 2 cache 46 and a level 3 cache 48. An I/O controller hub 50 interfaces NUMA node 24 to an I/O expansion bus 52. This bus connects to a set of I/O adapters 541 . . . 54n that may connect to storage devices, network devices and/or other hardware. A node interconnect controller 56 connects NUMA node 24 to NUMA node 22.
The software of the host 8 of
The hypervisor 58 is designed to support a set of LPARs 601 . . . 60n. Each LPAR 601 . . . 60n is provisioned with a set of partition resources that each represent a subset of the various hardware resources of the host 8, such as one or more CPU cores, memory regions, and I/O adapters. The partition resources are managed by an operating system instance that runs user-level application software. It is the job of the hypervisor 58 to maintain isolation between the LPARs 601 . . . 60n, such that the operating system instances and user-level application software of one LPAR are not able to access resources belonging another LPAR.
Each LPAR 601 . . . 60n may be completely contained within a single NUMA node of the host 8 (e.g., NUMA node 22 or 24), or it may span several NUMA nodes (e.g., NUMA nodes 22 and 24, as well as additional NUMA nodes that may be present). This is exemplified by
Unfortunately, the performance of Partition 2 may suffer a performance penalty due to the NUMA characteristics of the host 8. In particular, within each partition, all memory and I/O resources are accessible to any CPU core, but local accesses within a single NUMA node are typically faster than remote accesses between NUMA nodes for many workloads. Modern hypervisors are aware of this effect and are designed to provision partitions so that they span as few NUMA nodes as possible. However, today's hypervisors do not allow a partition requesting entity, such as the resource manager agent 10 (
The present disclosure provides a mechanism whereby the fitness of a requested partition in terms of resource locality within the host 8 is determined by the hypervisor 58 and reported to the resource manager agent 10 upon request. This allows the resource manager agent 10 to assess whether to use the host 8 to provide the partition, or perhaps to utilize a different host whose available resources are more favorably distributed. This new functionality within the hypervisor 58 is shown in
score_potential_partition(4 virtual processors, 256 GB memory, low I/O requirement)
The partition fitness score may return as a range of goodness. Possible responses could be quite simple:
No Resources
Bad Placement
Good Placement
In this example, the “No Resources” score would indicate that there are insufficient resources in the host 8, considered as a whole, to satisfy the partition requirements. This would be the case in
The foregoing partition scoring scheme may be extended, if desired, by adding one or more additional score levels, such as the following:
No Resources
Bad Placement
Mediocre Placement
Good Placement
In this example, the “Mediocre Placement” score represents a partition whose requirements cannot be satisfied with a “Good Placement” score, but also does not warrant a “Bad Placement” score. One example would be a situation where a single NUMA Node has a sufficient number of available CPU cores and memory modules, but an insufficient number of I/O adapters.
In a further example, the partition fitness score could be based on a numeric scheme that comprises a number of graded score levels, such as 1 . . . 64. In this example, a score of “1” might represent a situation where the resource requirements of the potential partition cannot be satisfied at all, and a score of “64” might indicate that all of the resource requirements can be satisfied by a single NUMA node. Intermediate scores could be established to signify different partition fitness levels that lie between the two endpoint scores. Many different scoring algorithms could be used. For example, consider a potential partition that requires 64 CPU cores. A score of “64” might indicate there is one NUMA node having 64 available cores that can fully satisfy the partition requirements. A score of “63” might indicate there is one NUMA node that has 63 available cores and another NUMA node with 1 available core. In that case, some remote memory accesses may be required, but the bulk of the memory accesses will be local. A weighted score could also be used that favors different types of resources. For example, because individual tasks have a tendency to move, sometimes frequently, between CPU cores, it may be less important to have all of a partition's CPU cores within a single NUMA node than it is to have all of the memory modules within that node. A NUMA node's I/O capacity may also be weighted in relation to other resources if a potential partition's I/O requirements are significant (e.g., a dedicated physical I/O adapter is needed). The foregoing scoring methods are set forth for purposes of example only, and not by way of limitation. Persons of ordinary skill in the art having benefit of the present disclosure will no doubt devise other partition fitness scoring techniques, and such techniques are considered to be within the scope of the subject matter set forth herein.
If desired, the partition fitness logic 62 (
The partition fitness logic 62 may run on any of the NUMA nodes within the host 8, or it may execute on a dedicated processor within the host having its own memory and I/O adapter resources. In either case, the partition fitness logic 62 may be implemented in software, firmware or a combination thereof, and possibly with some (or all) operations being performed by dedicated hardware logic. If implemented in software, the partition fitness logic 62 may be loaded from any persistent storage device attached to the host into a suitable portion of the host's memory that comprises RAM. If implemented in firmware, the partition fitness logic 62 could reside in a portion of the host's memory that comprises ROM, such as EPROM memory. The partition fitness logic 62 may comprise a collection of program instructions, possibly having entry and exit points, written in a suitable programming language. Such programming languages may include, but are not limited to, a high level procedural language such as C, a high level object oriented language such as C++, an interpreted language such as Java, BASIC, Perl, Python, or a lower level language such as assembly. The program instructions written in such languages may be compiled and/or interpreted and/or assembled (as the case may be) into machine language program instructions that are capable of execution on one or more processors of the host 8. When the machine language program instructions are loaded into and executed by such processor(s), the resultant programmed host 8 becomes a particular machine for practicing the subject matter described herein. The program instructions of the partition fitness logic 62 may be embodied in one or more modules, each of which may be compiled and linked into an executable program, installed in a dynamically linked library, or otherwise made ready for invocation and execution by the host 8. The module(s) may be implemented to run with or without the support of an underlying hypervisor (or operating system). They may be callable from other modules or from themselves, and/or may be invoked in response to detected events or interrupts.
As previously mentioned, one or more operations of the partition placement logic 62 could be implemented using dedicated logic hardware. Examples of such hardware would include connected logic units such as gates and flip-flops, and/or integrated devices, such as application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs)), reconfigurable data path arrays (rDPAs) or other computing devices. The design, construction and operation of such devices is well known in the art, and will not be described further herein in the interest of brevity.
Accordingly, a technique has been disclosed for determining placement fitness for partitions under a hypervisor. Advantages of the disclosed technique include the ability to provide a generic and portable abstraction of machine resources around partition placement in a host, or within a host resource pool, in order to allow requesting entities to score the fitness of potential partitions. If there are plural host systems, such entities can request partition fitness scores from multiple hosts in order to determine which host is most suitable. In either case, the abstraction of a score relieves the requesting entity of the responsibility of understanding potentially complex NUMA topologies.
It will be appreciated that the foregoing concepts may be variously embodied in any of a machine implemented method, a computing system, and a computer program product. Example embodiments of a machine-implemented method have been described in connection with
Example computer-readable storage media for storing digitally encoded program instructions are shown by reference numerals 28 and 44 (memory) of the host 8 in
Although various embodiments of the invention have been described, it should be apparent that many variations and alternative embodiments could be implemented in accordance with the present disclosure. It is understood, therefore, that the invention is not to be in any way limited except in accordance with the spirit of the appended claims and their equivalents.
Number | Name | Date | Kind |
---|---|---|---|
8443376 | Bhandari et al. | May 2013 | B2 |
8464267 | Uyeda et al. | Jun 2013 | B2 |
20060190482 | Kishan et al. | Aug 2006 | A1 |
20090055831 | Bauman et al. | Feb 2009 | A1 |
20090150640 | Royer et al. | Jun 2009 | A1 |
20090307439 | Jacobs et al. | Dec 2009 | A1 |
20100229175 | Gonzalez, Jr. et al. | Sep 2010 | A1 |
20110296406 | Bhandari et al. | Dec 2011 | A1 |
20130055278 | Zaitsev | Feb 2013 | A1 |
Number | Date | Country |
---|---|---|
WO2010065326 | Jun 2010 | WO |
WO2011094301 | Aug 2011 | WO |
Entry |
---|
W. J. Armstrong et al., “Advanced virtualization capabilities of POWER5 systems”, IBM J. Res. & Dev. vol. 49 No. 4/5, Jul./Sep. 2005, pp. 523-532. |
Number | Date | Country | |
---|---|---|---|
20130346967 A1 | Dec 2013 | US |