Skip to main content

2018 | OriginalPaper | Buchkapitel

Multi-granularity Locking in Hierarchies with Synergistic Hierarchical and Fine-Grained Locks

verfasst von : K. Ganesh, Saurabh Kalikar, Rupesh Nasre

Erschienen in: Euro-Par 2018: Parallel Processing

Verlag: Springer International Publishing

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

We propose a new locking mechanism for hierarchies wherein the locking requests can be a combination of coarse and fine. Existing protocols such as multiple-granularity locking (MGL) are efficient when all the requests are of the same granularity. MGL is either too coarse or too fine-grained when multiple threads request for various parts of the hierarchy with differing granularity requirements. Simultaneous handling of hierarchical and fine-grained requests poses new challenges in checking for racy requests. We propose a novel indexing technique for hierarchies which uniquely identifies every node as an interval value and effectively captures hierarchical dependencies between nodes even when the hierarchy is a tree, DAG or a cycle. Our experiments with real-world XML hierarchies and synthetic benchmarks show that the proposed locking technique provides a higher degree of concurrency with minimal locking cost resulting in overall performance improvement.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Literatur
1.
Zurück zum Zitat Unrau, R.C., Krieger, O., Gamsa, B., Stumm, M.: Experiences with locking in a NUMA multiprocessor operating system kernel, November 1994 Unrau, R.C., Krieger, O., Gamsa, B., Stumm, M.: Experiences with locking in a NUMA multiprocessor operating system kernel, November 1994
2.
Zurück zum Zitat Chaudhri, V.K., Hadzilacos, V.: Safe locking policies for dynamic databases. In: PODS, pp. 233–244. ACM, New York (1995) Chaudhri, V.K., Hadzilacos, V.: Safe locking policies for dynamic databases. In: PODS, pp. 233–244. ACM, New York (1995)
3.
Zurück zum Zitat Cherem, S., Chilimbi, T., Gulwani, S.: Inferring locks for atomic sections. In: Proceedings of the 2008 ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI 2008 (2008) Cherem, S., Chilimbi, T., Gulwani, S.: Inferring locks for atomic sections. In: Proceedings of the 2008 ACM SIGPLAN Conference on Programming Language Design and Implementation, PLDI 2008 (2008)
6.
Zurück zum Zitat Golan-Gueta, G., Bronson, N., Aiken, A., Ramalingam, G., Sagiv, M., Yahav, E.: Automatic fine-grain locking using shape properties. In: OOPSLA, pp. 225–242. ACM, New York (2011) Golan-Gueta, G., Bronson, N., Aiken, A., Ramalingam, G., Sagiv, M., Yahav, E.: Automatic fine-grain locking using shape properties. In: OOPSLA, pp. 225–242. ACM, New York (2011)
7.
Zurück zum Zitat Gray, J.N., Lorie, R.A., Putzolu, G.R.: Granularity of locks in a shared data base. In: VLDB, pp. 428–451. ACM, New York (1975) Gray, J.N., Lorie, R.A., Putzolu, G.R.: Granularity of locks in a shared data base. In: VLDB, pp. 428–451. ACM, New York (1975)
9.
Zurück zum Zitat Kalikar, S., Nasre, R.: DomLock: a new multi-granularity locking technique for hierarchies. ACM Trans. Parallel Comput. 4(2), 7:1–7:29 (2017)CrossRef Kalikar, S., Nasre, R.: DomLock: a new multi-granularity locking technique for hierarchies. ACM Trans. Parallel Comput. 4(2), 7:1–7:29 (2017)CrossRef
10.
Zurück zum Zitat Liu, P., Zhang, C.: Unleashing concurrency for irregular data structures. In: ICSE, pp. 480–490. ACM, New York (2014) Liu, P., Zhang, C.: Unleashing concurrency for irregular data structures. In: ICSE, pp. 480–490. ACM, New York (2014)
11.
Zurück zum Zitat Lomet, D., Mokbel, M.F.: Locking key ranges with unbundled transaction services. Proc. VLDB Endow. 2(1), 265–276 (2009)CrossRef Lomet, D., Mokbel, M.F.: Locking key ranges with unbundled transaction services. Proc. VLDB Endow. 2(1), 265–276 (2009)CrossRef
12.
Zurück zum Zitat Lomet, D.B.: Key range locking strategies for improved concurrency. In: Proceedings of the 19th International Conference on Very Large Data Bases, VLDB 1993, pp. 655–664. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA (1993) Lomet, D.B.: Key range locking strategies for improved concurrency. In: Proceedings of the 19th International Conference on Very Large Data Bases, VLDB 1993, pp. 655–664. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA (1993)
13.
Zurück zum Zitat McCloskey, B., Zhou, F., Gay, D., Brewer, E.: Autolocker: synchronization inference for atomic sections. In: Conference Record of the 33rd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2006, pp. 346–358. ACM, New York (2006). https://doi.org/10.1145/1111037.1111068 McCloskey, B., Zhou, F., Gay, D., Brewer, E.: Autolocker: synchronization inference for atomic sections. In: Conference Record of the 33rd ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2006, pp. 346–358. ACM, New York (2006). https://​doi.​org/​10.​1145/​1111037.​1111068
14.
Zurück zum Zitat Ries, D.R., Stonebraker, M.: Effects of locking granularity in a database management system. ACM Trans. Datab. Syst. 2(3), 233–246 (1977)CrossRef Ries, D.R., Stonebraker, M.: Effects of locking granularity in a database management system. ACM Trans. Datab. Syst. 2(3), 233–246 (1977)CrossRef
15.
Zurück zum Zitat Ries, D.R., Stonebraker, M.R.: Locking granularity revisited. ACM Trans. Datab. Syst. 4(2), 210–227 (1979)CrossRef Ries, D.R., Stonebraker, M.R.: Locking granularity revisited. ACM Trans. Datab. Syst. 4(2), 210–227 (1979)CrossRef
Metadaten
Titel
Multi-granularity Locking in Hierarchies with Synergistic Hierarchical and Fine-Grained Locks
verfasst von
K. Ganesh
Saurabh Kalikar
Rupesh Nasre
Copyright-Jahr
2018
DOI
https://doi.org/10.1007/978-3-319-96983-1_39

Premium Partner