log2fs or how to achieve 150 000 io s
play

Log2fs or how to achieve 150.000 IO/s J orn Engel Lazybastard.org - PowerPoint PPT Presentation

Hardware Compression costs Log2 Advanced Credit Log2fs or how to achieve 150.000 IO/s J orn Engel Lazybastard.org September 24, 2010 J orn Engel Log2fs or how to achieve 150.000 IO/s Hardware Compression costs Log2 Advanced Credit


  1. Hardware Compression costs Log2 Advanced Credit Log2fs or how to achieve 150.000 IO/s J¨ orn Engel Lazybastard.org September 24, 2010 J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  2. Hardware Compression costs Log2 Advanced Credit Just a bunch of random hacks J¨ orn Engel Lazybastard.org September 24, 2010 J¨ orn Engel Just a bunch of random hacks

  3. Hardware Compression costs Log2 Advanced Credit Flash basics Fast random reads Fast somethat-random writes Erase before write Large eraseblocks J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  4. Hardware Compression costs Log2 Advanced Credit Blocks and Pages 4K 4K 4K 4K 4K 4K ... 4K 4K 4K 4K 4K 4K 256K 256K ... J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  5. Hardware Compression costs Log2 Advanced Credit Drais card PCIe x4 interface 1 FPGA 64 Flash chips J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  6. Hardware Compression costs Log2 Advanced Credit Drais card J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  7. Hardware Compression costs Log2 Advanced Credit Drais driver Simple MTD driver 64 queues for requests Does error correction Adds FIO interface J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  8. Hardware Compression costs Log2 Advanced Credit FIO interface Adds three new methods to struct mtd info fio read fio write fio erase J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  9. Hardware Compression costs Log2 Advanced Credit FIO interface fio read reads exactly 1 page, then calls fio- > fi end io J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  10. Hardware Compression costs Log2 Advanced Credit FIO interface fio write writes exactly 1 page, then calls fio- > fi end io J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  11. Hardware Compression costs Log2 Advanced Credit FIO interface fio erase erases exactly 1 block, then calls fio- > fi end io J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  12. Hardware Compression costs Log2 Advanced Credit wait multiple wait multiple waits for N fios to complete J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  13. Hardware Compression costs Log2 Advanced Credit Read Performance Single threaded: 6800 IO/s or 27MB/s 4096 threads: 149000 IO/s 610MB/s Scales 22x J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  14. Hardware Compression costs Log2 Advanced Credit Write Performance Single threaded: 40 IO/s or 10MB/s 4096 threads: 1859 IO/s or 480MB/s Scales 46x J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  15. Hardware Compression costs Log2 Advanced Credit Read performance J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  16. Hardware Compression costs Log2 Advanced Credit Write performance J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  17. Hardware Compression costs Log2 Advanced Credit Compression in LogFS byte-precise packing indirect blocks contain pointers block headers contain compressed size J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  18. Hardware Compression costs Log2 Advanced Credit Alignment many blocks span a page boundary J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  19. Hardware Compression costs Log2 Advanced Credit Alignment J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  20. Hardware Compression costs Log2 Advanced Credit Alignment uncompressed and compressed blocks are mixed J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  21. Hardware Compression costs Log2 Advanced Credit Writes write header and compressed data to buffer occasionally flush buffer J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  22. Hardware Compression costs Log2 Advanced Credit Reads read header plus maximal blocksize to cache uncompress J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  23. Hardware Compression costs Log2 Advanced Credit Deletions Read header into cache Use compressed size for accounting J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  24. Hardware Compression costs Log2 Advanced Credit Cache Cache has a granularity of (MMU)PAGE SIZE J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  25. Hardware Compression costs Log2 Advanced Credit Cache Oops! J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  26. Hardware Compression costs Log2 Advanced Credit Deletions J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  27. Hardware Compression costs Log2 Advanced Credit Deletions J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  28. Hardware Compression costs Log2 Advanced Credit Log2 Don’t mix uncompressed and compressed blocks Align uncompressed blocks J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  29. Hardware Compression costs Log2 Advanced Credit Log2 Move compressed size to indirect blocks ...and a number of other fields ...and remove (most) direct pointers from inodes J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  30. Hardware Compression costs Log2 Advanced Credit Venti Efficient way to store multiple identical copies Ideal for large universities Horrible for personal computers J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  31. Hardware Compression costs Log2 Advanced Credit VentiLog Add a block hashtable Check hashtable before writes Increment refcount when possible J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  32. Hardware Compression costs Log2 Advanced Credit BtrLog Add reference count to block pointers copyfile() becomes possible clones become possible J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  33. Hardware Compression costs Log2 Advanced Credit Birthday attack LogFS stores directory entries in a hash table. J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  34. Hardware Compression costs Log2 Advanced Credit Birthday attack Given N random numbers between 1 and M ( N ≤ M ), what is the probability of having two or more identical numbers? J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  35. Hardware Compression costs Log2 Advanced Credit Birthday attack 1 − M ! − N ! M N J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  36. Hardware Compression costs Log2 Advanced Credit Birthday attack J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  37. Hardware Compression costs Log2 Advanced Credit Birthday attack Given N random numbers between 1 and M ( N ≤ M ), what is the probability of having O or more identical numbers ( O ≤ N ≤ O · M )? J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

  38. Hardware Compression costs Log2 Advanced Credit J¨ orn Engel Log2fs or how to achieve 150.000 IO/s

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