rcufs a read copy update file system
play

RCUfs: A Read Copy Update file system An experimental method for - PowerPoint PPT Presentation

RCUfs: A Read Copy Update file system An experimental method for handling file system locking Callum Massey <644475@swan.ac.uk> Gregynog January 2014 RCUfs: A Read Copy Update file system 2014.01.21 1 / 12 Computer Clusters Why do


  1. RCUfs: A Read Copy Update file system An experimental method for handling file system locking Callum Massey <644475@swan.ac.uk> Gregynog — January 2014 RCUfs: A Read Copy Update file system 2014.01.21 1 / 12

  2. Computer Clusters Why do they exist? Improve performance Improve reliability RCUfs: A Read Copy Update file system 2014.01.21 2 / 12

  3. Why is that relevant? RCUfs: A Read Copy Update file system 2014.01.21 3 / 12

  4. Shared Data Access Multiple processes accessing same data RCUfs: A Read Copy Update file system 2014.01.21 4 / 12

  5. Issues What if two processes try to write the same file? What if there’s a read on a file being written to? How do you stop processes seeing garbage data? RCUfs: A Read Copy Update file system 2014.01.21 5 / 12

  6. Read Copy Update Locking mechanism that can drop in replace reader-writer locking. Reader threads never got blocked Readers always return valid results Writers lock as normal Huge performance increase to read heavy applications RCUfs: A Read Copy Update file system 2014.01.21 6 / 12

  7. How? So how does it work? Original data copied elsewhere Changes made to this new version Global pointer (journal) updated to point to new location New readers/writers now see new version after all access finished, old data freed RCUfs: A Read Copy Update file system 2014.01.21 7 / 12

  8. RCUfs RCU used extensively in the linux kernel, especially within the network stack however all current usage is restricted to in memory applications. No one has tried to use it as a locking mechanism in a clustered file system. RCUfs: A Read Copy Update file system 2014.01.21 8 / 12

  9. The Plan Build a program that spawns multiple processes reading and writing to a file Test this using RCU and with reader-writer locking Determine the scenarios where RCU is better (Definitely not all of them) RCUfs: A Read Copy Update file system 2014.01.21 9 / 12

  10. Progress Research, experimenting, learning C Writing byte arrays to files pretending to be block devices Stripped out and started reimplementing the locking on a FUSE file system Backtracked on writing a FUSE file system RCUfs: A Read Copy Update file system 2014.01.21 10 / 12

  11. Work to do Expand my simple array writer to spawn multiple processes Make the writer method use RCU Generate performance metrics from this with RCU and r-w locking Draw graphs/interpret results RCUfs: A Read Copy Update file system 2014.01.21 11 / 12

  12. Any Questions? RCUfs: A Read Copy Update file system 2014.01.21 12 / 12

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