Processing method of spin lock lhp phenomenon in virtualization environment

A technology of a virtualized environment and a processing method, which is applied in the field of processing the spin-lock LHP phenomenon in a virtualized environment, and can solve problems such as waste of time slices
CN103473135BActive Publication Date: 2016-08-24SUZHOU INST FOR ADVANCED STUDY USTC

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SUZHOU INST FOR ADVANCED STUDY USTC
Publication Date
2016-08-24

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a method for processing the spin lock LHP phenomenon in a virtualized environment, which includes the following steps: (1) The user state of the guest virtual machine enters the kernel of the guest virtual machine through a system call, and the method provided by the operating system kernel of the guest virtual machine is created The copy thread of the current thread, and create a shared data copy by dynamically applying for kernel storage space, and immediately stop the copy thread running; (2) Dynamically check the state of the thread in the guest virtual machine corresponding to the VCPU under the guest virtual operating system, and predict Whether LHP phenomenon occurs; when LHP phenomenon occurs, proceed to step (3); otherwise, proceed to step (4); (3) thread rollback operation: delete the original thread, run the copy thread, and overwrite the corresponding user address space with the shared data copy value (4) Delete the copy thread of the current thread, and release the storage area occupied by the shared data copy, and end after exiting the critical section. The method has little influence on the execution efficiency of the scheduler in the host operating system, and maintains the high efficiency of thread scheduling in the host operating system.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the technical field of virtualization, and in particular relates to a method for processing the phenomenon of spin lock LHP in a virtualization environment. Background technique

[0002] With the rapid development of computer technology, the central processing unit has experienced different development stages from single-core high-frequency to single-core multi-core. In the single-core high-frequency development stage, people focus on increasing the main frequency of a single core. As the development of semiconductor technology encounters bottlenecks, the main frequency of single-core processors stops at about 4GHz. Problems such as exponential growth of power consumption and excessively long pipeline make it impossible to improve the overall performance of the system simply by increasing the main frequency of the core. A multi-core processor distributes tasks between different execution cores on a processor chip, increasing ...

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