Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2016-08-24
SUZHOU INST FOR ADVANCED STUDY USTC
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The LHP problem refers to: in a virtualized environment, since the VCPU (virtual CPU) may be scheduled out of the physical processor by the hypervisor of the virtual machine operating system, when the VCPU that is scheduled to go offline is just in the critical section state of the client system, and When the time interval between being rescheduled back to the physical processor is too long, it may cause the lock contender threads running on other VCPUs to spin for too long, and a large amount of time slices are wasted

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
  • Processing method of spin lock lhp phenomenon in virtualization environment
  • Processing method of spin lock lhp phenomenon in virtualization environment
  • Processing method of spin lock lhp phenomenon in virtualization environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0035] The spin lock processing system in the virtual machine environment of this embodiment includes a communication module for communicating between the host operating system and the guest virtual machine operating system, a thread scheduling module for the host operating system to schedule threads, and a guest virtual machine The thread rollback module in the operating system; the communication module is used for the host operating system to send an NMI event to the VCPU of the guest virtual machine operating system and to call the vmcall instruction after the guest virtual machine operating system finishes processing the NMI event to switch the VCPU back to the host operating system state; the thread scheduling module needs to judge whether the corresponding thread is a VCPU thread before thread scheduling; if it is a VCPU thread, it sends an NMI event to the VCPU through the communication module; when the communication module switches back to the host operating system state...

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 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.

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/48G06F9/455
Inventor 吴俊敏沈愐赵小雨
Owner SUZHOU INST FOR ADVANCED STUDY USTC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products