邦妮不提供顺序input/阻止的速度

我正在使用ProxmoxVE,我想运行这个产品的性能的一些基准。 其中一个基准是bonnie ++; 它在VM(qemu-kvm)中运行得非常好,但是当我在一个conainer(openVZ)中运行它时,它不能提供读取速度(只写)。

我不明白为什么…有人知道发生了什么事吗?

虚拟机和容器是Debian 7.4。 以下是容器中的bonnie输出:

root@ct2:/# bonnie++ -u root Using uid:0, gid:0. Writing a byte at a time...done Writing intelligently...done Rewriting...done Reading a byte at a time...done Reading intelligently...done start 'em...done...done...done...done...done... Create files in sequential order...done. Stat files in sequential order...done. Delete files in sequential order...done. Create files in random order...done. Stat files in random order...done. Delete files in random order...done. Version 1.96 ------Sequential Output------ --Sequential Input- --Random- Concurrency 1 -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks-- Machine Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP /sec %CP ct2 1G 843 99 59116 8 60351 4 4966 99 +++++ +++ 2745 8 Latency 9558us 3582ms 527ms 1672us 936us 5248us Version 1.96 ------Sequential Create------ --------Random Create-------- ct2 -Create-- --Read--- -Delete-- -Create-- --Read--- -Delete-- files /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP /sec %CP 16 +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ +++++ +++ Latency 19567us 358us 368us 107us 59us 25us 1.96,1.96,ct2,1,1401810323,1G,,843,99,59116,8,60351,4,4966,99,+++++,+++,2745,8,16,,,,,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,+++++,+++,9558us,3582ms,527ms,1672us,936us,5248us,19567us,358us,368us,107us,59us,25us 

/的文件系统types是“simfs”,它是openVZ的伪文件系统。 也许这是与这个问题有关,但我找不到与bonnie和openVZ有同样问题的任何人…

谢谢你的帮助。

问候,

托马斯。

你可以显示这个命令输出: cat /proc/mounts从你的VPS?

OpenVZ有两种磁盘布局:1)simfs(旧的,obsolet;它不是一个块设备,它只是物理服务器上的文件夹)2)ploop(新的,推荐的;它是块独立的文件系统的真实设备)

但是在这两种情况下,你都没有直接访问块设备(比如/ dev / loopX)。 但是,您可能会打电话给您的提供商提供它,但请记住它是非常不安全的。