Skip to main content

Hidden Costs in Avoiding False Sharing in Software DSMs

  • Conference paper
  • First Online:
High Performance Computing — HiPC 2001 (HiPC 2001)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2228))

Included in the following conference series:

  • 344 Accesses

Abstract

Page based software DSMs experience high degrees of false sharing especially in irregular applications with fine grain sharing granularity. The over-heads due to false sharing is considered to be the dominant factor limiting the performance of software DSMs. Several approaches have been proposed in the literature to reduce/eliminate false sharing. In this paper, we evaluate two of these approaches, viz., the Multiple Writer approach and Emulated Fine Grain Shar-ing (EmFiGS) approach. Our evaluation strategy is two pronged: firstly, we use a novel implementation independent analysis which uses overhead counts to com-pare the different approaches. The performance of EmFiGS approach is signifi-cantly worse, by a factor of 1.5 to as much as 90 times, compared to the Multiple Writer Approach. In many cases, EmFiGS approach performs worse that even a single writer lazy release protocol which experiences very high overheads due to false sharing. Our analysis shows that the benefits gained by eliminating false sharing are far outweighed by the performance penalty incurred due to the reduced exploitation of spatial locality in the EmFiGS approach. The implementation in-dependent nature of our analysis implies that any implementation of the EmFiGS approach is likely to perform significantly worse than the Multiple Writer ap-proach. Secondly, we use experimental evaluation to validate and complement our analysis. Experimental results match well with our analysis. Also the execu-tion times of the application follow the same trend as in our analysis, reinforcing our conclusions.

This work was done when the first author was a research student at the Department of Computer Science and Automation, Indian Institute of Science, Bangalore. This work was supported by research grants from IBM, Poughkeepsie, NY and IBM Solutions Research Centre, New Delhi, under IBM’s Shared University Program.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Li, K., Hudak, P.: Memory coherence in shared virtual memory systems. In: Proc. of the 5th Annual ACM Symp. on Principles of Distributed Computing (PODC’86). (1986) 229–239

    Google Scholar 

  2. Bennett, J.K., Carter, J.B., Zwaenepoel, W.: Munin: Shared memory for distributed mem-ory multiprocessors. Technical Report COMP TR89-91, Dept. of Computer Science, Rice University (1989)

    Google Scholar 

  3. Torellas, J., Lam, M., Henessey, J.: False sharing and spatial locality in multiprocessor caches. IEEE Transactions on Computers 6 (1994) 651–663

    Article  Google Scholar 

  4. Keleher, P., Cox, A.L., Zwaenepoel, W.: Lazy release consistency for software distributed shared memory. In: Proc. of the 19thAnnual Int’l Symp. on ComputerArchitecture (ISCA’92). (1992) 13–21

    Google Scholar 

  5. Amza, C., Cox, A.L., Dwarkadas, S., Keleher, P., Lu, H., Rajamony, R., Yu, W., Zwaenepoel, W.: TreadMarks: Shared memory computing on networks of workstations. IEEE Computer 29 (1996) 18–28

    Google Scholar 

  6. Keleher, P.: The CVM manual. Technical report, University of Maryland (1996)

    Google Scholar 

  7. Freeh, V.W., Andrews, G.R.: Dynamically controlling false sharing in distributed shared memory. In: Proc. of the Fifth IEEE Int’l Symp. on High Performance Distributed Computing (HPDC-5). (1996) 403–411

    Google Scholar 

  8. Itzkovitz, A., Schuster, A.: MultiViewand Millipage: Fine-grain sharing in page-based DSMs. In: Proc. of the 3rd Symp. on Operating Systems Design and Implementation (OSDI’99). (1999) 215–228

    Google Scholar 

  9. Keleher, P.: The relative importance of concurrent writers and weak consistency models. In: Proc. of the 16th Int’l Conf. on Distributed Computing Systems (ICDCS-16). (1996) 91–98

    Google Scholar 

  10. Adve, S.V., Gharachorloo, K.: Shared memory consistency models:Atutorial. IEEE Computer 29 (1996) 66–76

    Google Scholar 

  11. Amza, C., Cox, A.L., Dwarkadas, S., Zwaenepoel, W.: Software DSMprotocols that adapt be-tween single writer and multiple writer. In: Proc. of the 3rd IEEE Symp. on High-Performance Computer Architecture (HPCA-3). (1997) 261–271

    Google Scholar 

  12. Manjunath, K.V., Govindarajan, R.: Performance analysis of methods that overcome false sharing effects in software DSMs. Technical Report TR-HPC-08 /2001, Indian Institute of Science, Bangalore (2001) http://hpc.serc.iisc.ernet.in/Publications/kvm2001.ps

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2001 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Manjunath, K.V., Govindarajan, R. (2001). Hidden Costs in Avoiding False Sharing in Software DSMs. In: Monien, B., Prasanna, V.K., Vajapeyam, S. (eds) High Performance Computing — HiPC 2001. HiPC 2001. Lecture Notes in Computer Science, vol 2228. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45307-5_26

Download citation

  • DOI: https://doi.org/10.1007/3-540-45307-5_26

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-43009-4

  • Online ISBN: 978-3-540-45307-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics