Docker Performance - Docker April Meetup

6,313 views
6,305 views

Published on

Docker Event: http://flux7.com/event/docker-april-meetup/

Published in: Technology

Docker Performance - Docker April Meetup

  1. 1. Docker Performance Presented By Ali Hussain, CTO Flux7
  2. 2. Benchmarking Comparison of ○ Native ○ Docker ○ KVM (full virtualization) Work in progress
  3. 3. Run Sysbench Elapsed time between KVM and Docker within 1% Noticeable difference in CPU usage ○ 3% for KVM ○ 1.5% for Docker Memory Usage ○ KVM reserves the memory upfront.
  4. 4. Microbenchmarks Get a better understanding of details Not representative of a real workload ○ Exaggerates Specific Behavior
  5. 5. Tool 1: Coremark - CPU Performance
  6. 6. CPU Performance - Coremark Run native, Docker, and KVM ○ Performance difference within std dev (<3%)
  7. 7. CPU Performance - Coremark
  8. 8. Tool 2: FIO - IO Performance
  9. 9. FIO - First Pass
  10. 10. FIO - First Pass Docker performance 7x faster than native ○ Perfect run everything on Docker :)
  11. 11. FIO - First Pass
  12. 12. What Gives? Hypothesis: Docker saving to RAM Let’s try with host-mounted volumes
  13. 13. FIO - Docker host mounted
  14. 14. Collectd - Memory Usage
  15. 15. Collectd - Memory Usage
  16. 16. Collectd - Disk bandwidth
  17. 17. Docker FIO Conclusion Aufs is stripping flush flags ○ Diving deeper into why But is this bad?
  18. 18. Tool 3: iPerf
  19. 19. Docker within 10%
  20. 20. Next Steps Try on MAC VLAN Run on KVM
  21. 21. Questions

×