Verifying Parallel Programs Using Software Transactional Memory

Author
LiYong
Advisor
ChenYiYun
School
University of Science and Technology of China
Major
Computer Software and Theory
Classification
TP311.5 Software Engineering
Degree
Doctoral dissertation
Year
2011
Downloads
98
Citations
0

Request the full text

Abstract

Currently, Moore’s Law has gradually come to the end by the barriers inthe laws of physics. It can not improve the performance just by increasing thenumber of transistors in uniprocessor. To solve this problem, researchers focuson multi-core processors, which mainly improve the performance through parallelcomputing. It brings a great change to software development methods since parallelcomputing has been fully supported by the multi-core and multi-processorarchitecture system. Software will no longer benefit from the advance of hardware,it needs to implement concurrence using hardware features and gets the advantageof new generation hardware. Therefore, for programmers, they need to developmore and more parallel programs to take full advantage of multi-core hardwarefeatures. However, parallel programming is quite difficult. On one hand, currentprogramming languages and tools are still not ready to transfer sequential programsto parallel programs. On the other hand, parallel programming requiresprogrammers to think in a different way from the human mind.In parallel programming, the key issue is the concurrent shared memory access.Traditionally, programmers typically use locks for concurrency management,but the traditional locking mechanism has following shortcomings: 1) granularitychoosing, coarse-grained locking makes programming be simple but has low concurrency;fine-grained locking can improve concurrency, but difficult to achieve,2)un-composition, the composition of two correct code blocks using locking mechanismmay fail, 3) easily lead to some problems such as priority inversion, convoyand deadlock.In order to provide an easy parallel programming mechanism with high concurrency,researchers introduce the concept of the concurrency control in Databaseinto programming language to build in Transactional Memory (TM). TM has twolevels: in high-level, it provides a simple program semantics to easy programming;in low-level, researchers design various fine-grained concurrent systems by usinglocks or other synchronization mechanisms to achieve high-level program semantics.Through the two-level system, it can effectively figure out the problems forprogrammer in parallel programming.TM also brings challenges for the concurrent program verification, existingverification techniques and frameworks can not be directly used to verify transactionalcodes. Focus on this problem, after studying various TM systems implemen- tation mechanisms and the combination with existing parallel program verificationtechniques, this paper presents a new logical system for verifying programs usingTM systems. It uses the verification to guide the design and implementation ofTM systems, and builds the basement for high confident software. Furthermore,the paper also focuses on some special TM system implementation algorithms,and certifies them to enforce the safety and correctness of the TM systems.The main work and contributions of this paper can be summarized into thefollowing parts:·It presents a logical system of the Foundational Proof-Carrying Code(FPCC) style for reasoning about concurrent programs using TM systems atthe assembly level. In this framework, we design a program logic which combinesconcurrent separation logic and permission accounting in separationlogic to reason about the speculative read in transactional codes. Furthermore,we also verify the atomicity property of transactional codes in thisframework, it requires the shared memory status after rolling back to beconsistent with the one when transaction begins.·The presented framework addresses safety properties at assembly level directlyas FPCC systems do. Then the complicated and error-prone compilationand optimization do not need to be trusted. All the work on theframework, including its soundness proof and examples, is mechanized inCoq proof assistant, which makes our work more reliable.·erifying the correctness of a classical software transactional memory implementationalgorithm. Unlike other work on the correctness verificationby using model checking, we use a Hoare-style Local-Rely-Guarantee-basedlogic to perform the formal proof. In the certification, we summarized thekey methods for reasoning about those speculative operations in the softwaretransactional memory implementation implementation with the globalversion-clock based validation technique.

Table of contents

Summary 5-7 Abstract 7-12 Chapter 1 Introduction 12-23 1.1 Background 12-14 < br /> 1.2 portable proof code (PCC) the 14-15 1.3 parallel program verification 15-16 1.4 Introduction to transactional memory 16-21 <br / > 1.4.1 transactional memory implementation mechanism 18-20 1.4.2 transactional memory semantics research 20-21 1.5 This article outlines 21-23 < br /> 1.5.1 research 21 1.5.2 main innovation and contribution the 21-22 1.5.3 chapters arranged 22-23 <br / > Chapter 2 program verification technology nbsp 23-48 of the assembly language 2.1 Verification System (CAP); 23-27 2.2 based on shared memory concurrent technology 27 - 29 2.2.1 synchronization mechanism 27-29 2.3 General Parallel Language 29-34 2.3.1 variable 33 2.3 .2 assertion 33-34 2.4 Rely-Guarantee 34-36 2.4.1 reasoning rules 35-36 2.5 Separation logic 36-43 2.5.1 abstract separation logic 36-39 2.5.2 Separation logic instance 39-40 2.5.3 concurrency, logical separation 40-41 2.5.4 portable permission separation logic the 41-43 2.6 Local Rely-Guarantee logic 43-48 Chapter 3 Software Affairs memory program logic system 48-81 3.1 abstract machine model 48-55 3.2 assertion languages ??nbsp the; 55-61 3.2.1 Description Share the the heap assertion languages ?? 56-60 3.2.2 Description of thread state assertion language the 60-61 3.3 program specification 61-71 3.3 .1 program specification language 61-62 3.3.2 reasoning rules, 62-64 3.3.3 Reliability 64-67 3.3. the 4 logical system applications 67-71 3.4 atomicity verification 71-80 3.4.1 Weak atomicity abnormal behavior 71-73 <br / 3.4.2 formalized verify the 73-77 3.4.3 instances prove 77-80 3.5 Chapter Summary 80-81 4th Chapter TL2 algorithm validation 81-112 4.1 TL2 algorithm introduced 82-87 4.2 fine-grained concurrency program verification 87-96 4.2 .1 auxiliary variables and code 90 4.2.2 proof example with auxiliary variables 90-96 4.3 TL2 algorithm auxiliary variable code 96 - 99 4.4 Formal Verification 99-111 4.5 Chapter Summary 111-112 Chapter 5 Conclusion 112-115 5.1 thesis work summarizes 112-113 5.2 further work 113-115 Reference 115-121 Acknowledgements 121-122 the papers published during reading the research achievements 122-123

Related dissertations

  1. Research on Conflict Management Strategies in Multicore-oriented Software Transactional Memory
    XieYing ·Northeastern University ·2013 ·Master's thesis
  2. A Distributed Programming Framework Based on Transactional Memory
  3. Cache Coherence Techniques for Chip Multiprocessor Architecture
  4. Study on Parallel Programming Models
    YaoZhen ·University of Science and Technology of China ·2006 ·Doctoral dissertation
  5. Study on Transactional Memory Programming and Software Library Optimization of Tera-Flops Computer KD-50-I
  6. Certifying Concurrent Porgrams Using Transactional Memory
    LiLong ·University of Science and Technology of China ·2008 ·Doctoral dissertation
  7. Research on Key Techniques for NUMA-aware Transactional Memory
  8. Research on Nested Transactional Memory of Object-oriented Program
    CaoMingTeng ·Zhejiang University ·2008 ·Master's thesis
  9. Research on Nested Transactional Memory
    HeTuanWei ·Tianjin University ·2007 ·Master's thesis
  10. Support for scalable speculative parallelization transactional storage architecture design and performance evaluation
  11. Based on the OpenMP Fortran programming language transactional storage and realization of environmental studies