Design of high-performance server software memory Affairs

Author
JianJie
Advisor
QiuHuiZhong
School
University of Electronic Science and Technology
Major
Computer Software and Theory
Classification
TP368.5 Servers, workstations
Degree
Master's thesis
Year
2009
Downloads
49
Citations
2

Request the full text

Abstract

With Moore’s Law going invalid early in this century, multi-core processors became visible to the industry and got more and more popular. In return, the parallelism trend in hardware industry triggers more research power in software parallelism. Software Transactional Memory (STM) is a new mechanism used to take the place of traditional lock-based synchronization methods. Compared with lock-base synchronization, STM offers more flexibility and scalability and simplifies code writing and maintenance. There are generally two types of STM today: lock-based and lock-free. We’ll introduce typical implementations of both types, and then give analysis on their advantages and disadvantages.We found that, for real world applications, the pressure are usually not persistent. Especially for high performance servers, the pressure could be changing fast in a very short time. We also found the performance of STM implementation depends heavily on its workload, and the best sets of parameters and strategy vary across different workloads and environment. Most of currently STM implementations lack the ability to adjust their parameters and strategies according to pressure and changes. Based on the above observations, we propose a new mechanism of STM implementation: PA-TinySTM, short for Pressure Aware TinySTM.PA-TinySTM mainly consists of four modules, which are Pressure Detection (PD), Dynamic Tuning (DT), TinySTM Main Body (MB) and Feedback (FB). PD is responsible for collecting transaction related data before a transaction gets into execution status and calculating corresponding runtime pressure on the fly. FB is responsible for collecting information that’s only available after a transaction has finished execution and gives statistics results accordingly, such as average execution time and transaction abort rate. The outputs of PD and FB are provided to DT module as basis for dynamic tuning. DT contains two sub modules itself: TinySTM parameter tuning (TPT) and memory allocation strategy tuning (MAST). TPT considers the pressure changes and memory access pattern altogether and tunes TinySTM parameters accordingly. On the other hand, MAST optimizes dynamic memory allocation strategy according to multithreaded memory request pattern and contention changes under multithreaded environment. TPT and MAST are kept updated by the newest output from PD and FB, so as to keep the runtime parameters and strategy get tuned with pressure changes in a timely manner. Through the evaluation results, we can see that PA-TinySTM responds very quickly with pressure changes. And with the dynamic tuning ability, our PA-TinySTM based server application can work very across different workloads.

Table of contents

Abstract 4-5 Abstract 5-9 first chapter 9-25 1.1 Parallel computing has 9-17 1.1.1 microprocessor development history 9-10 1.1.2 Moore's Law 10-11 1.1.3 multi-processor and multi-core emergence and development 11-13 1.1.4 multicore challenges of the emergence of software industry 13 1.1.5 parallel computing software 13-17 1.2 memory transactions 17-25 1.2.1 hardware transactional memory (Hardware Transactional Memory, HTM) 18-19 1.2.2 software memory Affairs (Software Transactional Memory, STM) 19 1.2.3 hybrid memory Affairs (Hybrid Transactional Memory, HyTM) 19-21 1.2.4 the transactional flash memory (Transactional Flash) 21-25 The second chapter of the status quo of the software memory Affairs 25-40 2.1 software memory transaction concept 25 2.2 software memory Affairs realization 25-38 2.2.1 lock-based implementation 26-29 2.2.2 no lock of the realization 29-38 of 2.3 existing software memory Affairs achieve less than 38-40 Chapter the PA-TINYSTM Design and Implementation 40-57 3.1 TINYSTM introduced 40-46 3.1.1 TinySTM the basic algorithm 41-44 3.1.2 grading locking strategy 44-45 the dynamic adjustment 3.1.3 TinySTM 45-46 3.2 PA-TINYSTM the Design and Implementation of 46-57 3.2.1 PA-TinySTM the design ideas 46-47 the of 3.2.2 the PA-TinySTM the overall design 47-48 3.2.3 pressure detection and statistics module (PD) 48-51 3.2.4 feedback information processing module (FB) 51-53 3.2.5 parameters and strategies dynamically adjust module (DT) 53-57 Chapter achieved PA-TINYSTM based server 57-62 4.1 server performance overhead 57-58 4.1.1 CPU overhead 57 4.1.2 memory overhead 57 4.1.3 I / O overhead 57-58 4.2 server action 58 4.2.1 pure update action 58 4.2.2 pure response action 58 4.2.3 Update - reply actions 58 the 4.3 PA-TINYSTM server design 58-62 4.3.1 Overall design 58-59 4.3.2 key data structure 59-60 4.3.3 the main perform logic 60-62 performance testing and results analysis 62-67 5.1 memory allocation delay 62-63 5.2 steady-state adjustment delay 63-64 the throughput of 5.3 transformer under relatively 64-66 a 5.4 possible improvements direction 66-67 Chapter VI summarizes 67-69 Acknowledgements 69-70 the References 70-73 research results achieved during the study period 73-74

Related dissertations

  1. Loan Default Prediction Based on Imbalanced Data Classification
    ZhouLiFeng ·Central South University ·2013 ·Master's thesis
  2. Research and Development of a Low-power RF Pressure Recorder
  3. Study on the Key Technology of New Optical Fiber Devices for Pressure Sensing
    RenXiaoMin ·University of North ·2014 ·Master's thesis
  4. A Study of GPU-based Parallel Learning to Rank
    FanXiXian ·Harbin Institute of Technology ·2012 ·Master's thesis
  5. Research on System Stability for Haptic Rendering
  6. Research on Key Technology of Modeling and Rendering for Virtual Natural Scene
    WangHaiLing ·Harbin Engineering University ·2013 ·Doctoral dissertation
  7. Study on Distributed Large-scale Microscopic Traffic Simulation
    MaWenXue ·Chang'an University ·2013 ·Master's thesis
  8. Research and Implementation of FIR Filtering Parallel Algorithm Based on GPU
    XiaoZuo ·Northeastern University ·2011 ·Master's thesis
  9. Research on Boundary Face Method Base on GPU-acceleration
    YuLieXiang ·Hunan University ·2013 ·Master's thesis
  10. Parallelization Research of Face Recognition and Texture Synthesis Algorithm Base on MATLAB Multi-core Clusters
    YuMengLing ·Liaoning Normal University ·2012 ·Master's thesis
  11. Research of Image Registration and Mosaic Technology Based on GPU
    ZouGang ·Tianjin University ·2012 ·Master's thesis
  12. Model Optimization Technique Based on Viewpoint-dependent and Application
  13. Research on Detection and Recognition of Traffic Objects in City Environments
    LiYi ·Central South University ·2013 ·Doctoral dissertation
  14. Human Action Recognition Based on Kinect Skeleton Information
    LiuFei ·Donghua University ·2014 ·Master's thesis
  15. Study of adaptive beamforming processor based on GPU
  16. Study and Implementation of Fast Super-resolution Reconstruction Methods
  17. A Parallel Research on Feature Detection and Feature Matching Based on3D Reconstruction with Multi-View
    FengBing ·Ningxia University ·2014 ·Master's thesis
  18. Research about Data Mining Technologies Based on Cloud Computing
    LiZuo ·Shijiazhuang University of Economics ·2012 ·Master's thesis
  19. Study on Granularity Clustering
    ZhuHong ·China University of Mining and Technology ·2013 ·Doctoral dissertation
  20. E-commerce Applications Based on Multi-core Cluster Parallelization
    MaLin ·Liaoning Normal University ·2013 ·Master's thesis