Docker在ubuntu主机上的性能比OSX主机更差+ + [英] Docker performance on ubuntu host 2x+ worse than OSX host

查看:235
本文介绍了Docker在ubuntu主机上的性能比OSX主机更差+ +的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我们一起来调查一下吧。这是我们知道的:



Ubuntu主机



15.04在i7 3820(四位3.6)和三星850 pro SSD 512gb SATA 6

  $ docker info 
容器:2
图片:101
存储驱动程序:overlay
备份文件系统:extfs
执行驱动程序:native-0.2
日志驱动程序:json-file
内核版本:3.19.0-28-generic
操作系统:Ubuntu 15.04
CPU:8
总内存:15.61 GiB
名称:camacho
ID:ZOYN:QGDO:UGMJ:TDDM:WEEM:ZEHJ:4OKB:V5WR:RGCL :NOKG:F5W5:SDEL
警告:无交换限制支持



OSX主机



i7(Quad 2.7)上的10.10.5和Apple SSD 512gb SD512E SATA 6(2+岁)

  $ docker info 
容器:3
图像:185
存储驱动程序:aufs
根目录:/ mnt / sda1 / var / lib / docker / aufs
备份文件系统:extfs
Dirs:191
Dirperm1支持:true
执行驱动程序:native-0.2
日志驱动程序: json-file
内核版本:4.0.9-boot2docker
操作系统:Boot2Docker 1.8.1(TCL 6.3); master:7f12e95 - Thu Aug 13 03:24:56 UTC 2015
CPU:8
总内存:3.858 GiB
名称:dinghy
ID:PNNP:PI3E:CRUK:27RI :IPHW:HROF:NQA2:XKV6:VGCZ:WT7B:BZ7R:USWD
调试模式(服务器):true
文件描述符:21
Goroutines:54
系统时间:2015 -09-24T19:16:01.715069994Z
事件侦听器:1
初始化SHA1:
初始路径:/ usr / local / bin / docker
Docker根目录:/ mnt / sda1 / var / lib / docker
标签:
provider = virtualbox



/ h3>


  1. 在OSX上运行2x +速度的dockerized rspec

  2. sysbench io结果在Ubuntu上非常糟糕

  3. dockerized iozone结果如预期(ubuntu稍快)

  4. 硬件检查完成,ubuntu主机在SATA 6电缆和端口上



iozone结果



  docker run -it threadx / docker- ubuntu-iozone 
$ iozone -R -l 5 -u 5 -r 4k -s 100m -F / home / f1 / home / f2 / home / f3 / ho我/ f4 / home / f5 | tee -a /tmp/iozone_results.txt&



摘要



我正在测试我们的测试过程,因为我们需要稳定性和并发性。我们已经做了大量工作来限制测试时间,而且两倍的增长是一个可怕的倒退。



Sysbench显示ubuntu主机的性能比OSX差4倍,我对此不了解。 dd iozone 测试显示ubuntu主机按预期执行。



问题



为什么我的rspec性能在ubuntu主机上有更快的资源?我应该在哪里调查?是sysbench io测试一个指标还是一个异常?在dockerized ubuntu中,性能不佳的原因是什么?

解决方案

区别在于PCIe vs SATA 6接口。最新一代的Macbook Pro PCIe更快。


Ok, let's start over after a bunch of investigation. Here is what we know:

Ubuntu host

15.04 on i7 3820 (quad 3.6) and Samsung 850 pro SSD 512gb SATA 6

$ docker info
Containers: 2
Images: 101
Storage Driver: overlay
 Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.19.0-28-generic
Operating System: Ubuntu 15.04
CPUs: 8
Total Memory: 15.61 GiB
Name: camacho
ID: ZOYN:QGDO:UGMJ:TDDM:WEEM:ZEHJ:4OKB:V5WR:RGCL:NOKG:F5W5:SDEL
WARNING: No swap limit support

OSX host

10.10.5 on i7 (quad 2.7) and Apple SSD 512gb SD512E SATA 6 (2+ years old)

$ docker info
Containers: 3
Images: 185
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 191
 Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.0.9-boot2docker
Operating System: Boot2Docker 1.8.1 (TCL 6.3); master : 7f12e95 - Thu Aug 13 03:24:56 UTC 2015
CPUs: 8
Total Memory: 3.858 GiB
Name: dinghy
ID: PNNP:PI3E:CRUK:27RI:IPHW:HROF:NQA2:XKV6:VGCZ:WT7B:BZ7R:USWD
Debug mode (server): true
File Descriptors: 21
Goroutines: 54
System Time: 2015-09-24T19:16:01.715069994Z
EventsListeners: 1
Init SHA1: 
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
 provider=virtualbox

Observations

  1. dockerized rspec running 2x+ faster on OSX
  2. sysbench io results are terrible on Ubuntu
  3. dockerized iozone results are as expected (ubuntu slightly faster)
  4. hardware check complete, ubuntu host is on a SATA 6 cable and port

iozone results

docker run -it threadx/docker-ubuntu-iozone
$ iozone -R -l 5 -u 5 -r 4k -s 100m -F /home/f1 /home/f2 /home/f3 /home/f4 /home/f5 | tee -a /tmp/iozone_results.txt &

Summary

I'm dockerizing our test process because we need stability and concurrency. We've done a bunch of work to limit test times, and a 2x increase in times is a terrible step backwards.

Sysbench shows the ubuntu host performing 4x worse than OSX, and I have no understanding of that. dd and iozone tests show the ubuntu host to be performing as expected.

Question

Why is my rspec performance worse on the ubuntu host which has faster resources? Where should I investigate? Is sysbench io test an indicator or an anomaly? What are sources of bad performance in dockerized ubuntu?

解决方案

The difference is PCIe vs SATA 6 interfaces. The latest generation of Macbook Pro PCIe is even faster.

这篇关于Docker在ubuntu主机上的性能比OSX主机更差+ +的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆