Docker volume performance degradation

我只是一个虾纸丫 提交于 2020-01-15 03:27:54

问题


I was running some performance benchmarks using fio to compare the performance of a Docker volume (created using the -v option) against the performance of a volume mounted on the host machine. I am using the following command to run IO on both the volumes:

fio --name=seqwrite --ioengine=libaio --iodepth=1 --rw=write --bs=8M --direct=1 --size=1024M --numjobs=24 --runtime=300 --group_reporting

For the host-mounted volume I am using a single SATA drive (2TB) formatted using ext4.

The throughput of the Docker volume is around 60MB/s as compared to the host-mounted volume which is 125-130 MB/s. Also, when I bind mount the same host volume inside the Docker container, I get the same 125-130 MB/s throughput. Is there a known performance degradation issue when we create Docker volumes using the "-v" option or is there anything incorrect with my methodology of testing and comparing the performance?

来源:https://stackoverflow.com/questions/35137655/docker-volume-performance-degradation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!