Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢

2014-07-10 Thread Wei ZHOU
哦,对,即使是basic或者advanced-sg,vm.network.throttling.rate也会影响vm


在 2014年7月11日 上午8:48,Wei ZHOU 写道:

> 你用的是advanced zone? 还是basic或者advanced zone with security group?
> 如果是后两个,流量不经过virtual router,所以可能跟cs没关系。
> 如果是第一个,流量都要经过virtual router,建议到virtual router上测试一下。
>
> 另外,看看virtual router和vm的配置(virsh
> dumpxml),看看里面的bandwidth设置,inbound和outbound的单位都是KBps。
> global
> setting里面的network.throttling.rate和vm.network.throttling.rate的默认值都是200Mbps(25MBps)。建议修改,然后stop/start
> virtualrouter和vm.
>
>
> 在 2014年7月11日 上午8:17,evanitsharp 写道:
>
> 大家好,这是我最近的测试数据。经测试发现KVM下新建的虚机与局域网内其他机器交互的速度仍然不正常。
>>
>> 我们公司经过了多伦测试,每次装好的CS4.2.1+KVM环境,都存在这个问题。
>> 各位在KVM环境下都没遇到过这个性能问题(使用KVM作虚级化平台,KVM上的虚拟机与外界交换数据的速度很慢)?
>>
>> 我感觉这不是我们环境的问题,是CS自身的问题。
>>
>>
>>
>> 1.从FTP服务器上下载文件到被测试的KVM主机:
>> 平均速度63M/S
>>
>> ftp> get centos.iso
>> local: centos.iso remote: centos.iso
>> 227 Entering Passive Mode (192,168,10,48,144,252).
>> 150 Opening BINARY mode data connection for centos.iso (4353378304
>> bytes).
>> 226 Transfer complete.
>> 4353378304 bytes received in 66.5 secs (65433.85 Kbytes/sec)
>>
>> 2. 从FTP服务器上下载文件到被测试的VM(KVM):
>> 平均速度14.0M/S
>>
>> ftp> get test.iso
>> local: test.iso remote: testiso
>> 227 Entering Passive Mode (192,168,10,48,144,252).
>> 150 Opening BINARY mode data connection for test.iso (140616708 bytes).
>> 226 Transfer complete.
>> 140616708 bytes received in 9.76 secs (14401.34 Kbytes/sec)
>>
>>
>> 3.从被测试虚机Web服务器上下载文件到本地
>> 速度:1.0M/S
>>
>> [root@committer39 tmp]# wget
>> http://192.168.10.73/tcd2.1-2014.06.25.tar.bz2
>> --2014-07-11 
>> 14:09:59--  http://192.168.10.73/tcd2.1-2014.06.25.tar.bz2
>> Connecting to 192.168.10.73:80... connected.
>> HTTP request sent, awaiting response... 200 OK
>> Length: 117659860 (112M) [application/x-bzip2]
>> Saving to: 鈥渢cd2.1-2014.06.25.tar.bz2鈥
>>
>> 100%[==>]
>> 117,659,860 1015K/s   in 1m 47s
>>
>> 2014-07-11 14:11:47 (1.05 MB/s) - 鈥渢cd2.1-2014.06.25.tar.bz2鈥saved
>> [117659860/117659860]
>>
>> 4.从被测试KVM主机的Web服务器上下载文件到本地
>> 测试速度:83M/S
>>
>> [root@committer39 tmp]# wget
>> http://192.168.10.7/rhel-server-6.3-x86_64-dvd.iso
>> --2014-07-11
>> 
>> 13:28:29--  http://192.168.10.7/rhel-server-6.3-x86_64-dvd.iso
>> Connecting to 192.168.10.7:80... connected.
>> HTTP request sent, awaiting response... 200 OK
>> Length: 3679453184 (3.4G) [application/octet-stream]
>> Saving to: 鈥渞hel-server-6.3-x86_64-dvd.iso鈥
>>
>> 100%[>]
>> 3,679,453,184 79.8M/s   in 42s
>>
>> 2014-07-11 13:29:11 (83.0 MB/s) - 鈥渞hel-server-6.3-x86_64-dvd.iso鈥saved
>> [3679453184/3679453184]
>>
>>
>>
>>
>> 张雷(Evan)
>>
>> 中航信华东数据中心有限责任公司
>>
>> Mail:evanitsh...@gmail.com
>>
>> 发件人: 贝为标
>> 发送时间: 2014-07-10 14:11
>> 收件人: users-cn
>> 主题: Re: Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢
>> evanitsharp,您好!
>>
>> dd数据看起来没什么问题,你是用wget来下载吗?试试ftp传输看看?
>>
>> === 2014-07-10 13:51:30 您在来信中写道:===
>>
>> >你好,按照你的意思,我测试的数据如下:
>> >
>> >KVM主机上:
>> >[root@cs tmp]# dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
>> >1000+0 records in
>> >1000+0 records out
>> >1048576000 bytes (1.0 GB) copied, 3.50706 s, 299 MB/s
>> >
>> >虚拟机(KVM)上:
>> >[root@cs tmp]# dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
>> >1000+0 records in
>> >1000+0 records out
>> >1048576000 bytes (1.0 GB) copied, 22.7811 s, 46.0 MB/s
>> >
>> >
>> >
>> >
>> >张雷(Evan)
>> >
>> >中航信华东数据中心有限责任公司
>> >
>> >Mail:evanitsh...@gmail.com
>> >
>> >发件人: 贝为标
>> >发送时间: 2014-07-10 13:22
>> >收件人: users-cn
>> >主题: Re: Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢
>> >evanitsharp,您好!
>> >
>> >你的dd命令可能不正确,应该这样测试:
>> >
>> ># dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
>> >
>> >
>> >
>> >=== 2014-07-10 13:14:28 您在来信中写道:===
>> >
>> >>之前我说了从网络和存储两个方面考虑,以下是我测试的数据:
>> >>
>> >>1.KVM虚拟机下用dd命令测试磁盘读写性能:
>> >>144MB/S
>> >>
>> >>2.KVM物理主机用dd命令测试磁盘读写性能:
>> >>185MB/S
>> >>
>> >>3.通过Web服务器下载大文件到VM(KVM)磁盘时,VM上的统计数据:
>> >>[root@evan2 ~]# iostat
>> >>avg-cpu:  %user   %nice %system %iowait  %steal   %idle
>> >>   0.030.000.070.020.01   99.88
>> >>Device:tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
>> >>vda  0.629.09   203.93 956122146106
>> >>dm-025.738.21   203.93 864342146088
>> >>dm-10.03 0.23 0.00   2376 0
>> >>
>> >>[root@evan2 ~]# iostat -d -k 1 1
>> >>Device:tpskB_read/skB_wrtn/skB_readkB_wrtn
>> >>xvda  0.684.41   118.54 478061286357
>> >>dm-0 29.863.98   118.54 432171286348
>> >>dm-1  0.030.11 0.00  1188  0
>> >>
>> >>4.通过Web服务器下载大文件到KVM主机磁盘时,KVM主机上的统计数据:
>> >>[root@cs ~]# iostat
>> >>avg-cpu:  %user   %nice %system %iowait  %ste

Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢

2014-07-10 Thread Wei ZHOU
你用的是advanced zone? 还是basic或者advanced zone with security group?
如果是后两个,流量不经过virtual router,所以可能跟cs没关系。
如果是第一个,流量都要经过virtual router,建议到virtual router上测试一下。

另外,看看virtual router和vm的配置(virsh
dumpxml),看看里面的bandwidth设置,inbound和outbound的单位都是KBps。
global
setting里面的network.throttling.rate和vm.network.throttling.rate的默认值都是200Mbps(25MBps)。建议修改,然后stop/start
virtualrouter和vm.


在 2014年7月11日 上午8:17,evanitsharp 写道:

> 大家好,这是我最近的测试数据。经测试发现KVM下新建的虚机与局域网内其他机器交互的速度仍然不正常。
>
> 我们公司经过了多伦测试,每次装好的CS4.2.1+KVM环境,都存在这个问题。
> 各位在KVM环境下都没遇到过这个性能问题(使用KVM作虚级化平台,KVM上的虚拟机与外界交换数据的速度很慢)?
>
> 我感觉这不是我们环境的问题,是CS自身的问题。
>
>
>
> 1.从FTP服务器上下载文件到被测试的KVM主机:
> 平均速度63M/S
>
> ftp> get centos.iso
> local: centos.iso remote: centos.iso
> 227 Entering Passive Mode (192,168,10,48,144,252).
> 150 Opening BINARY mode data connection for centos.iso (4353378304 bytes).
> 226 Transfer complete.
> 4353378304 bytes received in 66.5 secs (65433.85 Kbytes/sec)
>
> 2. 从FTP服务器上下载文件到被测试的VM(KVM):
> 平均速度14.0M/S
>
> ftp> get test.iso
> local: test.iso remote: testiso
> 227 Entering Passive Mode (192,168,10,48,144,252).
> 150 Opening BINARY mode data connection for test.iso (140616708 bytes).
> 226 Transfer complete.
> 140616708 bytes received in 9.76 secs (14401.34 Kbytes/sec)
>
>
> 3.从被测试虚机Web服务器上下载文件到本地
> 速度:1.0M/S
>
> [root@committer39 tmp]# wget
> http://192.168.10.73/tcd2.1-2014.06.25.tar.bz2
> --2014-07-11 14:09:59--  http://192.168.10.73/tcd2.1-2014.06.25.tar.bz2
> Connecting to 192.168.10.73:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 117659860 (112M) [application/x-bzip2]
> Saving to: 鈥渢cd2.1-2014.06.25.tar.bz2鈥
>
> 100%[==>]
> 117,659,860 1015K/s   in 1m 47s
>
> 2014-07-11 14:11:47 (1.05 MB/s) - 鈥渢cd2.1-2014.06.25.tar.bz2鈥saved
> [117659860/117659860]
>
> 4.从被测试KVM主机的Web服务器上下载文件到本地
> 测试速度:83M/S
>
> [root@committer39 tmp]# wget
> http://192.168.10.7/rhel-server-6.3-x86_64-dvd.iso
> --2014-07-11 13:28:29--
> http://192.168.10.7/rhel-server-6.3-x86_64-dvd.iso
> Connecting to 192.168.10.7:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 3679453184 (3.4G) [application/octet-stream]
> Saving to: 鈥渞hel-server-6.3-x86_64-dvd.iso鈥
>
> 100%[>]
> 3,679,453,184 79.8M/s   in 42s
>
> 2014-07-11 13:29:11 (83.0 MB/s) - 鈥渞hel-server-6.3-x86_64-dvd.iso鈥saved
> [3679453184/3679453184]
>
>
>
>
> 张雷(Evan)
>
> 中航信华东数据中心有限责任公司
>
> Mail:evanitsh...@gmail.com
>
> 发件人: 贝为标
> 发送时间: 2014-07-10 14:11
> 收件人: users-cn
> 主题: Re: Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢
> evanitsharp,您好!
>
> dd数据看起来没什么问题,你是用wget来下载吗?试试ftp传输看看?
>
> === 2014-07-10 13:51:30 您在来信中写道:===
>
> >你好,按照你的意思,我测试的数据如下:
> >
> >KVM主机上:
> >[root@cs tmp]# dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
> >1000+0 records in
> >1000+0 records out
> >1048576000 bytes (1.0 GB) copied, 3.50706 s, 299 MB/s
> >
> >虚拟机(KVM)上:
> >[root@cs tmp]# dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
> >1000+0 records in
> >1000+0 records out
> >1048576000 bytes (1.0 GB) copied, 22.7811 s, 46.0 MB/s
> >
> >
> >
> >
> >张雷(Evan)
> >
> >中航信华东数据中心有限责任公司
> >
> >Mail:evanitsh...@gmail.com
> >
> >发件人: 贝为标
> >发送时间: 2014-07-10 13:22
> >收件人: users-cn
> >主题: Re: Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢
> >evanitsharp,您好!
> >
> >你的dd命令可能不正确,应该这样测试:
> >
> ># dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
> >
> >
> >
> >=== 2014-07-10 13:14:28 您在来信中写道:===
> >
> >>之前我说了从网络和存储两个方面考虑,以下是我测试的数据:
> >>
> >>1.KVM虚拟机下用dd命令测试磁盘读写性能:
> >>144MB/S
> >>
> >>2.KVM物理主机用dd命令测试磁盘读写性能:
> >>185MB/S
> >>
> >>3.通过Web服务器下载大文件到VM(KVM)磁盘时,VM上的统计数据:
> >>[root@evan2 ~]# iostat
> >>avg-cpu:  %user   %nice %system %iowait  %steal   %idle
> >>   0.030.000.070.020.01   99.88
> >>Device:tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
> >>vda  0.629.09   203.93 956122146106
> >>dm-025.738.21   203.93 864342146088
> >>dm-10.03 0.23 0.00   2376 0
> >>
> >>[root@evan2 ~]# iostat -d -k 1 1
> >>Device:tpskB_read/skB_wrtn/skB_readkB_wrtn
> >>xvda  0.684.41   118.54 478061286357
> >>dm-0 29.863.98   118.54 432171286348
> >>dm-1  0.030.11 0.00  1188  0
> >>
> >>4.通过Web服务器下载大文件到KVM主机磁盘时,KVM主机上的统计数据:
> >>[root@cs ~]# iostat
> >>avg-cpu:  %user   %nice %system %iowait  %steal   %idle
> >>   0.500.000.470.010.00   99.02
> >>
> >>Device:tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
> >>sda   5.6389.66   251.3714114523957284
> >>dm-0  9.5487.72   251.3413809363956682
> >>dm-1  0.02 0.16 0.00   2576  0
> >>dm-2  0

Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢

2014-07-10 Thread evanitsharp
大家好,这是我最近的测试数据。经测试发现KVM下新建的虚机与局域网内其他机器交互的速度仍然不正常。

我们公司经过了多伦测试,每次装好的CS4.2.1+KVM环境,都存在这个问题。
各位在KVM环境下都没遇到过这个性能问题(使用KVM作虚级化平台,KVM上的虚拟机与外界交换数据的速度很慢)?

我感觉这不是我们环境的问题,是CS自身的问题。



1.从FTP服务器上下载文件到被测试的KVM主机:
平均速度63M/S

ftp> get centos.iso
local: centos.iso remote: centos.iso
227 Entering Passive Mode (192,168,10,48,144,252).
150 Opening BINARY mode data connection for centos.iso (4353378304 bytes).
226 Transfer complete.
4353378304 bytes received in 66.5 secs (65433.85 Kbytes/sec)

2. 从FTP服务器上下载文件到被测试的VM(KVM):
平均速度14.0M/S

ftp> get test.iso
local: test.iso remote: testiso
227 Entering Passive Mode (192,168,10,48,144,252).
150 Opening BINARY mode data connection for test.iso (140616708 bytes).
226 Transfer complete.
140616708 bytes received in 9.76 secs (14401.34 Kbytes/sec)


3.从被测试虚机Web服务器上下载文件到本地
速度:1.0M/S
 
[root@committer39 tmp]# wget http://192.168.10.73/tcd2.1-2014.06.25.tar.bz2
--2014-07-11 14:09:59--  http://192.168.10.73/tcd2.1-2014.06.25.tar.bz2
Connecting to 192.168.10.73:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 117659860 (112M) [application/x-bzip2]
Saving to: 鈥渢cd2.1-2014.06.25.tar.bz2鈥
 
100%[==>]
 117,659,860 1015K/s   in 1m 47s  
 
2014-07-11 14:11:47 (1.05 MB/s) - 鈥渢cd2.1-2014.06.25.tar.bz2鈥saved 
[117659860/117659860]

4.从被测试KVM主机的Web服务器上下载文件到本地
测试速度:83M/S
 
[root@committer39 tmp]# wget http://192.168.10.7/rhel-server-6.3-x86_64-dvd.iso
--2014-07-11 13:28:29--  http://192.168.10.7/rhel-server-6.3-x86_64-dvd.iso
Connecting to 192.168.10.7:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3679453184 (3.4G) [application/octet-stream]
Saving to: 鈥渞hel-server-6.3-x86_64-dvd.iso鈥
 
100%[>]
 3,679,453,184 79.8M/s   in 42s 
 
2014-07-11 13:29:11 (83.0 MB/s) - 鈥渞hel-server-6.3-x86_64-dvd.iso鈥saved 
[3679453184/3679453184]




张雷(Evan)

中航信华东数据中心有限责任公司

Mail:evanitsh...@gmail.com

发件人: 贝为标
发送时间: 2014-07-10 14:11
收件人: users-cn
主题: Re: Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢
evanitsharp,您好!

dd数据看起来没什么问题,你是用wget来下载吗?试试ftp传输看看?

=== 2014-07-10 13:51:30 您在来信中写道:===

>你好,按照你的意思,我测试的数据如下:
>
>KVM主机上:
>[root@cs tmp]# dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
>1000+0 records in
>1000+0 records out
>1048576000 bytes (1.0 GB) copied, 3.50706 s, 299 MB/s
>
>虚拟机(KVM)上:
>[root@cs tmp]# dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
>1000+0 records in
>1000+0 records out
>1048576000 bytes (1.0 GB) copied, 22.7811 s, 46.0 MB/s
>
>
>
>
>张雷(Evan)
>
>中航信华东数据中心有限责任公司
>
>Mail:evanitsh...@gmail.com
>
>发件人: 贝为标
>发送时间: 2014-07-10 13:22
>收件人: users-cn
>主题: Re: Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢
>evanitsharp,您好!
>
>你的dd命令可能不正确,应该这样测试:
>
># dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
>
>
>
>=== 2014-07-10 13:14:28 您在来信中写道:===
>
>>之前我说了从网络和存储两个方面考虑,以下是我测试的数据:
>>
>>1.KVM虚拟机下用dd命令测试磁盘读写性能:
>>144MB/S
>>
>>2.KVM物理主机用dd命令测试磁盘读写性能:
>>185MB/S
>>
>>3.通过Web服务器下载大文件到VM(KVM)磁盘时,VM上的统计数据:
>>[root@evan2 ~]# iostat
>>avg-cpu:  %user   %nice %system %iowait  %steal   %idle
>>   0.030.000.070.020.01   99.88
>>Device:tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
>>vda  0.629.09   203.93 956122146106
>>dm-025.738.21   203.93 864342146088
>>dm-10.03 0.23 0.00   2376 0
>>
>>[root@evan2 ~]# iostat -d -k 1 1
>>Device:tpskB_read/skB_wrtn/skB_readkB_wrtn
>>xvda  0.684.41   118.54 478061286357
>>dm-0 29.863.98   118.54 432171286348
>>dm-1  0.030.11 0.00  1188  0
>>
>>4.通过Web服务器下载大文件到KVM主机磁盘时,KVM主机上的统计数据:
>>[root@cs ~]# iostat
>>avg-cpu:  %user   %nice %system %iowait  %steal   %idle
>>   0.500.000.470.010.00   99.02
>> 
>>Device:tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
>>sda   5.6389.66   251.3714114523957284
>>dm-0  9.5487.72   251.3413809363956682
>>dm-1  0.02 0.16 0.00   2576  0
>>dm-2  0.04 0.27 0.04   4322560
>> 
>>[root@cs ~]# iostat -d -k 1 1
>>Device:tpskB_read/skB_wrtn/skB_readkB_wrtn
>>sda   7.9444.71   396.31 7060266258666
>>dm-0 76.8443.74   396.29 6907686258365
>>dm-1  0.02 0.08 0.00   1288  0
>>dm-2  0.04 0.14 0.02   2161280
>>
>>通过数据的比较,我感觉问题主要出在网络方面,很可能和Virtual Router有关系(但我们环境里的Virtual 
>>Router是默认配置)。交换机配置是没有问题的,因为局域网网其它XenServer、ESXi主机的网络读写性能都很正常。
>>
>>我想了解下大家在用CS4.2.1+KVM时,有没有碰到KVM虚拟机读写I/O性能问题?你们是怎么解决的?
>>
>>
>>
>>
>>张雷(Evan)
>>

Re: vm迁移实体机状态问题

2014-07-10 Thread Wei ZHOU
cluster(如果是基于zone-wide的primary storage,是可以跨cluster的), affinity group,
capacity


在 2014年7月11日 上午5:35,虚无缥缈 <83675...@qq.com>写道:

> 一共10台实体机,vm迁移有个实体机显示not suitable,有点实体机显示suitable,请问显示not
> suitable状态的原因,怎么查找,实体机负载都很低,刚刚建立,vm一共20左右。存储使用sharemountpoint.‍‍


存储还是0KB

2014-07-10 Thread div8cn
请求一下  系统虚拟机,SSVM 已经正常启动了,但是我的辅助存储还是0KB,这个应该怎么查?



div8cn

回复:vm迁移实体机状态问题

2014-07-10 Thread 上帝是个好导演
底层架构是什么? 安装相应的tools了吗?
  

 

 -- 原始邮件 --
  发件人: "虚无缥缈";<83675...@qq.com>;
 发送时间: 2014年7月11日(星期五) 中午11:35
 收件人: "users-cn"; 
 
 主题: vm迁移实体机状态问题

 

一共10台实体机,vm迁移有个实体机显示not suitable,有点实体机显示suitable,请问显示not 
suitable状态的原因,怎么查找,实体机负载都很低,刚刚建立,vm一共20左右。存储使用sharemountpoint.‍‍

回复:vm迁移实体机状态问题

2014-07-10 Thread 青山依旧
十台实体机的配置一样吗? 
vm迁移只能在同一个集群迁移 ,同一个集群主机配置最好一样 主要是CPU 类型相同





-- 原始邮件 --
发件人: "虚无缥缈";<83675...@qq.com>;
发送时间: 2014年7月11日(星期五) 中午11:35
收件人: "users-cn"; 

主题: vm迁移实体机状态问题



一共10台实体机,vm迁移有个实体机显示not suitable,有点实体机显示suitable,请问显示not 
suitable状态的原因,怎么查找,实体机负载都很低,刚刚建立,vm一共20左右。存储使用sharemountpoint.‍‍

vm迁移实体机状态问题

2014-07-10 Thread 虚无缥缈
一共10台实体机,vm迁移有个实体机显示not suitable,有点实体机显示suitable,请问显示not 
suitable状态的原因,怎么查找,实体机负载都很低,刚刚建立,vm一共20左右。存储使用sharemountpoint.‍‍

cloudstack????????????maven -P deps????

2014-07-10 Thread ????????
cloudstack
maven -P deps 
 T E S T S
---
Running org.apache.cloudstack.managed.context.impl.DefaultManagedContextTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further 
details.
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.556 sec

Results :

Tests run: 6, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ 
cloud-framework-managed-context ---
[INFO] Building jar: 
/home/cloudstack43src/apache-cloudstack-4.3.0-src/framework/managed-context/target/cloud-framework-managed-context-4.3.0.jar
[INFO] 
[INFO] --- maven-site-plugin:3.1:attach-descriptor (attach-descriptor) @ 
cloud-framework-managed-context ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ 
cloud-framework-managed-context ---
[INFO] Installing 
/home/cloudstack43src/apache-cloudstack-4.3.0-src/framework/managed-context/target/cloud-framework-managed-context-4.3.0.jar
 to 
/root/.m2/repository/org/apache/cloudstack/cloud-framework-managed-context/4.3.0/cloud-framework-managed-context-4.3.0.jar
[INFO] Installing 
/home/cloudstack43src/apache-cloudstack-4.3.0-src/framework/managed-context/pom.xml
 to 
/root/.m2/repository/org/apache/cloudstack/cloud-framework-managed-context/4.3.0/cloud-framework-managed-context-4.3.0.pom
[INFO] 
[INFO] 
[INFO] Building Apache CloudStack Utils 4.3.0
[INFO] 
[INFO] 
[INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-utils ---
[INFO] 
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ 
cloud-utils ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ cloud-utils 
---
[INFO] Compiling 12 source files to 
/home/cloudstack43src/apache-cloudstack-4.3.0-src/utils/target/classes
[INFO] -
[ERROR] COMPILATION ERROR : 
[INFO] -
[ERROR] 
/home/cloudstack43src/apache-cloudstack-4.3.0-src/utils/src/com/cloud/utils/component/ComponentContext.java:[226,25]
 type parameters of T cannot be determined; no unique maximal instance 
exists for type variable T with upper bounds T,java.lang.Object
[INFO] 1 error
[INFO] -
[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache CloudStack .. SUCCESS [ 21.859 s]
[INFO] Apache CloudStack Maven Conventions Parent . SUCCESS [  0.252 s]
[INFO] Apache CloudStack Framework - Managed Context .. SUCCESS [ 26.726 s]
[INFO] Apache CloudStack Utils  FAILURE [ 52.700 s]
[INFO] Apache CloudStack Framework  SKIPPED
[INFO] Apache CloudStack Framework - Event Notification ... SKIPPED
[INFO] Apache CloudStack Framework - Configuration  SKIPPED
[INFO] Apache CloudStack API .. SKIPPED
[INFO] Apache CloudStack Framework - REST . SKIPPED
[INFO] Apache CloudStack Framework - IPC .. SKIPPED
[INFO] Apache CloudStack Cloud Engine . SKIPPED
[INFO] Apache CloudStack Cloud Engine API . SKIPPED
[INFO] Apache CloudStack Core . SKIPPED
[INFO] Apache CloudStack Agents ... SKIPPED
[INFO] Apache CloudStack Framework - Clustering ... SKIPPED
[INFO] Apache CloudStack Framework - Jobs . SKIPPED
[INFO] Apache CloudStack Cloud Engine Schema Component  SKIPPED
[INFO] Apache CloudStack Framework - Event Notification ... SKIPPED
[INFO] Apache CloudStack Cloud Engine Internal Components API SKIPPED
[INFO] Apache CloudStack Server ... SKIPPED
[INFO] Apache CloudStack Usage Server . SKIPPED
[INFO] Apache XenSource XAPI .. SKIPPED
[INFO] Apache CloudStack Cloud Engine Orchestration Component SKIPPED
[INFO] Apache CloudStack Cloud Services ... SKIPPED
[INFO] Apache CloudStack Secondary Storage Service  SKIPPED
[INFO] Apache CloudStack Engine Storage Component . SKIPPED
[INFO] Apache CloudStack Engine Storage Volume Component .. SKIPPED
[INFO] Apache CloudStack Engine Storage Image Component ... SKIPPED
[INFO] Apache CloudStack Engine Storage Da

Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢

2014-07-10 Thread evanitsharp
1.通过HTTP下载文件到KVM主机的情况
[root@cs tmp]# wget http://192.168.10.39/centos.iso
--2014-07-10 14:33:48--  http://192.168.10.39/centos.iso
Connecting to 192.168.10.39:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4353378304 (4.1G) [application/octet-stream]
100%[===>] 4,353,378,304  
101M/s   in 47s 
2014-07-10 14:34:35 (89.2 MB/s) - 鈥渃entos.iso鈥saved [4353378304/4353378304]

2.Web服务器搭建在KVM主机上时,从改服务器下载文件到开发机


2.通过HTTP下载文件到VM(KVM)的情况
因为很慢,具体数据略,平均速度为700K/S
如图:



因为公司暂没有可用的FTP服务器,所以FTP下载速度没有测试,




张雷(Evan)

中航信华东数据中心有限责任公司

Mail:evanitsh...@gmail.com

发件人: 贝为标
发送时间: 2014-07-10 14:11
收件人: users-cn
主题: Re: Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢
evanitsharp,您好!

dd数据看起来没什么问题,你是用wget来下载吗?试试ftp传输看看?

=== 2014-07-10 13:51:30 您在来信中写道:===

>你好,按照你的意思,我测试的数据如下:
>
>KVM主机上:
>[root@cs tmp]# dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
>1000+0 records in
>1000+0 records out
>1048576000 bytes (1.0 GB) copied, 3.50706 s, 299 MB/s
>
>虚拟机(KVM)上:
>[root@cs tmp]# dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
>1000+0 records in
>1000+0 records out
>1048576000 bytes (1.0 GB) copied, 22.7811 s, 46.0 MB/s
>
>
>
>
>张雷(Evan)
>
>中航信华东数据中心有限责任公司
>
>Mail:evanitsh...@gmail.com
>
>发件人: 贝为标
>发送时间: 2014-07-10 13:22
>收件人: users-cn
>主题: Re: Re: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢
>evanitsharp,您好!
>
>你的dd命令可能不正确,应该这样测试:
>
># dd bs=1M count=1000 if=/dev/zero of=test oflag=dsync
>
>
>
>=== 2014-07-10 13:14:28 您在来信中写道:===
>
>>之前我说了从网络和存储两个方面考虑,以下是我测试的数据:
>>
>>1.KVM虚拟机下用dd命令测试磁盘读写性能:
>>144MB/S
>>
>>2.KVM物理主机用dd命令测试磁盘读写性能:
>>185MB/S
>>
>>3.通过Web服务器下载大文件到VM(KVM)磁盘时,VM上的统计数据:
>>[root@evan2 ~]# iostat
>>avg-cpu:  %user   %nice %system %iowait  %steal   %idle
>>   0.030.000.070.020.01   99.88
>>Device:tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
>>vda  0.629.09   203.93 956122146106
>>dm-025.738.21   203.93 864342146088
>>dm-10.03 0.23 0.00   2376 0
>>
>>[root@evan2 ~]# iostat -d -k 1 1
>>Device:tpskB_read/skB_wrtn/skB_readkB_wrtn
>>xvda  0.684.41   118.54 478061286357
>>dm-0 29.863.98   118.54 432171286348
>>dm-1  0.030.11 0.00  1188  0
>>
>>4.通过Web服务器下载大文件到KVM主机磁盘时,KVM主机上的统计数据:
>>[root@cs ~]# iostat
>>avg-cpu:  %user   %nice %system %iowait  %steal   %idle
>>   0.500.000.470.010.00   99.02
>> 
>>Device:tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
>>sda   5.6389.66   251.3714114523957284
>>dm-0  9.5487.72   251.3413809363956682
>>dm-1  0.02 0.16 0.00   2576  0
>>dm-2  0.04 0.27 0.04   4322560
>> 
>>[root@cs ~]# iostat -d -k 1 1
>>Device:tpskB_read/skB_wrtn/skB_readkB_wrtn
>>sda   7.9444.71   396.31 7060266258666
>>dm-0 76.8443.74   396.29 6907686258365
>>dm-1  0.02 0.08 0.00   1288  0
>>dm-2  0.04 0.14 0.02   2161280
>>
>>通过数据的比较,我感觉问题主要出在网络方面,很可能和Virtual Router有关系(但我们环境里的Virtual 
>>Router是默认配置)。交换机配置是没有问题的,因为局域网网其它XenServer、ESXi主机的网络读写性能都很正常。
>>
>>我想了解下大家在用CS4.2.1+KVM时,有没有碰到KVM虚拟机读写I/O性能问题?你们是怎么解决的?
>>
>>
>>
>>
>>张雷(Evan)
>>
>>中航信华东数据中心有限责任公司
>>
>>Mail:evanitsh...@gmail.com
>>
>>发件人: Wei ZHOU
>>发送时间: 2014-07-09 16:12
>>收件人: users-cn
>>主题: Re: CS4.2.1+kvm环境下,新建虚拟机磁盘读写很慢
>>用dd和iostat测一下本机和虚拟机里面的磁盘性能看看差多少
>>
>>
>>在 2014年7月9日 下午3:58,evanitsharp 写道:
>>
>>> CS4.2.1+KVM环境下,存储使用local(即建好的虚机位于KVM本机上),新建的VM读写速度很慢
>>>
>>> 1. 我在KVM上的新建的虚机上搭建好了web服务器,局域网内另外一台计算机上通过这台Web服务器下载文件,下载的平均速度只有1.2M/S
>>>
>>> 2. 我从局域网内的一台正常Web服务器下载文件到该KVM上的虚拟机,速度只有700K/S
>>>
>>> 而我们的局域网是千兆网络,从web服务器下载文件到自己本地的机器速度都有100M/S
>>>
>>>
>>> 请问:CS4.2.1下,KVM下建好的虚机磁盘读写速度为什么会这么慢,怎么样解决这个问题?
>>> PS:从网络和存储两个方面考虑
>>>
>>> 麻烦各位给个解决办法,谢谢
>>>
>>>
>>>
>>>
>>> 张雷(Evan)
>>>
>>> 中航信华东数据中心有限责任公司
>>>
>>> Mail:evanitsh...@gmail.com
>
>= = = = = = = = = = = = = = = = = = = =
>
>致
>礼!
>贝为标
>beiweib...@163.com
>  2014-07-10

= = = = = = = = = = = = = = = = = = = =

致
礼!
贝为标
beiweib...@163.com
  2014-07-10