The field of the invention is data processing, or, more specifically, methods, apparatus, and products for virtual machine mobility for virtual machines using remote direct memory access (RDMA) connections.
The development of the EDVAC computer system of 1948 is often cited as the beginning of the computer era. Since that time, computer systems have evolved into extremely complicated devices. Today's computers are much more sophisticated than early systems such as the EDVAC. Computer systems typically include a combination of hardware and software components, application programs, operating systems, processors, buses, memory, input/output devices, and so on. As advances in semiconductor processing and computer architecture push the performance of the computer higher and higher, more sophisticated computer software has evolved to take advantage of the higher performance of the hardware, resulting in computer systems today that are much more powerful than just a few years ago.
Virtual machine mobility for virtual machines using remote direct memory access (RDMA) connections, including: receiving a virtual machine (VM) mobility request to transfer a virtual machine from a source host to a destination host; migrating application data transfer from an RDMA connection of the virtual machine to a Transmission Control Protocol (TCP) connection of the virtual machine, wherein the RDMA connection and the TCP connection are facilitated by a physical network adapter; migrating the TCP connection to a virtual network adapter of the virtual machine; and transferring the virtual machine from the source host to the destination host.
The foregoing and other objects, features and advantages of the invention will be apparent from the following more particular descriptions of exemplary embodiments of the invention as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts of exemplary embodiments of the invention.
Exemplary methods, apparatus, and products for virtual machine mobility for virtual machines using remote direct memory access (RDMA) connections in accordance with the present invention are described with reference to the accompanying drawings, beginning with
The source host 102 and destination host 104 are computing devices (e.g., servers) configured to execute and maintain virtual machines of a cloud computing environment. Cloud computing allows for on-demand self-service and scalability for virtual machines. Where the system requirements of a virtual machine exceed the capacity of the server on which the virtual machine is deployed (e.g., the source host 102), virtual machine mobility allows for the virtual machine to be migrated to another server with more available resources (e.g., the destination host 104).
Remote Direct Memory Access (RDMA) allows for the transfer of data between computing devices on the same network (e.g., a source host 102 and peer device 108) by allowing a network adapter to directly write to or read from application memory, eliminating the need to write this application data to a buffer of the operating system. This allows for high-speed, low-latency data transfers between computing devices on the same network. However, RDMA traditionally does not support VM mobility.
A Shared Memory Communications over RDMA (SMC-R) layer allows for socket-based applications to use RDMA without changing the underlying application. While transferring application data using the RDMA connection, SMC-R also maintains a Transmission Control Protocol (TCP) connection using TCP keepalives. Using the SMC-R framework, virtual machine mobility may be implemented for virtual machine using RDMA connections.
The source host 102 may execute a virtual machine maintaining one or more RDMA connections (e.g., with a peer device 108). The source host 102 may transfer application data to and from the peer device 108 via the RDMA connection. As an example, the RDMA connection may be facilitated by an SCM-R layer. The source host 102 may receive a virtual machine mobility request to transfer the virtual machine from the source host 102 to the destination host 104. For example, a hypervisor monitoring the virtual machines of the cloud computing environment may generate the virtual machine mobility request. The hypervisor may comprise a process executed in the source host 102 or the destination host 104, or executed in another computing device.
In response to the request, the source host 102 may migrate application data transfer from the RDMA connection of the virtual machine to a TCP connection of the virtual machine, wherein the RDMA connection and the TCP connection are facilitated by a physical network adapter (e.g., of the source host 102). Migrating application data transfer from the RDMA connection of the virtual machine to the TCP connection of the virtual machine causes application data transfer to occur via the TCP connection instead of the RDMA connection. For example, assume that an SMC-R layer facilitating RDMA connections of the virtual machine also facilitates TCP connections, such that each RDMA connection has a corresponding TCP connection. Each TCP connection connects the source host 102 to the peer device 108 connected via the corresponding RDMA connection. As application data is transferred using the RDMA connections, the TCP connections are maintained using TCP keepalives.
Migrating application data transfer from the RDMA connection of the virtual machine to the TCP connection of the virtual machine may comprise blocking writes to the RDMA connection. For example, a message may be sent to each peer device 108 communicating with the source host 102 via the RDMA connection to block writes to the RDMA connection. Thus, no additional application data is queued for transfer between the source host 102 and the peer device 108.
Migrating application data transfer from the RDMA connection of the virtual machine to the TCP connection of the virtual machine may also comprise moving one or more buffers of a send queue of the RDMA connection to a send queue (e.g., a send buffer) of the TCP connection. The send queue of the RDMA connection stores data written to the RDMA connection for transfer that has not yet been sent to the corresponding peer device 108. Accordingly, the one or more buffers of the send queue of the RDMA connection may be moved to the send queue of the TCP connection to allow later transfer via the TCP connection.
Migrating application data transfer from the RDMA connection of the virtual machine to the TCP connection of the virtual machine may also comprise copying any unread data in a Remote Memory Buffer Element of the RDMA connection to the receive side of the socket. Thus, the unread data may be subsequently processed from the socket following the termination of the RDMA connection.
Migrating application data transfer from the RDMA connection of the virtual machine to the TCP connection of the virtual machine may also comprise removing the RDMA connection. Removing the RDMA connection may comprise closing the connection, freeing any allocated resources associated with the connection (e.g., queue pairs, memory, etc.), or otherwise breaking down the RDMA connection.
After migrating application data transfer from the RDMA connection of the virtual machine to the TCP connection of the virtual machine, the source host may migrate the TCP connection to a virtual network adapter of the virtual machine. Migrating the TCP connection to the virtual network adapter causes the TCP connection to be handled via the virtual network adapter instead of the physical network adapter. The virtual network adapter may be generated by the source host 102 in response to receiving the virtual machine mobility request. The virtual network adapter may be configured to serve as a secondary network adapter to the primary physical network adapter.
Migrating the TCP connection to the virtual network adapter of the virtual machine may comprise removing the physical network adapter from the virtual machine. Removing the physical network adapter from the virtual machine may comprise disassociating the physical network adapter from the virtual machine. For example, Dynamic Logical Partitioning may be used to reconfigure the virtual machine to disassociate the physical network adapter from the virtual machine. Removing the physical network adapter from the virtual machine may cause the TCP connection to fail over to the virtual network adapter, thereby migrating the TCP connection to the virtual network adapter.
Although the discussion set forth above with respect to migrating application data transfer from an RDMA connection of the virtual machine to a Transmission Control Protocol (TCP) connection of the virtual machine and migrating the TCP connection to a virtual network adapter is discussed with respect to one RDMA connection, it is understood that the source host 102 may use multiple RDMA connections concurrently. Accordingly, application data transfer may be migrated from each of the RDMA connections to corresponding TCP connections. Each of these TCP connections may then be migrated to the virtual network adapter.
The source host 102 may then migrate the virtual machine from the source host 102 to the destination host 104. Migrating the virtual machine from the source host 102 to the destination host 104 causes the virtual machine to be executed on the destination host 104. The destination host 104 may then resume application data transfer to the one or more peer devices 108 using the TCP connections of the virtual machine.
The destination host 104 may migrate application data transfer from the TCP connection to another RDMA connection. Where multiple TCP connections are active in the virtual machine, multiple RDMA connections may be created. Each of the TCP connections may then be migrated to a corresponding RDMA connection. Migrating application data transfer from the TCP connection to another RDMA connection may comprise sending a request to a corresponding peer device 108 to migrate application data transfer to an RDMA connection using SMC-R. The receiving peer device 108 may then send a positive or negative acknowledgement. Where the peer device 108 agrees to migrate, both the destination host 104 and peer device 108 may refrain from sending any additional application data over the TCP connection. The destination host 104 and peer device 108 may also wait for acknowledgements (e.g., ACKs) for all unacknowledged data. The destination host 104 may then create a new RDMA connection. Unread data from the receive queue of the TCP connection may be moved to an RMBE of the new RDMA connection. The data in the send queue of the TCP connection may be moved to the send queue of the new RDMA connection. Application data transfer may then resume via the new RDMA connection.
The destination host 104 may also continue to use the TCP connection for application data transfer instead of an RDMA connection. For example, where a peer device 108 declines a request to migrate the application data transfer to RDMA, the destination host 104 may continue to use the TCP connection. As another example, where the destination host 104 lacks sufficient resources to create a new RDMA connection, the destination host 104 may instead use the TCP connection.
The arrangement of servers and other devices making up the exemplary system illustrated in
Virtual machine mobility for virtual machine using remote direct memory access (RDMA) connections in accordance with the present invention is generally implemented with computers, that is, with automated computing machinery. For further explanation, therefore,
Stored in RAM 204 is an operating system 210. Operating systems useful in computers configured for virtual machine mobility for virtual machine using remote direct memory access according to embodiments of the present invention include UNIX™, Linux™, Microsoft Windows™, AIX™, IBM's i OS™, and others as will occur to those of skill in the art. The operating system 208 in the example of
The computer 102 of
The example computer 102 of
The exemplary computer 102 of
The communications adapter 232 is communicatively coupled to a network 106 that may include a source host 102, a destination host 104 and/or one or more peer devices.
For further explanation,
The method of
The method of
Although the discussion set forth above with respect to migrating application data transfer from an RDMA connection of the virtual machine to a Transmission Control Protocol (TCP) connection of the virtual machine 310 and migrating the TCP connection to a virtual network adapter is discussed with respect to one RDMA connection, it is understood that the source host 102 may use multiple RDMA connections concurrently. Accordingly, application data transfer may be migrated from each of the RDMA connections to corresponding TCP connections. Each of these TCP connections may then be migrated to the virtual network adapter.
Method of
For further explanation,
The method of
The method of
For further explanation,
The method of
For further explanation,
The method of
The method of
The method of
The method of
For further explanation,
The method of
In view of the explanations set forth above, readers will recognize that the benefits of virtual machine mobility for virtual machine using remote direct memory access (RDMA) connections according to embodiments of the present invention include:
Exemplary embodiments of the present invention are described largely in the context of a fully functional computer system for virtual machine mobility for virtual machine using remote direct memory access (RDMA) connections. Readers of skill in the art will recognize, however, that the present invention also may be embodied in a computer program product disposed upon computer readable storage media for use with any suitable data processing system. Such computer readable storage media may be any storage medium for machine-readable information, including magnetic media, optical media, or other suitable media. Examples of such media include magnetic disks in hard drives or diskettes, compact disks for optical drives, magnetic tape, and others as will occur to those of skill in the art. Persons skilled in the art will immediately recognize that any computer system having suitable programming means will be capable of executing the steps of the method of the invention as embodied in a computer program product. Persons skilled in the art will recognize also that, although some of the exemplary embodiments described in this specification are oriented to software installed and executing on computer hardware, nevertheless, alternative embodiments implemented as firmware or as hardware are well within the scope of the present invention.
The present invention may be a system, a method, and/or a 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 can be a tangible device that can retain 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 device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, 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 disk (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, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device 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 computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, 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 through 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 (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, 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 circuitry, in order to perform aspects of the present invention.
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 understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable 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, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart 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. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
It will be understood from the foregoing description that modifications and changes may be made in various embodiments of the present invention without departing from its true spirit. The descriptions in this specification are for purposes of illustration only and are not to be construed in a limiting sense. The scope of the present invention is limited only by the language of the following claims.
Number | Name | Date | Kind |
---|---|---|---|
8023520 | Barron | Sep 2011 | B2 |
9417996 | Fitzpatrick et al. | Aug 2016 | B2 |
9529623 | Gu | Dec 2016 | B2 |
9882776 | Aybay | Jan 2018 | B2 |
9954979 | Herr et al. | Apr 2018 | B2 |
20060206904 | Watkins | Sep 2006 | A1 |
20130332678 | Fitzpatrick et al. | Dec 2013 | A1 |
20170085683 | Herr et al. | Mar 2017 | A1 |
20180103125 | Ellison et al. | Apr 2018 | A1 |
20200218684 | Sen | Jul 2020 | A1 |
Entry |
---|
Huang et al., High Performance Virtual Machine Migration with RDMA over Modern Interconnects, 2007 IEEE International Conference on Cluster Computing, Sep. 17-20, 2007, Austin, TX, USA, 10 pages. |
Ranadive et al., Toward a Paravirtual vRDMA Device for VMware ESXi Guests, VMware Technical Journal, vol. 1, No. 2, Dec. 2012, pp. 22-27. |
Fan et al., Towards a Lightweight RDMA Para-Virtualization for HPC, COSH-VisorHPC 2017, Jan. 24, 2017, Stockholm, Sweden, ISBN 978-3-00-055564-0, DOI: 10.14459/2017md1344417, 6 pages. |
Ranadive et al., VMWare Paravirtual RDMA, Developer Perspective, OpenFabrics Alliance 13th Annual Workshop 2017, VMWare, Mar. 28, 2017, 16 pages. |
Number | Date | Country | |
---|---|---|---|
20210042139 A1 | Feb 2021 | US |