CN116339917A - Data thermal migration method and device of terminal equipment, electronic equipment and readable medium - Google Patents

Data thermal migration method and device of terminal equipment, electronic equipment and readable medium Download PDF

Info

Publication number
CN116339917A
CN116339917A CN202310287568.5A CN202310287568A CN116339917A CN 116339917 A CN116339917 A CN 116339917A CN 202310287568 A CN202310287568 A CN 202310287568A CN 116339917 A CN116339917 A CN 116339917A
Authority
CN
China
Prior art keywords
instruction
synchronization
terminal device
dirty page
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310287568.5A
Other languages
Chinese (zh)
Inventor
秦正
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Information Technology Co Ltd
Original Assignee
Jingdong Technology Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Information Technology Co Ltd filed Critical Jingdong Technology Information Technology Co Ltd
Priority to CN202310287568.5A priority Critical patent/CN116339917A/en
Publication of CN116339917A publication Critical patent/CN116339917A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a data thermal migration method, a device, an electronic device and a readable medium of a terminal device, wherein the data thermal migration method of the terminal device comprises the following steps: a dirty page synchronization starting instruction is sent to first terminal equipment, and the first terminal equipment responds to the dirty page synchronization instruction to send a dirty page information state synchronization instruction to a target node virtual machine; after the transmission of the dirty page starting synchronization instruction is completed, controlling the source node virtual machine to stop processing and indicating the first terminal equipment to perform equipment state synchronization, and transmitting the synchronized equipment state to the second terminal equipment by the first terminal equipment; after the synchronization of the device state is detected to be completed, a recovery instruction is sent to the first terminal device, and the first terminal device reenters the working state according to the recovery instruction. By the embodiment of the disclosure, the standardization of the equipment thermal migration is realized, the software adaptation amount is reduced, the equipment migration flow is simplified, and the reliability and stability of the equipment migration are improved.

Description

Data thermal migration method and device of terminal equipment, electronic equipment and readable medium
Technical Field
The disclosure relates to the technical field of migration, and in particular relates to a data thermal migration method and device of terminal equipment, electronic equipment and a readable medium.
Background
At present, the implementation of the hardware device thermal migration technology is not universal, and due to the variety of device types, a plurality of technical defects are caused:
(1) In the process of thermal migration, registers with different functions may be exposed to a user, or an abstract interface with custom semantics may be provided to the user, which results in a great deal of additional adaptation work in terms of software when supporting the thermal migration function of the device, which affects the efficiency of thermal migration.
(2) For the migration of hardware devices, any failure can lead to the unavailability of the devices, and in extreme cases, failure and irreversibility can occur, which seriously affects the reliability of the use and the thermal migration of the devices by users.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a data thermomigration method, apparatus, electronic device, and readable medium of a terminal device for overcoming, at least to some extent, problems of inefficiency of thermomigration and the like due to limitations and drawbacks of the related art.
According to a first aspect of an embodiment of the present disclosure, there is provided a data thermal migration method of a terminal device, including: sending a dirty page synchronization starting instruction to the first terminal equipment, so that the first terminal equipment responds to the dirty page synchronization instruction to send an instruction of dirty page information state synchronization to a target node virtual machine; after the sending of the dirty page starting synchronization instruction is completed, controlling a source node virtual machine to stop processing, and indicating to the first terminal equipment to synchronize equipment states, so that the first terminal equipment sends the synchronized equipment states to the second terminal equipment; and after the completion of the synchronization of the equipment state is detected, sending a recovery instruction to the first terminal equipment, so that the first terminal equipment reenters the working state according to the recovery instruction.
In one exemplary embodiment of the disclosure, the first terminal device is configured to send an indication of dirty page information state synchronization to a target node virtual machine based on an RDMA protocol in response to the dirty page synchronization instruction.
In one exemplary embodiment of the present disclosure, the first terminal device is configured to send the synchronized device state to the second terminal device based on an RDMA protocol.
In one exemplary embodiment of the disclosure, the first terminal device is configured to record local dirty page information in response to the dirty page synchronization instruction and send device status to a second terminal device for synchronization based on an RDMA protocol.
In an exemplary embodiment of the present disclosure, after the sending of the instruction to start the dirty page synchronization is completed, controlling the source node virtual machine to perform shutdown processing and indicating to the first terminal device to perform device state synchronization includes: and after the transmission of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing and transmitting a device freezing instruction to the first terminal device.
In an exemplary embodiment of the present disclosure, after the sending of the instruction to start the dirty page synchronization is completed, controlling the source node virtual machine to perform shutdown processing and indicating to the first terminal device to perform device state synchronization further includes: and after the transmission of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing and transmitting a dirty page stopping synchronous instruction to the first terminal equipment.
In an exemplary embodiment of the present disclosure, after the sending of the instruction to start the dirty page synchronization is completed, controlling the source node virtual machine to perform shutdown processing and indicating to the first terminal device to perform device state synchronization further includes: and after the transmission of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing and transmitting a loading device state instruction to the first terminal device.
According to a second aspect of the embodiments of the present disclosure, there is provided a data thermal migration apparatus of a terminal device, including: the sending module is configured to send a dirty page synchronization starting instruction to the first terminal device, so that the first terminal device responds to the dirty page synchronization instruction to send an instruction of dirty page information state synchronization to a target node virtual machine; the synchronization module is arranged for controlling the source node virtual machine to stop processing and indicating the first terminal equipment to perform equipment state synchronization after the transmission of the dirty page starting synchronization instruction is completed, so that the first terminal equipment transmits the synchronized equipment state to the second terminal equipment; the sending module is configured to send a recovery instruction to the first terminal device after the completion of the synchronization of the device state is detected, so that the first terminal device reenters the working state according to the recovery instruction.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a memory; and a processor coupled to the memory, the processor configured to perform the method of any of the above based on instructions stored in the memory.
According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a program which, when executed by a processor, implements a data thermomigration method of a terminal device as set forth in any one of the above.
According to the method, the device and the system for achieving the equipment thermal migration, a dirty page synchronization starting instruction is sent to the first terminal device, the first terminal device responds to the dirty page synchronization instruction and sends an instruction of dirty page information state synchronization to the target node virtual machine, after the dirty page synchronization starting instruction is sent, the source node virtual machine is controlled to stop processing and indicates the first terminal device to conduct equipment state synchronization, the first terminal device sends the synchronized equipment state to the second terminal device, then after the equipment state synchronization is detected to be completed, a recovery instruction is sent to the first terminal device, the first terminal device reenters the working state according to the recovery instruction, standardization of equipment thermal migration is achieved, software adaptation quantity is reduced, equipment migration flow is simplified, and equipment migration reliability and stability are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 illustrates a schematic diagram of an exemplary system architecture for a development scheme for business metric data to which embodiments of the present invention may be applied;
fig. 2 is a flowchart of a data thermomigration method of a terminal device in an exemplary embodiment of the present disclosure;
FIG. 3 is a flow chart of another method of data thermomigration for a terminal device in an exemplary embodiment of the present disclosure;
fig. 4 is a flowchart of another data thermomigration method of a terminal device in an exemplary embodiment of the present disclosure;
FIG. 5 is a flow chart of another method of data thermomigration for a terminal device in an exemplary embodiment of the present disclosure;
FIG. 6 is an interactive schematic diagram of a data thermal migration scheme of a terminal device in an exemplary embodiment of the present disclosure;
fig. 7 is a block diagram of a data thermomigration apparatus of a terminal device in an exemplary embodiment of the present disclosure;
fig. 8 is a block diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are only schematic illustrations of the present disclosure, in which the same reference numerals denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
Prior to the description of the embodiments, technical terms related to the present disclosure will be explained and explained first.
mysql dirty page: when the content of the memory data page is inconsistent with that of the disk data page, the memory page is called as a dirty page; after the memory data is written into the disk, the data on the memory page is consistent with the data on the disk page, and we call the memory page a clean page.
RDMA: remote Direct Memroy Access RDMA, as a faster and lighter-weight network communication, provides low latency characteristics using Kernel Bypass and Zero Copy techniques, while reducing CPU occupation, reducing memory bandwidth bottlenecks, and providing very high bandwidth utilization. In addition, RDMA provides IO-based channels that allow an application to directly read and write to remote virtual memory through an RDMA device.
FIG. 1 illustrates a schematic diagram of an exemplary system architecture for a development scheme for business metric data to which embodiments of the present invention may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, the server 105 may be a server cluster formed by a plurality of servers.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. The terminal devices 101, 102, 103 may be various electronic devices with display screens including, but not limited to, smartphones, tablet computers, portable computers, desktop computers, and the like.
In some embodiments, the method for developing the service indicator data provided by the embodiments of the present invention is generally performed by the server 105, and accordingly, the developing device of the service indicator data is generally disposed in the terminal device 103 (may also be the terminal device 101 or 102). In other embodiments, some terminals may have similar functionality as server devices to perform the method.
The following describes example embodiments of the present disclosure in detail with reference to the accompanying drawings.
Fig. 2 is a flowchart of a data thermomigration method of a terminal device in an exemplary embodiment of the present disclosure.
Referring to fig. 2, the data thermomigration method of the terminal device may include:
step S202, a dirty page synchronization starting instruction is sent to the first terminal equipment, and the first terminal equipment responds to the dirty page synchronization instruction and sends an instruction of dirty page information state synchronization to a target node virtual machine.
Step S204, after the sending of the dirty page starting synchronization instruction is completed, the source node virtual machine is controlled to stop processing and instruct the first terminal device to perform device state synchronization, so that the first terminal device sends the synchronized device state to the second terminal device.
Step S206, after the completion of the synchronization of the device state is detected, a recovery instruction is sent to the first terminal device, so that the first terminal device reenters the working state according to the recovery instruction.
According to the method, the device and the system for achieving the equipment thermal migration, a dirty page synchronization starting instruction is sent to the first terminal device, the first terminal device responds to the dirty page synchronization instruction and sends an instruction of dirty page information state synchronization to the target node virtual machine, after the dirty page synchronization starting instruction is sent, the source node virtual machine is controlled to stop processing and indicates the first terminal device to conduct equipment state synchronization, the first terminal device sends the synchronized equipment state to the second terminal device, then after the equipment state synchronization is detected to be completed, a recovery instruction is sent to the first terminal device, the first terminal device reenters the working state according to the recovery instruction, standardization of equipment thermal migration is achieved, software adaptation quantity is reduced, equipment migration flow is simplified, and equipment migration reliability and stability are improved.
Next, each step of the data thermomigration method of the terminal device will be described in detail.
In one exemplary embodiment of the disclosure, the first terminal device is configured to send an indication of dirty page information state synchronization to a target node virtual machine based on an RDMA protocol in response to the dirty page synchronization instruction.
In one exemplary embodiment of the present disclosure, the first terminal device is configured to send the synchronized device state to the second terminal device based on an RDMA protocol.
In one exemplary embodiment of the disclosure, the first terminal device is configured to record local dirty page information in response to the dirty page synchronization instruction and send device status to a second terminal device for synchronization based on an RDMA protocol.
Fig. 3 is a flowchart of a data thermomigration method of a terminal device in an exemplary embodiment of the present disclosure.
Referring to fig. 3, the data thermomigration method of the terminal device may include:
step S302, a dirty page synchronization instruction is sent to the first terminal device, and the first terminal device sends an indication of dirty page information state synchronization to a target node virtual machine in response to the dirty page synchronization instruction.
Step S304, after the sending of the dirty page starting synchronization instruction is completed, the source node virtual machine is controlled to stop processing and instruct the first terminal equipment to perform equipment state synchronization, and the first terminal equipment sends the synchronized equipment state to the second terminal equipment.
And step S306, after the transmission of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing and transmitting a device freezing instruction to the first terminal device.
Step S308, after detecting that the synchronization of the device state is completed, sending a recovery instruction to the first terminal device, where the first terminal device reenters the working state according to the recovery instruction.
In the above embodiment, since the virtual machine has been stopped, the operation of the access device will not be generated any more, the device is frozen so that the device will not accept any external request any more, and the integrity of the data is ensured
Fig. 4 is a flowchart of a data thermomigration method of a terminal device in an exemplary embodiment of the present disclosure.
Referring to fig. 4, the data thermomigration method of the terminal device may include:
step S402, a dirty page synchronization starting instruction is sent to the first terminal equipment, and the first terminal equipment responds to the dirty page synchronization instruction and sends an instruction of dirty page information state synchronization to a target node virtual machine.
Step S404, after the sending of the instruction for starting the dirty page synchronization is completed, controlling the source node virtual machine to stop processing and indicating the first terminal equipment to perform equipment state synchronization, and sending the synchronized equipment state to the second terminal equipment by the first terminal equipment.
And step S406, after the transmission of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing and transmitting a device freezing instruction to the first terminal device.
Step S408, after the sending of the instruction for starting the dirty page synchronization is completed, controlling the source node virtual machine to perform shutdown processing and sending an instruction for stopping the dirty page synchronization to the first terminal device.
Step S410, after detecting that the synchronization of the device state is completed, sends a recovery instruction to the first terminal device, and the first terminal device reenters the working state according to the recovery instruction.
Fig. 5 is a flowchart of a data thermomigration method of a terminal device in an exemplary embodiment of the present disclosure.
Referring to fig. 5, the data thermomigration method of the terminal device may include:
step S502, a dirty page synchronization instruction is sent to the first terminal device, and the first terminal device sends an indication of dirty page information state synchronization to a target node virtual machine in response to the dirty page synchronization instruction.
Step S504, after the sending of the dirty page starting synchronization instruction is completed, controlling the source node virtual machine to stop processing and indicating the first terminal equipment to perform equipment state synchronization, and sending the synchronized equipment state to the second terminal equipment by the first terminal equipment.
And step S506, after the transmission of the dirty page synchronous command is completed, controlling the source node virtual machine to stop processing and transmitting a device freezing command to the first terminal device.
And step S508, after the transmission of the dirty page synchronous command is completed, controlling the source node virtual machine to stop processing and transmitting the dirty page synchronous command to the first terminal equipment.
And step S510, after the transmission of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing and transmitting a loading device state instruction to the first terminal device.
Step S512, after detecting that the synchronization of the device state is completed, sends a recovery instruction to the first terminal device, and the first terminal device reenters the working state according to the recovery instruction.
In one exemplary embodiment of the disclosure, the first terminal device records local dirty page information in response to the dirty page synchronization instruction and sends device status to a second terminal device for synchronization based on an RDMA protocol.
Corresponding to the above method embodiment, the present disclosure further provides an interaction process of a data thermal migration scheme of a terminal device, where the related interaction device includes a first terminal device 602, a source node virtual machine 604, a target node virtual machine 606, and a second terminal device 608, as shown in fig. 6, and the interaction process specifically includes the following nodes:
(A) The source node sends a command to the first end device 602 (source node device) to turn on dirty page synchronization.
(B) The device turns on the dirty page synchronization function and the device needs to start recording the dirty page information generated by itself from this time and record it in some form, and the recorded dirty page information is directly synchronized to the target node virtual machine 606 through RDMA instead of TCP.
(C) After the source node virtual machine 604 is powered off, the source node sends a command to the first terminal device 602: the device freezes, at which point the operation of the access device is no longer generated because the source node virtual machine 604 has stopped, such that the first terminal device 602 no longer accepts any extraneous requests to ensure data integrity.
(D) The source node sends a command to the first terminal device 602: dirty page synchronization is stopped.
(E) The source node sends a command to the first terminal device 602: the device state is loaded, and the first terminal device 602 needs to record the device state information at this time, so as to prepare for synchronization.
(F) The first terminal device 602 directly synchronizes device state information to the second terminal device 608 (destination node device) via RDMA, and the transfer of the device information satisfies the RDMA standard, which is defined by the format hardware designer of the device information.
(G) The source node sends a command to the first terminal device 602: the device state is restored, at which point the source node device may continue to receive requests to serve the next virtual machine.
Corresponding to the method embodiment, the disclosure further provides a data thermomigration device of the terminal device, which can be used for executing the method embodiment.
Fig. 7 is a block diagram of a data thermomigration apparatus of a terminal device in an exemplary embodiment of the present disclosure.
Referring to fig. 7, a data thermomigration apparatus 700 of a terminal device may include:
the sending module 702 is configured to send a dirty page synchronization instruction to the first terminal device, so that the first terminal device sends an indication of dirty page information state synchronization to a target node virtual machine in response to the dirty page synchronization instruction.
And the synchronization module 704 is configured to control the source node virtual machine to stop processing and instruct the first terminal device to perform device state synchronization after the transmission of the dirty page starting synchronization instruction is completed, so that the first terminal device transmits the synchronized device state to the second terminal device.
The sending module 702 is configured to send a recovery instruction to the first terminal device after the completion of the synchronization of the device state is detected, so that the first terminal device reenters the working state according to the recovery instruction.
In one exemplary embodiment of the disclosure, the first terminal device is configured to send an indication of dirty page information state synchronization to a target node virtual machine based on an RDMA protocol in response to the dirty page synchronization instruction.
In one exemplary embodiment of the present disclosure, the first terminal device is configured to send the synchronized device state to the second terminal device based on an RDMA protocol.
In one exemplary embodiment of the disclosure, the first terminal device is configured to record local dirty page information in response to the dirty page synchronization instruction and send device status to a second terminal device for synchronization based on an RDMA protocol.
In an exemplary embodiment of the present disclosure, the sending module 702 is further configured to:
and after the transmission of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing and transmitting a device freezing instruction to the first terminal device.
In an exemplary embodiment of the present disclosure, the sending module 702 is further configured to:
and after the transmission of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing and transmitting a dirty page stopping synchronous instruction to the first terminal equipment.
In an exemplary embodiment of the present disclosure, the sending module 702 is further configured to:
and after the transmission of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing and transmitting a loading device state instruction to the first terminal device.
Since the functions of the apparatus 700 are described in detail in the corresponding method embodiments, the disclosure is not repeated herein.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 800 according to such an embodiment of the invention is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 8, the electronic device 800 is embodied in the form of a general purpose computing device. Components of electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one memory unit 820, and a bus 830 connecting the various system components, including the memory unit 820 and the processing unit 810.
Wherein the storage unit stores program code that is executable by the processing unit 810 such that the processing unit 810 performs steps according to various exemplary embodiments of the present invention described in the above section of the "exemplary method" of the present specification. For example, the processing unit 810 may perform the methods as shown in the embodiments of the present disclosure.
The storage unit 820 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 8201 and/or cache memory 8202, and may further include Read Only Memory (ROM) 8203.
Storage unit 820 may also include a program/utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 830 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 840 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 800, and/or any device (e.g., router, modem, etc.) that enables the electronic device 800 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 850. Also, electronic device 800 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 860. As shown, network adapter 860 communicates with other modules of electronic device 800 over bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 800, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
The program product for implementing the above-described method according to an embodiment of the present invention may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may be run on a terminal device such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. The data thermal migration method of the terminal equipment is characterized by comprising the following steps of:
sending a dirty page synchronization starting instruction to the first terminal equipment, so that the first terminal equipment responds to the dirty page synchronization instruction to send an instruction of dirty page information state synchronization to a target node virtual machine;
after the sending of the dirty page starting synchronization instruction is completed, controlling a source node virtual machine to stop processing, and indicating to the first terminal equipment to synchronize equipment states, so that the first terminal equipment sends the synchronized equipment states to the second terminal equipment;
and after the completion of the synchronization of the equipment state is detected, sending a recovery instruction to the first terminal equipment, so that the first terminal equipment reenters the working state according to the recovery instruction.
2. The method for data thermomigration of terminal equipment according to claim 1, wherein,
the first terminal device is configured to send an indication of dirty page information state synchronization to a target node virtual machine based on an RDMA protocol in response to the dirty page synchronization instruction.
3. The method for data thermomigration of terminal equipment according to claim 1, wherein,
the first terminal device is configured to send the synchronized device state to the second terminal device based on an RDMA protocol.
4. The method for data thermomigration of terminal equipment according to claim 1, wherein,
the first terminal device is configured to record local dirty page information in response to the dirty page synchronization instruction and send device status to a second terminal device for synchronization based on an RDMA protocol.
5. The data thermomigration method of terminal equipment according to claim 1, wherein controlling the source node virtual machine to perform a shutdown process and indicating to the first terminal equipment to perform equipment state synchronization after completing the transmission of the open dirty page synchronization instruction comprises:
and after the transmission of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing and transmitting a device freezing instruction to the first terminal device.
6. The method for data thermal migration of a terminal device according to claim 1, wherein controlling the source node virtual machine to perform a shutdown process and indicating to the first terminal device to perform device state synchronization after the transmission of the open dirty page synchronization instruction is completed further comprises:
and after the sending of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing, and sending a dirty page stopping synchronous instruction to the first terminal equipment.
7. The data thermomigration method of terminal equipment according to claim 1, wherein after the completion of the transmission of the open dirty page synchronization instruction, controlling the source node virtual machine to perform a shutdown process and indicating to the first terminal equipment that equipment state synchronization is performed further comprises:
and after the sending of the dirty page starting synchronous instruction is completed, controlling the source node virtual machine to stop processing, and sending a loading device state instruction to the first terminal device.
8. A data thermomigration apparatus of a terminal device, characterized in that the data thermomigration apparatus of the terminal device comprises:
the sending module is configured to send a dirty page synchronization starting instruction to the first terminal device, so that the first terminal device responds to the dirty page synchronization instruction to send an instruction of dirty page information state synchronization to a target node virtual machine;
the synchronization module is arranged for controlling the source node virtual machine to stop processing and indicating the first terminal equipment to perform equipment state synchronization after the transmission of the dirty page starting synchronization instruction is completed, so that the first terminal equipment transmits the synchronized equipment state to the second terminal equipment;
the sending module is configured to send a recovery instruction to the first terminal device after the completion of the synchronization of the device state is detected, so that the first terminal device reenters the working state according to the recovery instruction.
9. An electronic device, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the data thermomigration method of the terminal device of any of claims 1-7 based on instructions stored in the memory.
10. A computer readable storage medium having stored thereon a program which when executed by a processor implements a data thermomigration method of a terminal device according to any of claims 1-7.
CN202310287568.5A 2023-03-22 2023-03-22 Data thermal migration method and device of terminal equipment, electronic equipment and readable medium Pending CN116339917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310287568.5A CN116339917A (en) 2023-03-22 2023-03-22 Data thermal migration method and device of terminal equipment, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310287568.5A CN116339917A (en) 2023-03-22 2023-03-22 Data thermal migration method and device of terminal equipment, electronic equipment and readable medium

Publications (1)

Publication Number Publication Date
CN116339917A true CN116339917A (en) 2023-06-27

Family

ID=86889007

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310287568.5A Pending CN116339917A (en) 2023-03-22 2023-03-22 Data thermal migration method and device of terminal equipment, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN116339917A (en)

Similar Documents

Publication Publication Date Title
EP4033374A1 (en) Method and device for synchronizing node data
KR20200070085A (en) Method and apparatus for processing information
CN110989926B (en) Fault magnetic disc slot positioning method and device and electronic equipment
CN110019498B (en) Log synchronization method and device, storage medium and electronic equipment
CN111190766A (en) HBase database-based cross-machine-room cluster disaster recovery method, device and system
CN112883007A (en) Native protocol message processing method and device for Linux system
CN109873861B (en) Cross-block chain node interaction method and device, storage medium and electronic equipment
CN113377770A (en) Data processing method and device
US10949095B2 (en) Method, network adapters and computer program product using network adapter memory to service data requests
CN116339917A (en) Data thermal migration method and device of terminal equipment, electronic equipment and readable medium
CN113660123B (en) Virtual switch upgrading method, device, electronic equipment and storage medium
US20160011791A1 (en) Storage control apparatus, storage system, and program
US20130144977A1 (en) Shared-bandwidth multiple target remote copy
CN114827268A (en) Remote debugging method and device
KR101772547B1 (en) Power consumption reduction in a computing device
US9223513B2 (en) Accessing data in a dual volume data storage system using virtual identifiers
CN116601616A (en) Data processing device, method and related equipment
CN110764932A (en) Data processing method, system, medium and computing device
CN110795408A (en) Data processing method and device based on object storage, server and storage medium
CN115827415B (en) System process performance test method, device, equipment and computer medium
WO2023174040A1 (en) Picture processing method and related device
CN116340043A (en) Exception handling method and device for code logic flow, electronic equipment and readable medium
CN115934607A (en) Microkernel data transmission method, system, device and storage medium
CN114489729A (en) Cluster node configuration changing method, device, medium and electronic equipment
CN114385104A (en) Method, device, medium and equipment for transmitting display data between terminals

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination