caching beyond ram caching beyond ram
play

CACHING BEYOND RAM CACHING BEYOND RAM memcached.org/blog @dormando - PowerPoint PPT Presentation

CACHING BEYOND RAM CACHING BEYOND RAM memcached.org/blog @dormando WHY RAM? WHY RAM? Identical Cache W W W Broadcast Invalidation W W W MC HASH(key) MC 1G RAM 4G RAM W DB 32bit OS! 4G RAM 4G RAM W DB Filled Empty RAM Slots


  1. CACHING BEYOND RAM CACHING BEYOND RAM memcached.org/blog @dormando

  2. WHY RAM? WHY RAM?

  3. Identical Cache W W W

  4. Broadcast Invalidation W W W

  5. MC HASH(key) MC

  6. 1G RAM 4G RAM W DB 32bit OS!

  7. 4G RAM 4G RAM W DB Filled Empty RAM Slots

  8. 16G RAM 4G RAM W W DB W W

  9. ENTER FLASH ENTER FLASH

  10. FLASH! NOT JUST FOR HEAVY FLASH! NOT JUST FOR HEAVY MACHINERY MACHINERY

  11. X25-M 80G IOPS: 35k read, 300 write X25-E 64G IOPS: 35k read, 3300 write

  12. RAM cache! V V Sticky L7 LB V V

  13. Flash Cache! V Sticky L7 X25-E LB V X25-E

  14. BAM! BAM! CDN CDN

  15. GOOD (ENOUGH) SSD'S ARE GOOD (ENOUGH) SSD'S ARE EVERYWHERE EVERYWHERE

  16. TRADEOFFS TRADEOFFS

  17. Moneta [SET] REND MC STORE

  18. Moneta [MISS] REND MC STORE

  19. Moneta [MISS] REND MC STORE

  20. Moneta [MISS] REND MC STORE

  21. CACHE -> DB -> DB CACHE -> DB -> DB

  22. ARE SMALL ITEMS VALUABLE ON DISK ARE SMALL ITEMS VALUABLE ON DISK CACHE? CACHE?

  23. NO. NO.

  24. MEMCACHED EXTSTORE MEMCACHED EXTSTORE

  25. RAM DISK * metadata * metadata * key * key * pointer * value

  26. RAM HEAD Write Buffer TAIL DISK

  27. Bad: Still limited by RAM. Good: Much less writing, consistent reads.

  28. WORKLOADS WORKLOADS ML facts / computed data / templated data Sessions :P Saving the 50% of RAM used in 8k+ items

  29. FUTURE FUTURE

  30. JBOD [JUST A BUNCH OF JBOD [JUST A BUNCH OF DEVICES] DEVICES] memcached -o ext_path=/m/f:64g,ext_path=/m2/f:64g

  31. TIERED STORAGE TIERED STORAGE github.com/memcached/memcached/pull/432 ext_path=/m/f:64g:compact ext_path=/m/f:64g:lowttl

  32. PERSISTENT MEMORY PERSISTENT MEMORY HTABLE VALUES

  33. WRAP UP: PERFORMANCE WRAP UP: PERFORMANCE

  34. 99

  35. THANKS! THANKS! memcached.org/blog @dormando github.com/memcached/memcached/wiki/Extstore

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