a competitive analysis for balanced transactional memory
play

A Competitive Analysis for Balanced Transactional Memory Workloads - PowerPoint PPT Presentation

A Competitive Analysis for Balanced Transactional Memory Workloads Gokarna Sharma and Costas Busch Department of Computer Science Louisiana State University, USA December 16, 2010 Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for


  1. A Competitive Analysis for Balanced Transactional Memory Workloads Gokarna Sharma and Costas Busch Department of Computer Science Louisiana State University, USA December 16, 2010 Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 1 / 33

  2. Transactional Memory - Background The multi-core revolution is here. ◮ Opportunities and challenges Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 2 / 33

  3. Transactional Memory - Background The multi-core revolution is here. ◮ Opportunities and challenges How to handle access to shared data? ◮ Traditional approaches using Locks, Monitors, · · · Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 2 / 33

  4. Transactional Memory - Background The multi-core revolution is here. ◮ Opportunities and challenges How to handle access to shared data? ◮ Traditional approaches using Locks, Monitors, · · · Transactional Memory (TM) as an alternative synchronization abstraction. ◮ Simple, composable, · · · Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 2 / 33

  5. Transactional Memory - Background The multi-core revolution is here. ◮ Opportunities and challenges How to handle access to shared data? ◮ Traditional approaches using Locks, Monitors, · · · Transactional Memory (TM) as an alternative synchronization abstraction. ◮ Simple, composable, · · · A transaction consists of a sequence of read and write operations to a set of shared system resources. Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 2 / 33

  6. Transactional Memory - Background The multi-core revolution is here. ◮ Opportunities and challenges How to handle access to shared data? ◮ Traditional approaches using Locks, Monitors, · · · Transactional Memory (TM) as an alternative synchronization abstraction. ◮ Simple, composable, · · · A transaction consists of a sequence of read and write operations to a set of shared system resources. Hardware, Software, and Hybrid TMs. ◮ In this talk, we focus on progress in Software TM (STM) systems Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 2 / 33

  7. STM systems In STM systems, progress is ensure through some contention management policy. Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 3 / 33

  8. STM systems In STM systems, progress is ensure through some contention management policy. If transactions T and T ′ conflict, one has to abort; the aborted transaction then retries again until it eventually commits. Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 3 / 33

  9. STM systems In STM systems, progress is ensure through some contention management policy. If transactions T and T ′ conflict, one has to abort; the aborted transaction then retries again until it eventually commits. Each transaction consults with the contention manager (CM) for which choice to make. Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 3 / 33

  10. STM systems In STM systems, progress is ensure through some contention management policy. If transactions T and T ′ conflict, one has to abort; the aborted transaction then retries again until it eventually commits. Each transaction consults with the contention manager (CM) for which choice to make. Performance of a CM is generally measured by competitive ratio: makespan of my CM competitive ratio = makespan of optimal CM Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 3 / 33

  11. STM systems In STM systems, progress is ensure through some contention management policy. If transactions T and T ′ conflict, one has to abort; the aborted transaction then retries again until it eventually commits. Each transaction consults with the contention manager (CM) for which choice to make. Performance of a CM is generally measured by competitive ratio: makespan of my CM competitive ratio = makespan of optimal CM Makespan primarily depends on the TM workload. ◮ Arrival times, execution time durations, release times, read/write sets Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 3 / 33

  12. STM systems In STM systems, progress is ensure through some contention management policy. If transactions T and T ′ conflict, one has to abort; the aborted transaction then retries again until it eventually commits. Each transaction consults with the contention manager (CM) for which choice to make. Performance of a CM is generally measured by competitive ratio: makespan of my CM competitive ratio = makespan of optimal CM Makespan primarily depends on the TM workload. ◮ Arrival times, execution time durations, release times, read/write sets How to schedule transactions such that it reduces the makespan? Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 3 / 33

  13. Related Work Mostly empirical evaluation. Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 4 / 33

  14. Related Work Mostly empirical evaluation. Theoretical results on transactional contention managers ◮ Guerraoui et al., PODC’05 ⋆ Greedy , Competitive ratio = O ( s 2 ) ( s is the number of shared resources). ◮ Attiya et al., PODC’06 ⋆ Competitive ratio of Greedy is improved to O ( s ). ◮ Schneider and Wattenhofer, ISAAC’09 ⋆ RandomizedRounds , Competitive ratio = O ( C · log n ) ( C is the maximum number of conflicting transactions for n transactions). ◮ Attiya and Milani, OPODIS’09 ⋆ Bimodal scheduler, Competitive ratio = O ( s ) (for bimodal workloads). ◮ Sharma et al., DISC’10 ⋆ Three new algorithms with competitive ratio very close to O ( s ) (for execution window model). Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 4 / 33

  15. Related Work Mostly empirical evaluation. Theoretical results on transactional contention managers ◮ Guerraoui et al., PODC’05 ⋆ Greedy , Competitive ratio = O ( s 2 ) ( s is the number of shared resources). ◮ Attiya et al., PODC’06 ⋆ Competitive ratio of Greedy is improved to O ( s ). ◮ Schneider and Wattenhofer, ISAAC’09 ⋆ RandomizedRounds , Competitive ratio = O ( C · log n ) ( C is the maximum number of conflicting transactions for n transactions). ◮ Attiya and Milani, OPODIS’09 ⋆ Bimodal scheduler, Competitive ratio = O ( s ) (for bimodal workloads). ◮ Sharma et al., DISC’10 ⋆ Three new algorithms with competitive ratio very close to O ( s ) (for execution window model). Theoretical results on transactional schedulers ◮ ATS [Yoo and Lee, SPAA’08], Steal-On-Abort [Ansari et al., HiPEAC’09], Shrink [Dragojevi´ c et al., PODC’09], etc. ⋆ All are at least O ( n )-competitive. Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 4 / 33

  16. Contributions We address the question “ Is there better than O ( s ) -competitive algorithm exists? ” for transaction contention management, under certain assumptions. Balanced transactional memory workloads. Two polynomial time contention management algorithms that achieve competitive ratio very close to O ( √ s ) in balanced workloads. ◮ Clairvoyant algorithm - Competitive ratio = O ( √ s ). ◮ Non-Clairvoyant algorithm - Competitive ratio = O ( √ s · log n ) w.h.p. Lower bound of O ( √ s ) for the transaction scheduling problem. Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 5 / 33

  17. Outline of the Talk Balanced TM Workloads 1 Clairvoyant Algorithm 2 Non-Clairvoyant Algorithm 3 Hardness of Balanced Transaction Scheduling 4 Discussions 5 Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 6 / 33

  18. Outline of the Talk Balanced TM Workloads 1 Clairvoyant Algorithm 2 Non-Clairvoyant Algorithm 3 Hardness of Balanced Transaction Scheduling 4 Discussions 5 Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 7 / 33

  19. Balanced Workloads Balancing ratio for a transaction T i Let R ( T i ) denote the set of resources used by a transaction T i . R ( T i ) = R w ( T i ) ∪ R r ( T i ), where R w ( T i ) are the resources which are to be written and R r ( T i ) are the resources to be read by T i . Gokarna Sharma and Costas Busch (LSU) A Competitive Analysis for Balanced TM Workloads OPODIS 2010, Tozeur, Tunisia 8 / 33

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend