Selecting a host for a virtual machine using a hardware multithreading parameter

DE112015000216B4Active Publication Date: 2024-10-31INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
DE112015000216
Authority / Receiving Office
DE · DE
Patent Type
Patents
Current Assignee / Owner
Priority Date
2014-06-16
Filing Date
2015-06-04
Publication Date
2024-10-31
Estimated Expiration
2035-06-04

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

A cloud manager monitors available resources on host computer systems, including the number of hardware threads supported by CPUs on those systems. The cloud manager receives a request to provision a virtual machine (VM), which includes a hardware multithreading parameter specifying the level of hardware multithreading required on the host computer system. The cloud manager then selects a host computer system for the VM, taking the hardware multithreading parameter into account.
Need to check novelty before this filing date? Find Prior Art

Description

BACKGROUNDTechnical FieldThis disclosure relates generally to providing virtual machines to host computer systems, and more particularly to selecting a host for a virtual machine using a hardware multi-threading parameter.The document US 2013 / 0 031 559 A1 describes a virtual resource allocation capability. The virtual resource allocation capability is configured to support the provision of virtual resources within a cloud environment.Document EP 2 660 714 A2 describes a semiconductor device including an execution unit that executes an arithmetic instruction, and a scheduler including a plurality of first setting registers each defining a correspondence relationship between hardware threads and partitions, and generates a thread selection signal based on a partition schedule and a thread schedule.Document EP 2 645 236 A2 describes a semiconductor device including an instruction decoder that decodes an instruction code and thereby generates instruction information, an execution unit that performs an operation based on the instruction information by pipelined processing, and a pipeline control unit that controls an order of the instruction code to be processed in pipelined processing.Background ArtIn a cloud environment, a cloud manager provides virtual machines to host computer systems to generate virtual servers. Normally, the cloud manager receives a request indicating what the virtual machine image (image) needs as system resources, for example, memory, hard disk, and CPU. The cloud manager then determines available host computer systems on which the required system resources are available, selects one of the available host computer systems, and provides the virtual machine on the selected host computer system.OpenSource is open source software for building private and public clouds. In OpenStack, virtual hardware templates referred to as "flavors" (types) indicate system resources required for virtual machines. For example, a type in OpenStack may indicate a size of memory, a master volume size, and a number of virtual CPUs for a virtual machine. When a virtual machine needs to be provided, a call is sent to the cloud manager, the type indicating the resources needed for the virtual machine. The cloud manager then searches one or more host computer systems on which the resources specified in the type are available and provides the virtual machine on one of the host computer systems that correspond to the type.Hardware multi-threading in a host may make it difficult to provide virtual machines to a host computer system. In the related art, if hyperthreading is enabled on the host computer system, the number of hardware threads is taken into account in selecting a host computer system for a virtual machine, and virtual CPUs are allocated to hardware threads regardless of physical cores. Unless hyperthreading is enabled on the host computer system, only physical processor cores are considered when selecting a host computer system for a virtual machine, and virtual CPUs are assigned to physical processor cores only when a VM (virtual machine) is provided on the selected host computer system. In modern processor architectures such as POWER, which contain many hardware threads in each core, the result is a very inefficient use of processor resources.Providing virtual machines may also be difficult when processors include shared cores. The term "shared core processors" refers to a CPU core that may be divided into multiple sub-cores, each including multiple hardware threads, and in which the sub-core appears as a core opposite a guest operating system. For example, a core that may function as a shared core with 8 hardware threads may be divided into 4 sub-cores, each capable of supporting 2 hardware threads. The activation of shared cores occurs dynamically, which means that the sharing can be changed programmatically on the host operating system. Known cloud managers do not treat shared-core processors in any way other than shared-core processors. As a result, known cloud managers cannot realize the advantages of using shared core processors in virtual machine provisioning.SUMMARYAccording to a first aspect, there is provided an apparatus comprising: at least one processor; a memory coupled to the at least one processor; a cloud manager residing in the memory and executed by the at least one processor, the cloud manager comprising: a host monitoring mechanism that determines a number of CPUs available on a plurality of host computer systems on which virtual machines could be provided and that further determines a number of hardware threads supported by each CPU on the plurality of host computer systems; and a host selection mechanism that receives a virtual machine (VM) request including a number of virtual CPUs and a hardware multi-threading parameter, wherein the host selection mechanism selects one of the plurality of host computer systems including a number of CPUs having a number of hardware threads corresponding to the VM request.According to a second aspect, there is provided a computer implemented method executed by at least one processor to select a host computer system for providing a virtual machine, the method comprising: determining a number of CPUs available on a plurality of host computer systems on which virtual machines could be provided; determining a number of hardware threads supported by each CPU on the plurality of host computer systems; receiving a virtual machine (VM) request including a number of virtual CPUs and a hardware multithreading parameter; selecting one of the plurality of host computer systems that includes a number of CPUs having a number of hardware threads corresponding to the VM request.The invention can be realized as a computer program.According to a preferred embodiment, a cloud manager monitors available resources on host computer systems including a number of hardware threads supported by CPUs on the host computer systems. The cloud manager receives a virtual machine (VM) provisioning request that includes a hardware multi-threading parameter that indicates the amount of hardware multi-threading required on the host computer system. The cloud manager then selects a host computer system for the VM, thereby accounting for the hardware multi-threading parameter.According to one embodiment, a solution is provided that deals with virtual CPU placement using a hardware multi-threading parameter.According to one embodiment, this disclosure relates generally to providing virtual machines to host computer systems, and more particularly, to providing virtual CPUs to a host computer system using a hardware multi-threading parameter.According to one embodiment, a solution is provided for providing virtual CPUs using a hardware multi-threading parameter in shared core hosts.According to one embodiment, this disclosure relates generally to providing virtual machines to host computer systems, and more particularly, to providing virtual CPUs using a hardware multi-threading parameter to a host computer system that includes one or more shared processor cores.According to one embodiment, there is provided an apparatus comprising: at least one processor; a memory coupled to the at least one processor; a cloud manager residing in the memory and executed by the at least one processor, the cloud manager comprising: a host monitoring mechanism that determines a number of CPUs available on a plurality of host computer systems on which virtual machines could be provided and that further determines a number of hardware threads supported by each CPU on the plurality of host computer systems; a host selection mechanism that receives a virtual machine (VM) request including a number of virtual CPUs and a hardware multi-threading parameter, the host selection mechanism selecting one of the plurality of host computer systems that includes a number of CPUs having a number of hardware threads corresponding to the VM request; and a virtual CPU (vCPU) placement mechanism that uses the hardware multi-threading parameter to place a plurality of virtual CPUs (vCPUs) on the selected host computer system.According to one embodiment, there is provided a computer implemented method executed by at least one processor to place a plurality of virtual CPUs (vCPUs) on a host computer system, the method comprising: determining a number of CPUs available on a plurality of host computer systems on which virtual machines could be provided; determining a number of hardware threads supported by each CPU on the plurality of host computer systems; receiving a virtual machine (VM) request including a number of virtual CPUs and a hardware multithreading parameter; selecting one of the plurality of host computer systems including a number of CPUs having a number of hardware threads corresponding to the VM request; and using the hardware multi-threading parameter to place the plurality of virtual CPUs on the selected host computer system.According to one embodiment, there is provided a computer implemented method executed by at least one processor to place a plurality of virtual CPUs (vCPUs) on a host computer system, the method comprising: determining a number of CPUs, a memory size, and a disk storage space size available on a plurality of host computer systems on which virtual machines could be provided; determining a number of hardware threads supported by each CPU on the plurality of host computer systems; receiving a virtual machine (VM) request including: a memory requirement indicating a minimum memory size for the VM; a disk requirement indicating a minimum disk size for the VM; and a CPU demand indicating a number of virtual CPUs for the VM and a hardware multithreading parameter, wherein a first value of the hardware multithreading parameter indicates that hardware multithreading is off, a second value of the hardware multithreading parameter indicates a numerical value for a number of hardware threads, and a third value of the hardware multithreading parameter indicates that the selected host computer system is selected regardless of whether hardware threading on the selected host computer system is on or off; selecting one of the plurality of host computer systems including a number of CPUs having a number of hardware threads corresponding to the VM request; and using the hardware multithreading parameter to place the plurality of vCPUs on the selected host computer system by placing each vCPU in the VM on a different physical core in the selected host computer system when the hardware multithreading parameter indicates that hardware multithreading is off and placing each vCPU in the VM on a different hardware thread in the selected host computer system when the hardware multithreading parameter indicates the number of hardware threads.According to one embodiment, there is provided a method as described in the paragraph above, further comprising changing the size of the VM using the hardware multi-threading parameter.According to one embodiment, there is provided an apparatus comprising: at least one processor; a memory coupled to the at least one processor; a cloud manager residing in the memory and executed by the at least one processor, the cloud manager comprising: a host monitoring mechanism that determines: a number of CPUs available on a plurality of host computer systems on which virtual machines could be provided; a number of hardware threads supported by each CPU on the plurality of host computer systems; and whether cores shared for each CPU on the plurality of host computer systems are enabled; a host selection mechanism that receives a virtual machine (VM) request including a number of virtual CPUs; and a hardware multi-threading parameter; wherein the host selection mechanism selects one of the plurality of host computer systems including a number of CPUs having a number of hardware threads and shared core settings corresponding to the number of virtual CPUs and the hardware multi-threading parameter in the VM request.According to one embodiment, there is provided a computer implemented method executed by at least one processor to place a plurality of virtual CPUs (vCPUs) on a host computer system, the method comprising: determining a number of CPUs available on a plurality of host computer systems on which virtual machines could be provided; determining a number of hardware threads supported by each CPU on the plurality of host computer systems; determining whether each CPU on the plurality of host computer systems has shared cores enabled and, if so, a number of shared cores per core; receiving a virtual machine (VM) request including a number of virtual CPUs and a hardware multi-threading parameter; and selecting one of the plurality of host computer systems including a number of CPUs having a number of hardware threads and shared core settings corresponding to the number of virtual CPUs and the hardware multi-threading parameter in the VM request.According to one embodiment, there is provided a computer implemented method executed by at least one processor to place a plurality of virtual CPUs (vCPUs) on a host computer system, the method comprising: determining a number of CPUs, a memory size, and a disk storage size available on a plurality of host computer systems on which virtual machines could be provided; determining a number of hardware threads supported by each CPU on the plurality of host computer systems; determining whether shared cores are enabled at each CPU on the plurality of host computer systems; obtaining a virtual machine (VM) request including: a memory requirement indicating a minimum memory size for the VM; a disk requirement indicating a minimum disk size for the VM; and a CPU demand indicating a number of virtual CPUs for the VM and a hardware multithreading parameter, wherein a first value of the hardware multithreading parameter indicates that hardware multithreading is off, a second value of the hardware multithreading parameter indicates a numerical value for a number of hardware threads, and a third value of the hardware multithreading parameter indicates that the selected host computer system is selected regardless of whether hardware threading on the selected host computer system is on or off; selecting one of the plurality of host computer systems including a number of CPUs having a number of hardware threads and shared core settings corresponding to the number of virtual CPUs and the hardware multi-threading parameter in the VM request; and using the hardware multi-threading parameter and the shared core settings of the selected host computer system to place the plurality of vCPUs on the selected host computer system by placing each vCPU in the VM on a different physical core in the selected host computer system when the hardware multi-threading parameter indicates that hardware multi-threading is off, and placing each vCPU in the VM on a different hardware thread in a sub-core in a CPU in the selected host computer system when the hardware multi-threading parameter indicates the number of hardware threads and indicates that the shared core settings of the selected computer system are enabled.According to one embodiment, a cloud manager monitors available resources on host computer systems including a number of hardware threads supported by CPUs on the host computer systems. The cloud manager receives a virtual machine (VM) provisioning request that includes a hardware multi-threading parameter that indicates whether hardware multi-threading is permitted on the host computer system. The cloud manager then selects a host computer system for the VM, thereby accounting for the hardware multi-threading parameter. The VM is then placed on the selected host computer system using the hardware multi-threading parameter.According to one embodiment, a cloud manager monitors available resources on host computer systems including a number of hardware threads supported by CPUs on the host computer systems and whether cores shared with the CPUs are enabled. The cloud manager receives a virtual machine (VM) provisioning request that includes a hardware multi-threading parameter that indicates whether hardware multi-threading is permitted on the host computer system. The cloud manager then selects a host computer system for the VM, thereby accounting for the hardware multi-threading parameter, the hardware threads supported by the CPU, and the shared core settings. The VM is then placed on the selected host computer system using the hardware multi-threading parameter. The result is more efficient use of CPU resources in a virtual machine host.The foregoing and other features and advantages will become apparent from the following more detailed description, as illustrated in the accompanying drawings.BRIEF DESCRIPTION OF THE VARIOUS VIEWS IN THE DRAWINGSEmbodiments of the present invention will be described by way of example only and with reference to the following drawings: Like numerals designate like elements: FIG. 1 is a block diagram of a cloud computing node according to a preferred embodiment of the present invention; FIG. 2 is a block diagram of a cloud computing environment in accordance with a preferred embodiment of the present invention; FIG. 3 is a block diagram of abstraction model layers according to a preferred embodiment of the present invention; FIG. 4 is a block diagram showing some features of a cloud manager according to a preferred embodiment of the present invention; FIG. 5 is a block diagram illustrating some features of a cloud VM request according to a preferred embodiment of the present invention; FIG. 6 is a flow diagram of a method for a cloud manager to log available resources on candidate host computer systems according to a preferred embodiment of the present invention; FIG. 7 is a flow diagram of a method for a cloud manager to provide a VM on a host computer system according to a preferred embodiment of the present invention; FIG. 8 is a block diagram of a prior art dual core x86 CPU (dual core CPU); FIG. 9 is a flow diagram of a prior art method for a cloud manager to select a host for a VM request; FIG. 10 is a block diagram showing how a CPU need is specified in a cloud VM request according to the related art; FIG. 11 is a block diagram of a host computer system in question showing three x86 dual core processors in accordance with a preferred embodiment of the present invention; FIG. 12 is a block diagram showing virtual machines that include vCPUs that may be associated with the candidate host in FIG. 11 according to a preferred embodiment of the present invention; FIG. 13 is a flow diagram of a prior art method for placing vCPUs on physical cores in a host computer system; FIG. 14 is a block diagram showing an architecture of a six core Power8 CPU, illustrating two of the six cores, in accordance with a preferred embodiment of the present invention; FIG. 15 is a flow diagram of a method according to a preferred embodiment of the present invention for using a hardware multi-threading parameter to select a host and control placement for vCPUs on the host; FIG. 16 is an exemplary CPU demand that includes a number of vCPUs and a hardware multi-threading parameter, according to a preferred embodiment of the present invention; FIG. 17 is a first exemplary CPU demand that includes a hardware multi-threading parameter, in accordance with a preferred embodiment of the present invention; Figure 18 shows a Power8 host in question according to a preferred embodiment of the present invention, which corresponds to the CPU need in Figure 17. FIG. 19 illustrates a second exemplary CPU need that includes a hardware multi-threading parameter, in accordance with a preferred embodiment of the present invention; Figure 20 shows a Power8 host in question according to a preferred embodiment of the present invention, which corresponds to the CPU need in Figure 19. FIG. 21 illustrates a third exemplary CPU need that includes a hardware multi-threading parameter, in accordance with a preferred embodiment of the present invention; Figure 22 shows a Power8 host in question according to a preferred embodiment of the present invention, which corresponds to the CPU need in Figure 21. FIG. 23 illustrates a fourth exemplary CPU need that includes a hardware multi-threading parameter, in accordance with a preferred embodiment of the present invention; Figure 24 shows a Power8 host in question according to a preferred embodiment of the present invention, which corresponds to the CPU need in Figure 23. FIG. 25 is a flow diagram of a method for selecting a host that satisfies a CPU demand that includes a hardware multi-threading parameter, in accordance with a preferred embodiment of the present invention; FIG. 26 is a flow diagram of a method for placing vCPUs on a selected host computer system using a hardware multi-threading parameter; FIG. 27 is a block diagram showing host level statistics acquired for each candidate host according to a preferred embodiment of the present invention; and FIG. 28 is a block diagram showing an additional indication that could be realized in an OpenTime type to indicate the hardware multi-threading parameter according to a preferred embodiment of the present invention. FIG. 29 is a flow diagram of a method for performing a resizing process on an existing VM that may include a hardware multi-threading parameter. FIG. 30 is a block diagram showing an architecture of a Power8 CPU having six cores with shared cores enabled, two of the six cores being illustrated; FIG. 31 is an exemplary CPU demand including a number of vCPUs and a hardware multi-threading parameter; FIG. 32 is a first example CPU demand that includes a hardware multi-threading parameter; FIG. 33 illustrates a suitable Power8 host in accordance with a preferred embodiment of the present invention that conforms to the CPU need in FIG. 32; FIG. 34 shows a second example CPU demand that includes a hardware multi-threading parameter; FIG. 35 illustrates a suitable Power8 host in accordance with a preferred embodiment of the present invention that conforms to the CPU need in FIG. 34; FIG. 36 illustrates a third example CPU demand that includes a hardware multi-threading parameter; FIG. 37 illustrates a suitable Power8 host in accordance with a preferred embodiment of the present invention that conforms to the CPU need in FIG. 36; FIG. 38 shows a fourth example CPU demand that includes a hardware multi-threading parameter; FIG. 39 illustrates a suitable Power8 host in accordance with a preferred embodiment of the present invention that conforms to the CPU need in FIG. 38; FIG. 40 is a flow diagram of a method for selecting a host that corresponds to a CPU demand that includes a hardware multi-threading parameter that accounts for when a host has shared cores; FIG. 41 is a block diagram showing a filter that can be used to filter out hosts in which the shared core mode is enabled when the hardware multi-threading parameter is set to 4 or 8; and FIG. 42 is a flow diagram of a method for placing vCPUs on a selected host computer system using a hardware multi-threading parameter that accounts for when a host has shared cores;DETAILED DESCRIPTIONA cloud manager monitors available resources on host computer systems including a number of hardware threads supported by CPUs on the host computer systems and whether cores shared with the CPUs are enabled. The cloud manager receives a virtual machine (VM) provisioning request that includes a hardware multi-threading parameter that indicates the amount of hardware multi-threading required on the host computer system. The cloud manager then selects a host computer system for the VM, thereby accounting for the hardware multi-threading parameter, the hardware threads supported by the CPU, and the shared core settings. The VM is then placed on the selected host computer system using the hardware multi-threading parameter. The result is more efficient use of CPU resources in a virtual machine host.It should be understood in advance that although this disclosure includes a detailed description of cloud computing, implementation of the teachings presented herein is not limited to a cloud computing environment. Rather, embodiments of the present invention may be implemented in connection with any other type of computing environment that is currently known or will be developed in the future.Cloud computing is a model for providing services to enable practical and on-demand network access to a shared reservoir of configurable computing resources (e.g., networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be quickly provided and released with minimal management effort or interaction with a provider of the service. This cloud model may include at least five properties, at least three service models, and at least four provisioning models.The properties are as follows:On-demand self service (self-allocation as needed): a cloud customer can provide data processing capabilities, such as server time and network storage, automatically as needed, on a one-side basis, without requiring human interaction with the service provider.Broad Network Access (Wide Area Network Access): Capabilities are available over a network that are accessed via standard mechanisms that support the use of heterogeneous thin or thick client platforms (e.g., mobile phones, notebook computers, and PDAs).Resource Pooling (Resource Bundling): The provider's computing resources are bundled to serve multiple customers using a multi-user model with different physical and virtual resources dynamically allocated and re-allocated according to need. There is some kind of location independence in such a way that the customer generally does not have any control or knowledge about the exact location of the resources provided, but may be able to indicate the location at a higher level of abstraction (e.g. country, state or data processing center).Rapid Elasticity (Rapid Elasticity): Capabilities may be provided quickly and elastically, in some cases automatically to adjust the scope of function rapidly upward, and quickly released to adjust the scope of function rapidly downward. The customer often feels that the capabilities available for providing are unlimited and can be purchased in any quantity at any time.Measured Service (Rated Service): Cloud systems automatically control and optimize resource usage by utilizing a rating capability at a particular level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage may be monitored, controlled, and reported so that transparency exists for both the provider and the client of the service being used.The service models are as follows:Software as a Service (SaaS) (software as a service): The capability provided to the customer is to utilize the provider's applications running on cloud infrastructure. The applications are accessible from different client devices via a thin client interface, such as a web browser (e.g., web-based eMail). The customer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, storage, or even individual application capabilities, except for the possible exception of limited user-specific configuration settings of applications.Platform as a Service (PaaS) (Platform as Service): The capability provided to the customer is to provide on the cloud infrastructure customer-generated or purchased applications generated using programming languages and programming tools supported by the provider. The customer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, storage, but has control over the applications provided and possibly over applications hosting environment configurations.Infrastructure as a Service (IaaS) (Infrastructure as Service): The capability provided to the customer is to provide processing, storage, networks, and other basic computing resources, where the customer can provide and execute any software that can include operating systems and applications. The customer does not manage or control the underlying cloud infrastructure, but has control over operating systems, storage space, as well as provided applications, and possibly limited control over selected networking components (e.g., via host firewalls).The provisioning models are as follows:Private Cloud: The cloud infrastructure is operated exclusively for a company. It may be managed by the company or a third party and be present at or outside the company site.Community Cloud: The cloud infrastructure is used by multiple companies and supports a particular user community that has common interests (e.g., a task, security requirements, policy, and law and regulation compliance issues). It may be managed by the companies or a third party and be present at or outside the company site.Public Cloud: The cloud infrastructure is provided to the general public or a large group in an industry and is owned by a company that sells cloud services.Hybrid Cloud: The cloud infrastructure is a mixture of two or more clouds (private cloud, communication cloud, or public cloud) that remain stand-alone entities but are interconnected via standardized or proprietary technology that enables portability of data and applications (e.g., cloud bursty (cloud target group distribution) for load balancing between clouds).A cloud computing environment is service-oriented with emphasis on statelessness, low-coupling, modularity, and semantic interoperability. The focus of cloud computing is an infrastructure that has a network of interconnected nodes.Referring to FIG. 1, there is illustrated a block diagram of an example of a cloud computing node. Cloud computing node 100 is just one example of a suitable cloud computing node and is not intended to suggest any limitation as to the scope or functionality of embodiments of the invention described herein. Nevertheless, cloud computing node 100 may be implemented and / or perform any of the functionalities set forth hereinabove.In cloud computing node 100, a computer system / server 110 is present that is operable in conjunction with numerous other general purpose or special purpose computing system environments or such configurations. Examples of well-known computing systems, environments, and / or configurations suitable for use in connection with the computing system / server 110 include, but are not limited to, personal computing systems, server computing systems, tablet computing systems, thin clients, thick clients, handheld or notebook devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics devices, network PCs, minicomputer systems, mainframe computer systems, and distributed cloud computing environments including any of the aforementioned systems or devices, and the like.The computer system / server 110 may be described in the general context of computer system executable instructions, such as program modules, executed by a computer system. Program modules generally may include routines, programs, objects, components, logic, and data structures, etc., that perform particular tasks or implement particular abstract data types. The computer system / server 110 may be practiced in distributed cloud computing environments where tasks are performed by remote processing units connected via a communication network. In a distributed cloud computing environment, program modules may reside on both local and remote computer system storage media including main storage devices.As shown in FIG. 1, the computer system / server 110 in the cloud computing node 100 is shown in the form of a general purpose computing device. The components of computer system / server 110 may include, but are not limited to, one or more processors or processing units 120, a system memory 130, and a bus 122 that connects various system components including system memory 130 to processing unit 120.Bus 122 represents one or more of any of a variety of types of bus structures, including a memory bus or controller, a peripheral bus, an accelerated graphics port, and a processor bus or local bus, utilizing any of a variety of bus architectures. By way of example, and not limitation, such architectures include the ISA bus (ISA= In Standard Architecture), the MCA bus (MCA=Micro Channel Architecture), the EISA bus (EISA= En ISA), the VESA local bus (VESA= Video Electronics Standards Association), and the PCI bus (PCI= Peripher Component Interconnect).Computer system / server 110 typically includes a variety of media that can be read by computer systems. Such media may be any available media that can be accessed by computer system / server 110, and include both volatile and non-volatile media, removable media, and non-removable media. An example of a removable medium shown in FIG. 1 is a digital video disc (DVD) 192.System memory 130 may include computer system readable media in the form of volatile memory or nonvolatile memory such as firmware 132. Firmware 132 provides an interface to the hardware of computer system / server 110. System memory 130 may also include computer system readable media in the form of volatile memory, such as random access memory (RAM) 134 and / or cache memory 136. Computer system / server 110 may further include other removable / non-removable, volatile / non-volatile computer system storage media. For example only, a storage system 140 may be provided for reading from and writing to a non-removable, non-volatile magnetic medium (not shown and commonly referred to as a "hard disk"). Although not shown, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable non-volatile optical disk such as a CD-ROM, DVD-ROM, or other optical medium may be provided. In such cases, each of these units may be connected to bus 122 through one or more data media interfaces. As further depicted and described below, the memory 130 may include at least one program product including a set (e.g., at least one) of program modules configured to perform the functions described in more detail below.A program / utility 150 containing a set (at least one) of program modules 152 may be stored in memory 130, as an example and not by way of limitation, as well as in an operating system, one or more application programs, or in other program modules and program data. Each of the operating systems, one or more application programs, other program modules, and program data, or a particular combination thereof, may include an implementation form of a networking environment. The program modules 152 typically perform the functions and / or methodologies of embodiments of the invention as described herein.Computer system / server 110 may also communicate with one or more external devices 190, for example, a keyboard, a pointing device, a display device 180, a disk drive, etc.; one or more devices that allow a user to interact with computer system / server 110; and / or any devices (e.g., network card, modem, etc.) that allow computer system / server 110 to communicate with one or more other computing devices. Such data exchange may take place via input / output (I / O) interfaces 170. Moreover, the computer system / server 110 may communicate with one or more networks, for example, a local area network (LAN), a wide area network (WAN), and / or a public network (e.g., the Internet), via a network adapter 160. As depicted, network adapter 160 communicates with the other components of computer system / server 110 via bus 122. It should be appreciated that, although not shown, other hardware and / or software components could be used in conjunction with computer system / server 110. Examples include, but are not limited to: microcode, device drivers, redundant processing units, external disk arrays, RAID systems (RAID= Redundant Array of Independent Disks), tape drives, storage systems for data archive, etc.Referring to FIG. 2, an illustrative cloud computing environment 200 is depicted. As shown, cloud computing environment 200 includes one or more cloud computing nodes 100 with which local computing devices such as a personal digital assistant (PDA) or cellular telephone 210A, a desktop computer 210B, a notebook computer 210C, and / or an automobile computer system 210N may communicate used by cloud clients. The nodes 100 can communicate with each other. They may be physically or virtually grouped (not shown) in one or more networks, such as a private cloud, communication cloud, public cloud, or hybrid cloud described hereinabove, or combinations thereof. This enables cloud computing environment 200 to provide infrastructure, platforms, and / or software as services for which a cloud customer does not need to manage resources on a local computing device. It should be appreciated that the types of computing devices 210A- N depicted in FIG. 2 are intended to be illustrative, and that the computing nodes 100 and cloud computing environment 200 may communicate with any type of computerized device via any type of network connection and / or network addressable connection (e.g., using a web browser).Referring to FIG. 3, there is illustrated a set of function abstraction layers provided by the cloud computing environment 200 in FIG. 2. It should be understood in advance that the components, layers, and functions shown in FIG. 3 are intended for illustration only and the disclosure and claims are not limited thereto. As depicted, the following layers and corresponding functions are provided.A hardware and software layer 310 includes hardware and software components. Examples of hardware components include mainframe computers, in one example IBM® System z® systems; RISC (Reduced Instruction Set Computer) architecture based servers, in one example IBM System® systems; IBM System x systems; IBM BladeCenter systems; storage devices; networks; and networking components. Examples of software components include network application server software, in one example IBM WebSphere® application server software; and database software, in one example IBM DB2® database software. IBM, System z, System p, WebSphere, and DB2 are trademarks of International Business Machines Corporation registered in many legal jurisdictions worldwide.Virtualization layer 320 provides an absorption layer from which the following examples of virtual entities may be provided: virtual servers; virtual storage; virtual networks including virtual private networks; virtual applications and operating systems; and virtual clients.In one example, a management layer 330 may provide the functions described below. Resource provisioning provides for the dynamic creation of computing resources and other resources used to perform tasks within the cloud computing environment. Charging and pricing provide cost monitoring while utilizing resources within the cloud computing environment, as well as accounting and billing for the consumption of these resources. In one example, these resources may include application software licenses. Security provides identity verification at cloud clients and tasks as well as protection for data and other resources. The user portal provides clients and system administrators with access to the cloud computing environment. The Quality of Service (Level Management) provides the assignment and management of cloud computing resources, so that the respectively required quality of service is achieved. Scheduling and fulfillment of Service Level Agreement (SLA) (SLA) provides scheduling for and the acquisition of cloud computing resources for which future requests are expected based on an SLA. A cloud manager 350 is representative of a cloud manager, as described in more detail below. Although cloud manager 350 is shown in FIG. 3 as being located in management layer 330, cloud manager 350 may span all of the levels shown in FIG. 3.An workload layer 340 provides examples of functionalities for which the cloud computing environment may be utilized. Examples of workloads and functions that may be provided from this layer include: mapping and navigation; software development and lifecycle management; virtual training room training; data analytics processing; transaction processing; and mobile desktop.The present invention may be a system, method and / or computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.The computer readable storage medium may be a tangible device that can store and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage unit, a magnetic storage unit, an optical storage unit, an electromagnetic storage unit, a semiconductor storage unit, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, or any suitable combination of the foregoing. A computer readable storage medium as used herein is not to be construed as being transitory signals, such as radio waves or freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through an optical fiber cable), or electrical signals transmitted over a cable.Computer readable program instructions described herein may be downloaded from a computer readable storage medium to respective data processing / processing units or to an external computer or storage unit via a network, for example, the Internet, a local area network, a wide area network, and / or a wireless network. The network may include copper transmission cables, optical fibers, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. A network adapter card or network interface in each data processing / processing unit receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective data processing / processing unit.Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, ISA (Instruction Set Architecture) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, data for setting states, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (e.g., via the Internet using an Internet Service Provider (Internet Service Provider)). In some embodiments, electronic circuits, including, for example, programmable logic circuits, field programmable gate arrays (FPGA), or programmable logic arrays (PLA), may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuit, such that embodiments of the present invention are performed.Aspects of the present invention are described herein with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be appreciated that each block of the flowcharts and / or the block diagrams and combinations of blocks in the flowcharts and / or block diagrams may be realized by computer program instructions.These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, provide means for implementing the functions / acts specified in a block or blocks of the flowchart and / or block diagram. These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the computer readable medium having instructions stored thereon has an article of manufacture including instructions that realize the function / action specified in a block or blocks of the flowcharts and / or block diagrams.The computer readable program instructions may also be loaded into a computer, other programmable data processing devices, or other devices to cause a series of operations to be performed on the computer, other programmable devices, or other devices to create a computer implemented process, such that the instructions executed on the computer, other programmable devices, or devices implement the functions / acts specified in a block or blocks of the flowcharts and / or block diagrams.The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Accordingly, each block in the flowcharts may represent a module, segment, or portion of instructions that includes one or more executable instructions for implementing the specified logic function or functions. In some alternative implementations, the functions indicated in the block may be performed in a different order than that indicated in the figures. For example, two blocks listed in series may actually be executed substantially simultaneously, or the blocks may sometimes be executed in the reverse order depending on the functionality associated therewith. Moreover, it should be noted that each block of the illustrated block diagrams and / or flowcharts, as well as combinations of blocks in the illustrated block diagrams and / or flowcharts, may be executed using dedicated hardware-based systems for performing the specified functions or acts, or using combinations of dedicated hardware and computer instructions.FIG. 4 shows a suitable example of the cloud manager 350 shown in FIG. 3. Cloud manager 350 includes a cloud provisioning mechanism 410 that includes a resource request interface 420. The resource request interface 420 allows a software unit to request virtual machines from the cloud manager 350 without human intervention. Cloud manager 350 also includes a user interface 430 that allows a user to interact with the cloud manager to perform any suitable functions, including, but not limited to, providing VMs, deleting VMs, analyzing cloud performance, etc. The difference between resource request interface 420 and user interface 430 is that a user must manually use user interface 430 to perform user-indicated functions, while resource request interface 420 may be used by a software unit to perform cloud resource provision by cloud mechanism 350 without user input.Cloud manager 350 also includes a host monitoring mechanism 440 that monitors resources available to candidate host computer systems so that cloud manager 350 can compare indicated resources for a VM to available resources on a candidate host computer system. A host selection mechanism 450 enables selection of a candidate host computer system based on comparing the specified resources for a requested VM with available resources of candidate host computer systems. A vCPU placement mechanism 460 places vCPUs on a selected host computer system using the hardware multi-threading parameter. A VM resizing mechanism 470 enables the resize of existing VMs in a manner that uses a hardware multi-threading parameter, even if the original VM did not use a hardware multi-threading parameter.FIG. 5 shows a suitable example of a cloud request 510 that could be transmitted over the resource request interface 420 or via the user interface 430 on the cloud provisioning mechanism 410 in FIG. 4 to request the provision of a VM by the cloud manager 350. The cloud VM request 510 may include any indication of required information for required resources on the VM. Examples of suitable demand information include a memory demand 520, a disk demand 530, and a CPU demand 540. The memory requirement 520 indicates the size of the memory required for the VM. The disk demand 530 indicates the size of the disk required for the VM. The CPU demand 540 indicates the number of virtual CPUs needed for the VM and may also indicate a hardware multi-threading parameter, as discussed in more detail below. Of course, other demand information not shown in FIG. 5 could be indicated for a VM, such as network demand and any other suitable demand. In the prior art, OpenStack uses an element referred to as a "flavor" as a cloud VM request that indicates the minimum demand for resources on a VM.Referring to FIG. 6, a method 600 is preferably performed by the host monitoring mechanism 440 of FIG. 4 to monitor available resources of candidate host computer systems. Available resources on candidate host computer systems are determined (step 610) and logged (step 620). One known way to implement method 600 uses a driver that queries a host to determine its available resources.Referring to FIG. 7, a method 700 begins by receiving a cloud VM request (step 710). The resource demand information in the cloud VM request is then compared to available resources of candidate host computer systems (step 720). Note that the available resources could be read from the protocol generated in step 620 of Figure 6 in step 720. A host is then selected that has resources corresponding to the resource demand information in the cloud VM request (step 730). Thereafter, the VM is provided on the selected host computer system (step 740).Many modern processors (or CPUs) include multiple processing cores. An example of a multi-core processor is an x86 dual-core CPU 810 shown in FIG. 8. The x86 dual core CPU 810 includes a first core 820 having two hardware threads 822 and 824 and a second core 840 having two hardware threads 842 and 844. The presence of multiple hardware threads on each core may result in problems in providing a VM to a host computer system. In the present state of the art, the number of hardware threads in a CPU having multiple cores is normally ignored, taking only the physical cores into account. For example, a prior art method 900 in FIG. 9 reads the cloud VM request (step 910), and then selects a host having a number of physical cores available thereon that corresponds to the number of vCPUs in the cloud VM request (step 920). A related art CPU demand 1010, as shown in FIG. 10, indicates the number of virtual CPUs (vCPUs) in a VM, and is a suitable example of the CPU demand 540 shown in FIG. 5. Because method 900 uses only physical cores in selecting a host for a VM, multiple hardware threads on the cores are not used, thereby not exploiting available CPU resources. In the related art, when hyperthreading is enabled on the host, the number of hardware threads is accounted for and placing vCPUs on hardware threads is performed without accounting for physical cores. This approach may result in inefficient VMs because some operational loads benefit from the use of threads on different cores, while others are better served by threads for the same core.Step 920 of FIG. 9 may include any suitable criteria or heuristics for selecting a host computer system that corresponds to a VM request. For example, the number of physical cores could be increased by a particular congestion ratio of, for example, 2.0. Thus, if three physical cores are available on a host, multiplying the three physical cores by the congestion ratio of 2.0 results in a number of available processors of 6, meaning that a VM requiring six vs could be provided on the host, but not a VM requiring 7 vCPUs. A simple example illustrates this.FIG. 11 illustrates an exemplary host computer system in question that includes three x86 dual core CPUs. It is assumed that VM1 is already executing on this host, as shown in FIG. 12, which was provided on the two physical cores in CPU1 and on the first one of the two physical cores in CPU2, as shown by hatching in these cores in FIG. 12. Further, it is assumed that VM 2 shown in FIG. 12 needs to be provided. The number of available cores is determined, which is nine in Fig. 11, for example, i.e., the six cores multiplied by the congestion ratio of 2, minus the three cores used by VM1 in the candidate host 1, as shown in Fig. 11. Since VM2 needs two vCPUs and 9 cores are available on the candidate host 1, the candidate host 1 is a valid candidate host for VM 2 as shown in FIG. 12.Note that actually placing vCPUs on a candidate host is a step separate from selecting the candidate host for the VM. Referring to FIG. 13, a method 1300 begins by reading the cloud VM request (step 1310). The vCPUs in the cloud VM request are then placed on physical cores (step 1320). In FIG. 11, the thread T 1 of the first and second cores of the CPU 1 and the first core of the CPU 2 are shaded to indicate that the three vCPUs in VM 1 have been placed on these three corresponding cores as shown in FIG. 12. However, it should be noted that the placement is not static. At different times, a vCPU could be executed on any of the hardware threads on any of the active cores. In hyperthreading, a total of twelve hardware threads are allocated in the three dual core cores. VM1 occupies 3 of these threads and leaves 9 for other VMs. However, the vCPUs are mapped to any of the threads, which may mean that work performed in operating system threads sharing memory would best be performed in hardware threads of the same vCPU, while work performed in operating system threads that are independent is better performed in hardware threads in other cores. Thus, the prior art creates inefficiencies in the manner in which candidate hosts are recognized for a VM and in the manner in which VMs are executed on a selected host because the assignment of VMs to candidate hosts does not currently account for the differences between hardware threads and cores on CPUs.The prior art recognizes either a physical processor core or a hardware thread, but not both as a unit on which a virtual CPU may be provided. Without hyperthreading, a single dual-core CPU has, as shown in FIG. 8, two available CPUs in the form of their two physical cores 820 and 840 on which vCPUs can be provided. With hyperthreading, a single dual-core CPU could support multiple vCPUs; however, whether the vCPUs are executed by hardware threads on the same physical core or on other cores is not deterministic. The disclosure and claims herein produce a finer degree of differentiation by recognizing that vCPUs need to be assigned to multiple hardware threads, and not just a single physical core or a single hardware thread.The problem of vCPUs associated with either a single hardware thread or core is exacerbated as the number of hardware threads is increased. In the x86 dual core CPUs illustrated in Figures 8 and 11, hyperthreading results in two threads per core. In processors with more hardware threads, the problem is even more acute. For example, a 6-core power8 CPU 1410 illustrated in FIG. 14 includes a first core 1420 including eight hardware threads 1432, 1434, 1436, 1438, 1442, 1444, 1446, and 1448, and a second core 1450 also including eight hardware threads 1462, 1464, 1466, 1468, 1472, 1474, 1476 and 1478. The four other cores are not shown in FIG. 14, but are similar to the two cores shown. When a host is selected based on the number of physical cores, as illustrated in the prior art method 900 of FIG. 9, many of the hardware threads remain unused. Thus, if two vCPUs were provided to the two cores 1420 and 1450 as shown in FIG. 14, the result would be that seven of the eight hardware threads would be wasted on each core. The net result is that at any given time only two of the sixteen threads are used for the two cores, which corresponds to a waste of fourteen of the sixteen hardware threads. That is, using the prior art method 900 illustrated in FIG. 9, only two of sixteen (12.5%) of the available processing resources on two of the Power8 cores may be utilized. On the other hand, if many hardware threads present per core have vCPUs associated with a hardware thread, VMs with operational loads that require a high level of parallelism and shared memory will become more efficient by placing them on the same physical core as other vCPUs for that VM and not distributing them among many physical cores.Referring to FIG. 14, to avoid the above-described problem of so many unused threads or vCPUs distributed on physical cores, a new way of detecting candidate hosts and providing VMs takes into account hardware threads by using a hardware multithreading parameter in the cloud VM request based on the principle that a vCPU could be assigned to multiple hardware threads within a physical core and not just one physical core or one hardware thread. This is done by using a new parameter in the cloud VM request that concerns hardware multi-threading. In the specific examples herein, this hardware multi-threading parameter is referred to as "SMT" parameter, where "SMT" stands for "symmetric multi-threading", and is a term known in the art for describing hardware multi-threading on CPUs. Referring to FIG. 15, a method 1500 begins by using an SMT parameter in the cloud VM request along with, in one embodiment, information about hosts related to the number of hardware threads per core and shared core settings to select a host computer system (step 1510). Once the host computer system has been selected, the same SMT parameter in the cloud VM request can be used to make placement decisions for vCPUs when the VM is provided on the selected host (step 1520). In one embodiment, information about the host regarding the number of hardware threads per core and shared core settings may also be used to make placement decisions for vCPUs when the VM is provided on the selected host (step 1520).FIG. 10 shows a prior art CPU demand 1010 for a cloud VM request that includes indicating the number of vCPUs 1020 needed on the VM. A cloud VM request 1610 according to the disclosure and claims herein, as shown in FIG. 16, includes the number of vCPUs 1620, but additionally includes a hardware multi-threading (SMT) parameter 1630. The value of the SMT parameter may be zero, indicating that hardware multi-threading is off, or it may be a multiple of the number 2, reflecting the number of hardware threads. Some examples illustrate this. Referring to FIG. 17, a CPU demand 1610A is a suitable example of the CPU demand 1610 illustrated in FIG. 16, and includes 2 vCPUs 1720 and the SMT parameter 1730 having a value of two. In a candidate host that includes a 6 core Power8 CPU 1410 as shown in FIG. 14, the candidate host includes a core with two threads in use resulting in six unused threads as shown in FIG. 18.A second CPU demand 1610B in FIG. 19 is another suitable example of the CPU demand 1610 illustrated in FIG. 16, and includes 2 vCPUs 1920 and the SMT parameter 1930 having a value indicating that hardware multi-threading is off. With hardware multithreading off, for a candidate host that includes a 6 core Power8 CPU 1410, as shown in FIG. 14, the candidate host includes two cores with one thread in each core used, resulting in fourteen unused threads in the two cores, as shown in FIG. 20. Note that the net result of the candidate host for CPU demand 1610B in FIG. 19 with the SMT parameter turned off is the same as the prior art CPU demand 1010, as shown in FIG. 10, when hyperthreading is disabled, because the prior art CPU demand 1010 does not account for any hardware multithreading when hyperthreading is disabled. In the prior art, when hyperthreading is enabled, it is unpredictable which hardware threads of a core would process the vCPU. By indicating a value for the hardware multi-threading parameter that accounts for hardware multi-threading, the number of unused hardware threads on a candidate host can be reduced and which vCPUs are executing on the same core can be controlled.The examples in Figures 16 to 19 show how the hardware multi-threading parameter allows more control over how vCPUs are provided. For example, if a VM executes 2 vs jobs that operate on the same data, it may be desirable to provide the 2 vCPUs to two different hardware threads in the same core, as shown in the example in FIGS. 17 and 18, because the two threads executed on the same core have very efficient access to cache memory available to the core. When a VM executes 2 vs jobs that are independent of each other, it may be desirable to provide the 2 vCPUs to two different cores, as illustrated in the examples in FIGS. 19 and 20.A third CPU demand 1610C in FIG. 21 is another suitable example of the CPU demand 1610 illustrated in FIG. 16, and includes 8 vCPUs 2120 and at 2130, the SMT parameter having a value of 8 In a candidate host including a 6 core Power 8 CPU 1410 as illustrated in FIG. 14, the candidate host includes a core with all eight threads used, resulting in no unused threads as illustrated in FIG. 22.A fourth CPU demand 1610D in FIG. 23 is another suitable example of the CPU demand 1610 illustrated in FIG. 16, and includes 12 vCPUs 2320 and, at 2330, the SMT parameter having a value of 4. In a candidate host including a 6 core Power8 CPU 1410 as illustrated in FIG. 14, the candidate host includes three cores with four used threads in each core, resulting in twelve unused threads as illustrated in FIG. 24. These simple examples show how indicating a hardware multi-threading parameter when selecting a host computer system provides control over how the vCPUs are provided to the host computer system.Note that the examples depicted in Figures 17-24 assume that a vCPU can be provided to any available thread. The discussion made above with respect to Figs. 9 to 12 illustrates an "congestion ratio" to increase the number of CPUs by a certain amount. A similar congestion relationship could be applied in selecting a host computer system according to the disclosure and claims herein.Referring to FIG. 25, a method 2500 selects a host when a hardware multi-threading parameter is indicated, as shown in FIGS. 16, 17, 19, 21, and 23. The cloud VM request is read (step 2510). If the SMT parameter is OFF (step 2520= JA), a host is selected on which a number of physical cores is available that corresponds to the number of vCPUs in the cloud VM request (step 2530). Note that step 2530 is similar to step 920 in the prior art method 900 of FIG. 9. With the SMT parameter turned on (step 2520=NO), a host is selected on which a number of threads per core is available that corresponds to the number in the SMT parameter and a number of cores that corresponds to the number of vCPUs in the cloud VM request divided by the number of threads indicated in the SMT parameter (step 2540). This is a concrete way to select a host on which a number of hardware threads corresponding to the number of vCPUs in the cloud VM request is available. The method 2500 is then complete.Once a host computer system has been selected, the vCPUs for the VM may be placed on the selected host. Referring to FIG. 26, a method 2600 begins when vCPUs must be placed on the selected host (step 2610). With the SMT parameter turned off (step 2620= JA), each vCPU is placed on a different physical core (step 2630). With the SMT parameter turned on (step 2620=NO), vCPUs can be placed on different hardware threads on the same physical core (step 2640). Method 2600 is then complete.For a hardware multi-threading parameter in the cloud VM request, the cloud manager must not only know the number of physical cores in CPUs in a host in question, but must also know the number of threads supported by the CPUs in the host in question. This is to ensure that a single core of the host can support the number of threads specified for the cloud VM request. Referring again to FIG. 6, determining the available resources in step 610 includes not only determining available CPU cores, but also whether multiple threads are also available on those CPU cores. One way to achieve this is to, in step 610 of Figure 6, as part of the available resource acquisition, acquire the maximum SMT setting supported by the host computer system. An example of this is shown in FIG. 27, where max_quest_smt is a value detected by the host monitoring mechanism 440 in FIG. 4 to indicate whether a host computer system in question supports hardware multi-threading. The possible values of max_quest_smtins are zero, indicating that SMT on the host computer system is off, and multiples of 2, indicating the number of hardware threads available on each CPU. If all CPUs in a host computer system are of the same type, max_quest_smt is a single value that applies to all CPUs in the host computer system. If the host computer system includes CPUs of different types that include different numbers of hardware threads, a different max_quest_smt value could be present for each CPU in the host computer system.OpenStack does not currently provide support that allows the guest CPU to specify the desired topology. One way to implement the addition of a hardware multi-threading parameter discussed herein is to add an additional indication to an OpenTime type, as shown in FIG. 28. A pomervm:smtparameter is a new parameter in an OpenStack type that indicates a desired SMT value for a guest VM. Note that the possible values of this parameter may be -1, indicating "Indeterminate" (Don't Care); zero, indicating that SMT is off; or multiples of 2. By incorporating the capability of capturing information related to hardware multi-threading on candidate hosts in the max_quest_smt setting and the capability of indicating a desired amount of hardware multi-threading in the OpenStack type, the disclosure and claims herein provide a greatly improved way of selecting candidate host computer systems on which to provide VMs and providing these VMs in a manner that better exploit the hardware multi-threading capabilities of the host computer systems, thereby improving the exploitation of CPU resources on the host computer systems.The hardware multi-threading parameter discussed herein may also be used in a VM resizing process. Sometimes, a VM must have more or fewer resources available so that its size can be changed to add or decrease resources provided to the VM. One suitable way to change the size of a VM is to specify an OpenStack type that changes the allocation of resources to the VM. In changing the size of a VM, the OpenTime type may include the parameter powerevm:smt discussed above and illustrated in FIG. 28. FIG. 29 illustrates a method 2900 of modifying the size of a VM, preferably performed by the VM resizing mechanism 470 illustrated in FIG. 4. A type for the resizing process of an existing VM is read (step 2910). The type referred to in step 2910 is the type with the new (i.e., resized) allocation of resources to the VM. If the type does not include the SMT parameter (step 2920=NO), the SMT parameter of the VM is turned off (step 2930). If the type contains the SMT parameter (step 2920= JA) and the value of the SMT parameter is OFF or "indeterminate" (step 2940= JA), the SMT parameter of the VM is turned off (step 2930). When the SMT in the type is a multiple of 2 (step 2940=NO), the SMT parameter of the VM is set to the value of the SMT indicated in the type (step 2950). Method 2900 is then complete. Method 2900 primarily enables existing VMs to "retrofit" to use the SMT parameter.The 6-core Power8 CPU supports sub-cores, meaning that the eight threads in each core can be split into sub-cores of two threads each when split cores are enabled. A power8 CPU 3010 having 6 cores and enabled split cores is shown in FIG. 30 to include a first core 3020 divided into four sub-cores 3022, 3024, 3026, and 3028, and a second core 3050 divided into four sub-cores 3052, 3054, 3056, and 3058. The four other cores are not shown in FIG. 30, but are similar to the two cores shown. Each sub-core includes two hardware threads, as shown in FIG. 30. By dividing each core into sub-cores, the sub-cores may be mapped to virtual machines instead of the cores, resulting in a saving in a significant number of unused hardware threads.In present shared core hosts, it would be advantageous for the cloud manager to be able to determine whether a host supports shared cores for a VM. Referring to FIG. 31, a CPU demand 3110 is a preferred part of a cloud VM request 510 shown in FIG. 5. The CPU demand 3110 indicates a number of vCPUs 3120 and a hardware multi-threading parameter 3130. Examples follow that illustrate how shared cores affect selecting a host and placing vCPUs on that host.Referring to FIG. 32, a CPU demand 3110A is a suitable example of the CPU demand 3110 illustrated in FIG. 31, and includes 2 vCPUs 3220 and the SMT parameter 3230 having a value of two. In a candidate host that includes a Power8 CPU 3010 with 6 cores and enabled shared cores, as shown in FIG. 30, the candidate host includes a sub-core with two threads in use, resulting in three sub-cores that may be used by other VMs, as shown in FIG. 33.A second CPU demand 3110B in FIG. 34 is another suitable example of the CPU demand 3110 illustrated in FIG. 31, and includes 2 vCPUs 3420 and, at 3430, the SMT parameter having a value OFF. In a candidate hardware multithreading host that includes a 6 core, activated shared core Power8 CPU 3010 as shown in Figure 30, the candidate host includes two sub-cores with one thread in each sub-core used, resulting in an unused thread in each sub-core, and two sub-cores that can be used by other VMs as shown in Figure 35.A third CPU demand 3110C in FIG. 36 is another suitable example of the CPU demand 3110 illustrated in FIG. 31, and includes 8 vCPUs 3620 and, at 3630, the SMT parameter having a value of two. At a hardware multi-threading parameter value of 2 for a candidate host including a 6 core Power8 CPU 3010 and enabled shared cores, as shown in FIG. 30, the candidate host includes four sub-cores with two threads in each sub-core used, resulting in no unused threads, as shown in FIG. 37. In a particular implementation, all eight vCPUs may be placed on all eight threads (four sub-cores) of the same physical core. Of course, the four sub-cores in Fig. 37 could alternatively be placed on two or more physical cores.A fourth CPU demand 3110D in FIG. 38 is another suitable example of the CPU demand 3110 illustrated in FIG. 31, and includes 12 vCPUs 3820 and the SMT parameter having a value of two at 3830. At a hardware multi-threading parameter value of 2 for a candidate host including a 6 core Power8 CPU 3010 and enabled shared cores, as shown in FIG. 30, the candidate host includes six sub-cores with two threads in each sub-core used and no unused threads of any cores, as shown in FIG. 39. In a particular implementation, eight of the twelve vs may be placed on all eight threads (four sub-cores) of the same physical core, and the remaining four vCPUs may be placed on four threads in two sub-cores in a different physical core. Of course, the six sub-cores in Fig. 39 could alternatively be placed on three or more physical cores.All the CPU requirement examples in Figs. 32, 34, 36 and 38 apply to the case where cores shared in the host are activated. If shared cores are disabled in the host, the result is similar to the examples discussed in detail above in Figures 17-24, except that the hosts would include a setting that shared cores are disabled.The examples in FIGS. 32, 36, and 38 all include an SMT parameter having a value of two. Because a Power8 sub-core contains two threads, indicating two threads in the SMT parameter provides the most efficient placement of vCPUs on a Power8 CPU. Note, however, that the SMT parameter could be greater than the number of threads on a sub-core. For example, if the SMT parameter were set to a value of four at 3630 in FIG. 36, hosts with sub-cores with two threads do not correspond to the request. Thus, hosts without shared cores are not candidate hosts when the SMT setting exceeds the number of threads for a sub-core.Referring to FIG. 40, a method 4000 illustrates selecting a host computer system using a cloud VM request that includes a hardware multi-threading parameter that accounts for whether shared cores on the host computer system are enabled. The method 4000 is preferably performed by the host selection mechanism 450 illustrated in FIG. 4. A cloud VM request is read (step 4010). With the SMT turned off (step 4020= JA) and shared cores on a candidate host enabled (step 4030= JA), the candidate host may be selected if it includes a number of shared cores that corresponds to the number of vCPUs in the cloud VM request (step 4040). With the SMT turned off (step 4020= JA) and shared cores disabled on the candidate host (step 4030=NO), the candidate host may be selected if it includes a number of physical cores that corresponds to the number of vCPUs in the cloud VM request (step 4050). With the SMT parameter turned on (step 4020=NO) and shared cores enabled on the candidate host (step 4060= JA), the candidate host may be selected when the number of hardware threads for the shared core may correspond to the number of hardware threads indicated in the SMT parameter and the number of shared cores may correspond to the number of vCPUs in the cloud VM request divided by the number of hardware threads indicated in the SMT parameter (step 4070). With the SMT parameter turned on (step 4020=NO) and shared cores disabled on the candidate host (step 4060=NO), the candidate host may be selected when the number of hardware threads for the core may correspond to the number of hardware threads indicated in the SMT parameter and when the number of physical cores may correspond to the number of vCPUs in the cloud VM request divided by the number of hardware threads indicated in the SMT parameter (step 4080). Note that method 4000 is preferably repeated for each candidate host, which may result in a pool of candidate hosts from which one of the hosts may be selected using any suitable criteria or heuristics. For example, a shared core enabled host may be selected from a shared core disabled host when the VM request results in more efficient use of CPU cores and threads. Method 4000 illustrates how a hardware multi-threading parameter and information from the host regarding shared core and hardware thread per core settings provide better control over selecting a host computer system that results in more efficient placement of vCPUs.Referring to FIG. 41, a PowerKMSMTFilter filter may be used so that the cloud manager filters out hosts in which the shared core mode is activated when a VM with SMT=4 or SMT=8 is requested. This filter may help the cloud manager to more quickly limit the number of hosts in question for a VM.Referring to FIG. 42, a method 4200 begins when vCPUs need to be placed on a selected host (step 4210). The method 4200 is preferably performed by the vCPU placement mechanism 460 illustrated in FIG. 4. With the SMT turned off (step 4220= JA) and shared cores activated on the host (step 4230= JA), the vCPUs are placed on different shared cores (step 4220). With the SMT turned off (step 4220= JA) and shared cores deactivated on the host (step 4230=NO), the vCPUs are placed on different physical cores (step 4250). With the SMT turned on (step 4220=NO) and shared cores activated on the host (step 4260= JA), the vCPUs are placed on threads of the sub-cores (step 4270). With the SMT turned on (step 4220=NO) and shared cores disabled on the host (step 4260=NO), the vCPUs are placed on threads of the same physical core (step 4280). Note that if the number of vCPUs exceeds the number of threads in a physical core, the vCPUs are placed on a number of cores that provide the required number of hardware threads for all vCPUs. Method 4200 illustrates how indicating a hardware multi-threading parameter and using information about the settings for shared cores provides better control over the placement of vCPUs on host computer systems.In order to be able to place VMs in the cloud VM request in consideration of shared cores and a hardware multi-threading parameter, the cloud manager needs not only to know the number of physical cores in CPUs in a candidate host, but also needs to know the number of threads supported by the CPUs in the candidate host and needs to know whether shared cores are activated on a candidate host. Referring again to FIG. 6, determining the available resources in step 610 includes not only determining available CPU cores, but also whether multiple threads are also available on these CPU cores, as well as whether cores shared on these cores are enabled. One way to achieve this is to determine, as part of the available resource detection, whether shared cores are enabled on the candidate host computer system in step 610 of FIG. 6.A cloud manager monitors available resources on host computer systems including a number of hardware threads supported by CPUs on the host computer systems and, in one embodiment, whether cores shared with the CPUs are enabled. The cloud manager receives a virtual machine (VM) provisioning request that includes a hardware multi-threading parameter that indicates the amount of hardware multi-threading required on the host computer system. In one embodiment, the cloud manager then selects a host computer system for the VM, thereby accounting for the hardware multi-threading parameter. In another embodiment, the cloud manager then selects a host computer system for the VM, thereby accounting for the hardware multi-threading parameter, the hardware threads supported by the CPU, and the shared core settings. The VM is then placed on the selected host computer system using the hardware multi-threading parameter. The result is more efficient use of CPU resources in a virtual machine host.It will be obvious to the skilled person that many variations are possible within the scope of the claims. Thus, although the disclosure has been illustrated and described in detail above, it will be understood by those skilled in the art that these and other changes in form and details may be made within the scope of the invention without departing from the spirit and scope of the claims.

Claims

An apparatus comprising: at least one processor; a memory coupled to the at least one processor; a cloud manager (350) located in the memory and executed by the at least one processor, the cloud manager (350) comprising: a host monitoring mechanism (440) that determines a number of CPUs available on a plurality of host computer systems on which virtual machines could be provided and that further determines a number of hardware threads supported by each CPU on the plurality of host computer systems; and a host selection mechanism (450) receiving a virtual machine (510) (VM) request including a number of virtual CPUs and a hardware multi-threading parameter (1630), wherein the host selection mechanism (450) selects one of the plurality of host computer systems including a number of CPUs having a number of hardware threads corresponding to the VM request.The apparatus of claim 1, further comprising: a virtual CPU (vCPU) placement mechanism (460) that uses the hardware multi-threading parameter (1630) to place a plurality of virtual CPUs (vCPUs) on the selected host computer system.The apparatus of claim 1, wherein the host monitoring mechanism (440) further determines whether shared cores are enabled for each CPU on the plurality of host computer systems, and wherein the host selection mechanism (450) selects one of the plurality of host computer systems that includes, in addition to a number of CPUs having a number of hardware threads corresponding to the VM request (510), shared core settings corresponding to the number of virtual CPUs and the hardware multithreading parameter (1630) in the VM request.The apparatus of claim 3, further comprising a virtual CPU (vCPU) placement mechanism (460) that uses the hardware multi-threading parameter (1630) and the shared core settings on the selected host computer system to place a plurality of virtual CPUs (vCPUs) on the selected host computer system.The apparatus of any preceding claim, wherein a first value of the hardware multi-threading parameter (1630) indicates that hardware multi-threading is off.The apparatus of claim 5 when dependent on claim 2 or claim 3, wherein if the first value of the hardware multi-threading parameter (1630) indicates that hardware multi-threading is off, the vCPU placement mechanism (460) places each vCPU in the VM on a different physical core in the selected host computer system.The apparatus of any preceding claim, wherein a second value of the hardware multi-threading parameter (1630) indicates a numerical value for a number of hardware threads.The apparatus of claim 7 when dependent on claim 2 or 3, wherein if the second value of hardware multi-threading indicates a numerical value for a number of hardware threads, the vCPU placement mechanism (460) places each vCPU in the VM on a different hardware thread in the selected host computer system.The apparatus of any preceding claim, wherein a third value of the hardware multi-threading parameter (1630) indicates that the selected host computer system is selected regardless of whether hardware threading on the selected host computer system is enabled.The apparatus of any preceding claim, wherein the VM request (510) further includes a memory requirement (520) and a disk requirement (530).The apparatus of any preceding claim, wherein the host monitoring mechanism (440) further determines a memory size and a disk space size on each of the plurality of host computer systems.The apparatus of claim 1, wherein when the number of virtual CPUs in the VM request (510) is greater than the value of the hardware multi-threading parameter (1630), the host selection mechanism (450) selects the one of the plurality of host computer systems that includes a plurality of CPUs each having a plurality of hardware threads.The apparatus of any preceding claim when dependent on claim 2, wherein the cloud manager (350) further comprises a VM resizing mechanism (470) that resizes at least one VM using the hardware multi-threading parameter (1630).A computer implemented method executed by at least one processor for selecting a host computer system to provide a virtual machine, the method comprising: determining a number of CPUs available on a plurality of host computer systems on which virtual machines could be provided; determining a number of hardware threads supported by each CPU on the plurality of host computer systems; receiving a virtual machine (510) (VM) request including a number of virtual CPUs and a hardware multithreading parameter (1630); and selecting one of the plurality of host computer systems including a number of CPUs having a number of hardware threads corresponding to the VM request (510).The method of claim 14, further comprising: using the hardware multi-threading parameter (1630) to place the plurality of virtual CPUs on the selected host computer system.The method of claim 14, further comprising: determining whether each CPU on the plurality of host computer systems has shared cores enabled, and if so, a number of shared cores per core, and wherein the selecting step comprises, in addition to selecting one of the plurality of host computer systems that includes a number of CPUs having a number of hardware threads corresponding to the VM request (510), selecting settings for shared cores corresponding to the number of virtual CPUs and the hardware multi-threading parameter (1630) in the VM request.The method of claim 16, further comprising using the hardware multi-threading parameter (1630) and the shared core settings on the selected host computer system to place a plurality of virtual CPUs (vCPUs) on the selected host computer system.The method of any of claims 14 to 17, wherein a first value of the hardware multi-threading parameter (1630) indicates that hardware multi-threading is off.The method of claim 14 when dependent on claim 15 or claim 16, wherein if the first value of the hardware multi-threading parameter (1630) indicates that hardware multi-threading is off, each vCPU in the VM is placed on a different physical core in the selected host computer system.The method of any of claims 14 to 19, wherein a second value of the hardware multi-threading parameter (1630) indicates a numerical value for a number of hardware threads.The method of claim 20 when dependent on claim 15 or 16, wherein if the second value of hardware multi-threading indicates a numerical value for a number of hardware threads, each vCPU in the VM is placed on a different hardware thread in the selected host computer system.The method of any of claims 14 to 21, wherein a third value of the hardware multi-threading parameter (1630) indicates that the selected host computer system is selected regardless of whether hardware threading on the selected host computer system is enabled.The method of any of claims 14 to 22, wherein the VM request (510) further includes a memory requirement (520) and a disk requirement (530).The method of any of claims 14 to 23, wherein the host monitoring mechanism (440) further determines a memory size and a disk space size on each of the plurality of host computer systems.The method of claim 14, wherein if the number of virtual CPUs in the VM request (510) is greater than the value of the hardware multi-threading parameter (1630), selecting the one of the plurality of host computer systems that includes a plurality of CPUs each having a plurality of hardware threads.The method of any of claims 15 to 25 when dependent on claim 15, further comprising changing the size of the VM using the hardware multi-threading parameter (1630).The method of claim 14, further comprising: in addition to the number of CPUs, determining a memory size and a disk storage size available on a plurality of host computer systems on which virtual machines could be provided, wherein the virtual machine (510) (VM) request further includes: a memory requirement (520) indicating a minimum memory size for the VM; and a disk requirement (530) indicating a minimum disk size for the VM; wherein a first value of the hardware multithreading parameter (1630) indicates that hardware multithreading is off, a second value of the hardware multithreading parameter indicates a numerical value for a number of hardware threads, and a third value of the hardware multithreading parameter indicates that the selected host computer system is selected regardless of whether hardware threading is on on the selected host computer system.A computer program comprising program code means configured such that the method of any of claims 14 to 27 is performed when said program is executed on a computer.

Citation Information

Patent Citations

  • Semiconductor device

    EP2645236A2

  • Semiconductor device

    EP2660714A2

  • Method and apparatus for assignment of virtual resources within a cloud environment

    US20130031559A1