improving performance of transactional applications through adaptive transactional memory
abstract
with the rise of chip multiprocessors (cmps), it is necessary to use parallel programming to exploit computational power of cmps. traditionally, lock-based mechanisms have been used to synchronize shared variables in parallel programs. however, with the complexity associated with locks, writing a correct parallel program is a huge burden for programmers. as an alternative, transactional memory (tm) is gaining momentum as a parallel programming model for multi--‐core processors. tm provides programmers with an atomic construct (transaction), which can be used to guarantee atomicity of accesses to shared variables, as the synchronization is handled through the underlying system. transactional memory comes in two variants: software transaction memory (stm) and hardware transaction memory (htm). both stm and htm systems have advantages and disadvantages that either enhance or penalize performance in transactional applications. in this thesis, the focus is on implementing an adaptive system that exploits both stm and htm at transaction granularity. the goal is to achieve performance gain by incorporating the benefits of both tm systems. a synchronization technique is developed to seamlessly switch between htm and stm based on the characteristics of a transaction. we exploit decision tree to predict the optimum system for each transaction in a given application. the decision tree is a form of supervised machine learning to classify transactions based on parameters such as transaction size, transaction write ratio, etc. from the evaluations using stamp, nas, and discopop benchmark suites, the proposed adaptive system is able to improve speed of transactional applications by 20.82% on average.