The Research of Virtualization on General-purpose Computation on Graphic Processing Unit

Author
ShiLin
Advisor
LiKenLi
School
Hunan University
Major
Applied Computer Technology
Classification
TP391.41 Image recognition device
Degree
Doctoral dissertation
Year
2012
Downloads
223
Citations
1

Request the full text

Abstract

System virtual machine is an important research topic of virtualization, which is thefundamental infrastructure of cloud computing. The system virtual machinetechnology successfully virtualized lots of I/O devices, while the GPU (Graph PrecessUnit) is an exception. In particular, the general precessing ability of GPU (GPGPU)was never fully virtualized in system virtual machine platform. In practice, theacademic circles and VMM industry choose to realize the GPU virtualization inhigher layer: Application Programming Interface (API). Some primitive results whichfocus on the traditional graphic API have been published. CUDA (Compute UnifiedDevice Architecture) is a brand new API directly designed for GPGPU. It provides theability to manipulate the GPU hardware without the help of Graphic API. The rise ofCUDA shows that the virtualization of graphic API is not enough for the GPGPUusing a dedicate API framework: the existing graphic API virtualization have noeffect for CUDA applications. So an independent GPU API framework calls for anindependent virtualization method.In order to improve the usability of GPGPU in virtualization environment, thispaper describes vCUDA, a general-purpose graphics processing unit (GPGPU)computing solution for virtual machines (VMs). vCUDA allows applicationsexecuting within VMs to leverage hardware acceleration, which can be beneficial tothe performance of a class of high-performance computing (HPC) applications. Thekey insights in our design include API call interception/redirection, lazy RPC, adedicated RPC system for VMs and the support for advance features of VMM.With API interception and redirection, Compute Unified Device Architecture(CUDA) applications in VMs can access a graphics hardware device and achieve highcomputing performance in a transparent way, without the modification of theapplication or operating system. The evaluation about the official examples and thirdparty applications show that vCUDA mimics the original CUDA protocol invirtualization environment, all test get the same result as the native environment.Thousands of CUDA APIs could be called in a CUDA application. If vCUDA sendevery API call to remote site at the moment the API is intercepted, the same numberof RPCs will be invoked and the overhead of excessive world switch will beinevitably introduced into the vCUDA system. vCUDA borrowed the idea from thegraphic API virtualization and adopted an optimization mechanism called Lazy RPC to improve the system performance by intelligently batching specific API calls. Therelated experiments show the Lazy RPC reduces the numbers of remote call to30%,and speed up the vCUDA performance to148%.In the current study, vCUDA achieved a near-native performance with the dedicatedRPC system, VMRPC. VMRPC is a light-weight RPC framework specificallydesigned for VMs that leverages heap and stack sharing to circumvent unnecessarydata copying and serialization/deserilization, and achieve high performance. Ourevaluation shows that the throughput of RPC has improved by two orders ofmagnitude. We carried out a detailed analysis of the performance of our framework(vCUDA+VMRPC). Using a number of unmodified official examples from CUDASDK and third-party applications in the evaluation, we observed that CUDAapplications running with vCUDA exhibited a very low performance penalty (lessthan21%) in comparison with the native environment, thereby demonstrating theviability of vCUDA architecture.vCUDA expose the device multiplex and suspend/resume function at the base ofCUDA virtualization, any CUDA application built on top of these features can run asusual in virtual machines without any modification. vCUDA develops a one-to-manymodel to multiplex GPU device in the VM. Under the coordination of the vCUDAstub, two different service threads can cooperatively manipulate one hardwareresource by connecting to a single working thread. The suspend/resume is realized bystore and restore the CUDA state while the kernel is not running. The devicemultiplex and suspend/resume tests show the performance degradation comes fromvCUDA is trivial. Base on the CUDA state tracking technology of the vCUDA, werealize the inter-kernel checkpoint scheme on GPU.

Table of contents

Summary 4-6 Abstract 6-8 directory 8-11 illustrations index 11-12 attached table Index 12-13 first chapter 13-23 1.1 research background and significance 13-16 1.2 research status main work and organizational 16-20 1.3 thesis structure 20-21 1.4 Summary 21-23 Chapter II GPU general computing and system virtualization research 23-35 2.1 GPU general computing 23-27 2.1.1 GPU -based graphics API, general-purpose computing 23-25 ?? 2.1.2 GPU -based independent API for general-purpose computing 25-27 2.2 system-level virtual machine with GPU virtualization 27-34 2.2.1 device simulation method 28-29 2.2.2 exclusive equipment Act 29-30 2.2.3 API redirection method 30-31 2.2.4 GPU virtualization solution summary 31-34 2.3 summary 34-35 Chapter vCUDA design and implementation of 35-61 3.1 VCUDA design 35-36 3.2 VCUDA achieve 36-42 3.2.1 vCUDA library (vCUDA library) 37-40 3.2.2 virtual GPU (vGPU) 40 3.2.3 vCUDA server (vCUDA stub) 40-42 3.3 CUDA track status 42-46 3.3. a virtual object list (VOL) 43-44 3.3.2 API virtualization solution 44-45 3.3.3 lazy transmission 45-46 3.4 VCUDA virtualization example : matrix multiplication 46-51 3.4.1 CUDA object virtualization 48-50 identification 3.4.2 CUDA object 50 3.4.3 local alternative API 50 3.4.4 lazy RPC 50-51 3.5 VCUDA support advanced features for virtual machines 51 -54 3.5.1 multiprocessor concurrency 51-53 3.5.2 suspend / resume 53-54 3.6 experimental performance 54-58 3.6.1 basic properties 55-56 3.6.2 lazy RPC 56-57 3.6.3 multiprocessor concurrency 57 <br / > 3.6.4 pause and resume 57-58 3.6.5 Third Party CUDA program 58 3.7 Summary 58-61 fourth design and Implementation Chapter VMRPC of 61-83 4.1 design ideas 61-65 4.1.1 traditional RPC system defect in a virtual environment 61-62 4.1.2 local RPC optimization 62 domain communication between virtual machines 4.1.3 between 62-63 4.1.4 domain communication optimization 63 4.1.5 VMRPC design goals 63-65 4.2 VMRPC achieve 65-70 4.2.1 memory Mapping 66-67 <br / > 4.2.2 transmission channel 67-68 4.2.3 control Channel 68-69 4.2.4 asynchronous channel 69-70 4.3 VMRPC user interface 70-72 4.4 VMRPC RPC framework with traditional differences 72-74 4.5 experimental performance 74-82 4.5.1 delay 75-76 4.5.2 throughput 76-78 4.5.3 CPU occupancy rate 78 4.5.4 VMRPC and XENLOOP of Compare 78-79 4.5.5 VMRPC applications : stfufs file system 79-82 4.6 Summary 82-83 Chapter IKC nuclear checkpoint technology design and implementation of 83-105 5.1 nbsp GPU necessity to improve fault tolerance ; 83-85 5.2 existing GPU fault-tolerant technology 85-89 5.2.1 GPU-based fault-tolerant approach to copy 85-87 5.2.2 GPU-based fault-tolerant approach the checkpoint 87-89 5.3 CPU GPU hybrid computing architecture inadequate checkpoint outside the core technology of 5.4 GPU 89-92 92-94 checkpoint nuclear technology to achieve 5.5 GPU 94 -100 5.5.1 technical support 94 5.5.2 implementation 94-97 5.5.3 overall framework 97-100 <br / > 5.6 performance Analysis 100-103 5.6.1 runtime overhead 101-102 5.6.2 checking overhead 102 5.6.3 recovery overhead 102-103 5.7 summary 103-105 summary and Outlook 105-107 References 107-114 Appendix 114-116 Thanks 116-117

Related dissertations

  1. Research on Applications of Virtual Technology in Computer Teaching for Higher Vocational Colleges
    LiJia ·Tianjin University ·2012 ·Master's thesis
  2. Research on the Performance Measuring of Virtual Machine System Based on Intel VT Technology
    GaoQingHua ·Zhejiang University ·2008 ·Master's thesis
  3. Design and Implementation of the Virtualization Resource Pool in Commercial Banks
    XuKeZhou ·Xiamen University ·2014 ·Master's thesis
  4. The Parallelization Research of Map Algebra of Spacial Analysis in Heterogeneous Computing Environment
    ZhouSiBo ·China University of Geosciences ·2013 ·Master's thesis
  5. Using VM virtualization architecture of enterprise data center
  6. Multi-goal Load Balancing Research in Virtual Environment
    ZhangChunXia ·Zhengzhou University ·2012 ·Master's thesis
  7. Real-time Study of Augmented Reality 3D Registration Algorithm Based on GPGPU
    ZhangYan ·Zhengzhou University ·2012 ·Master's thesis
  8. Study on the Application of Virtual Technology in the Intelligent Reinforcement of Software
    ChenChuan ·Shandong Normal University ·2013 ·Master's thesis
  9. Key Technology Research of Virtualization Based on Open Source Architecture in Small-scale Private Cloud
    LiQingChun ·Yunnan University ·2013 ·Master's thesis
  10. Enterprise Virtualization Research Based on Virtualization Architecture
    JiaHongQian ·Tianjin University ·2012 ·Master's thesis
  11. Real-time Video Motion Detection Algorithm Research Based on CUDA
    GaoBiao ·Xi'an Technological University ·2012 ·Master's thesis
  12. CUDA Based Moving Object Detection
    LiangLiang ·Beijing Jiaotong University ·2012 ·Master's thesis
  13. Research and Implementation of Management Supporting Platform for Opensource Cloud Computing Platform
    LiSong ·Shandong University ·2013 ·Master's thesis
  14. Research and Implementation of Private Cloud Platform for Virtual Resource Self-adaptive
  15. Hospital Information System Based on Cloud Computing Technology
    LiangJingZuo ·Shandong University ·2012 ·Master's thesis
  16. Research on Virtual Machine Scheduling in Real-time Environment
    GongWenJia ·Harbin Institute of Technology ·2013 ·Master's thesis
  17. Study on Parallel List Intersection Algorithm on CPU/GPU Hybrid Platform
    WangHuaiChao ·Suzhou University ·2012 ·Master's thesis
  18. Parallel Implementation of TOUGHREACT Based on GPU
    ZhuTong ·Jilin University ·2012 ·Master's thesis
  19. Research on the Gpu-based Parallel Algorithms for Point-based Multiple-point Geostatistical Simulation
    HuangTao ·University of Science and Technology of China ·2013 ·Doctoral dissertation
  20. The Design of Parallel Programming Simplification Based on CUDA
    Tang ·Dalian University of Technology ·2013 ·Master's thesis