Unlock instant, AI-driven research and patent intelligence for your innovation.

Virtualization technology-based method of saving process state in client machine in real time

A virtualization technology and process state technology, which is applied in the field of process state preservation transparent to clients, and can solve problems such as lack of process state consistency and large space overhead.

Inactive Publication Date: 2017-10-10
INST OF INFORMATION ENG CHINESE ACAD OF SCI
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If you need to back up the entire virtual machine directly for a specific process, it will bring a large space overhead
Moreover, the existing process migration technology has a certain delay, and it is lacking in the consistent state of the process

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Virtualization technology-based method of saving process state in client machine in real time
  • Virtualization technology-based method of saving process state in client machine in real time

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] In order to back up the state of a specific process, a fork system call is injected into the process. When the client resumes execution, this system call will be executed to automatically create a child process. Here, this child process is used as a backup process, while the parent process executes normally. After the parent process calls the child process created by fork, it also needs to call the wait function to wait for the state of the child process to change. The wait function will block the parent process. When the child process finishes running, the wait function returns, and the parent process receives the child process completion notification Reclaim resources for the child process after the signal. If the parent process does not call the wait function to wait for the running state of the child process to change, the resources will not be recovered after the child process finishes running and it will become a zombie process. However, if the parent process fini...

Embodiment 2

[0031] In order to achieve process state backup, the created process should be suspended in this state and should not be scheduled for execution. Process such as figure 2 shown. In order to prevent the process from being scheduled, the sched_yield system call is injected to make the process sleep. The injection method is the same as fork, that is, modify the eax register to the sched_yield system call number, and modify the eip register to point to the int80 instruction address. If it is detected that the backup process is scheduled, inject sched_yield until the process needs to be resumed.

[0032] If the VMM receives the process state recovery signal, when the backup process is stuck, it needs to resume its operation. At this time, it is not necessary to continue to inject the sched_yield system call, but to restore the modified code content. However, there is more than one process in the sleep state at this time, and there may be other backup processes that need to be r...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a virtualization technology-based method of saving a process state in a client machine in real time. The method comprises: 1) notifying a PID (Process Identification) of a specific process in the client machine to a virtual machine monitor (VMM); 2) monitoring process scheduling in the virtual machine monitor, actively being, by the client machine, caught into the virtual machine monitor when the specific process is scheduled, and injecting code at a specific location in a client machine memory by the virtual machine monitor; 3) executing the injected code to complete a backup of the process state after execution of the client machine is recovered; 4) realizing actively being caught of the client machine through the injected code, and changing a control flow of current processes of the client machine according to the caught process; and 5) carrying out recovery on the location of code injection when process context needs to be recovered, and waking the backup process state up at the same time. According to the method, backing-up is carried out in a process entity form when the process context state needs to be saved in the client machine, then the process can be directly run when recovery is needed, and extra memory recovery work is not needed.

Description

technical field [0001] The invention belongs to the field of virtualization technology, and relates to a method for saving a process state in a client computer in real time based on virtualization technology, in particular to a method for saving a process state transparent to the client computer without modifying the client computer kernel based on the virtualization technology . Background technique [0002] The main role of virtualization technology is to solve the efficiency of physical resource usage. The virtual machine monitor replaces the layer where the operating system kernel is located, and abstracts the underlying physical resources. After the allocation and management of the virtualization layer, the hardware is shared by all virtual machines on the upper layer, and the virtual machines on the upper layer are created, scheduled and allocated resources by the virtualization layer. The virtual machines above the virtualization layer are isolated from each other, a...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/455G06F11/14
CPCG06F9/45558G06F11/1458G06F11/1469
Inventor 贾晓启李津津杜海超白璐武希耀唐静
Owner INST OF INFORMATION ENG CHINESE ACAD OF SCI
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More