Title :
A Speculative Mechanism for Barrier Synchronization
Author :
Jinglei Meng ; Tianzhou Chen ; Ping Pan ; Jun Yao ; Minghui Wu
Author_Institution :
Coll. of Comput. Sci. & Technol., Zhejiang Univ., Hangzhou, China
Abstract :
Barrier are synchronization operations widely used by compiler and programmer, it is flexible and convenient but there are some defects. Threads arrive at barrier ahead of other threads have to wait the subsequent threads. This lead to some waste of time. Our experiments show that up to 35% of the total execution time is wasted on synchronization. Inspired by this, we propose barrier speculation which allows faster threads running speculatively with its own temporary data instead of waiting at barrier for synchronization. To control the max number barriers that threads can speculatively pass through, we also propose two risk control strategies: waiting in place risk control strategy and roll back re-speculate risk control strategy. Our evaluation results show that our barrier speculation together with two risk control strategies can achieve 5.7% and 6.3% overall program execution time reduction on average respectively when compared with conventional synchronization.
Keywords :
multi-threading; program compilers; synchronisation; barrier speculation; barrier synchronization; compiler; program execution time reduction; programmer; roll back respeculate risk control strategy; speculative mechanism; temporary data; waiting in place risk control strategy; Educational institutions; Instruction sets; Parallel processing; Proposals; Runtime; Synchronization; Testing; CMP; barrier speculation; barrier synchronization;
Conference_Titel :
High Performance Computing and Communications, 2014 IEEE 6th Intl Symp on Cyberspace Safety and Security, 2014 IEEE 11th Intl Conf on Embedded Software and Syst (HPCC,CSS,ICESS), 2014 IEEE Intl Conf on
Print_ISBN :
978-1-4799-6122-1
DOI :
10.1109/HPCC.2014.148