Re: [CentOS-virt] BAD disk I/O performance

2014-05-04 Thread Sven Kieske
Hi,

well quickly reading this thread I didn't see anyone
mentioning the I/O scheduler which is the component
with the highest performance impact.

you might want to check you are useing "deadline"
i/o scheduler.

extensive documentation on how to achieve this is
found on the web.

HTH
-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] BAD disk I/O performance

2014-05-04 Thread Zoltan Frombach
I also experienced really bad disk I/O performance with qcow2 images 
(under CentOS 6.4 hosts.)
When I converted the disk image to a raw logical volume (created with 
lvm2) I get almost bare-metal disk I/O performance.


Also note mentioning: check if your disk partitions are properly aligned 
and begin at 4k block boundaries. I use parted for this. For more info 
see 
http://rainbow.chard.org/2013/01/30/how-to-align-partitions-for-best-performance-using-parted/ 
or google it.


There are more performance tuning options, e.g. you can set 
vm.swappiness = 0 on the host's Linux kernel. You can also try different 
kernel scheduling options, etc. These gave me only minor performace 
gains. The most important part was getting away from qcow2 and using 
properly aligned disk partitions.


Zoltan

On 5/4/2014 12:58 PM, Luca Gervasi wrote:

Hello,

i'm trying to convert my physical web servers to a virtual guest. What 
i'm experiencing is a poor disk i/o, compared to the physical 
counterpart (having strace telling me that each write takes 
approximately 100 times the time needed on physical).


Tested hardware is pretty good (HP Proliant 360p Gen8 with 2xSAS 15k 
rpm 48 Gb Ram).


The hypervisor part is a minimal Centos 6.5 with libvirt.
The guest is configured using: VirtIO as disk bus, qcow2 storage 
format (thick allocation), cache mode: none (needed for for live 
migration - this could be changed if is the bottleneck), IO mode: default.


Is someone willing to give me some adivices? :)

Thanks

Luca


___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


Re: [CentOS-virt] BAD disk I/O performance

2014-05-04 Thread Dennis Jacobfeuerborn
On 04.05.2014 12:58, Luca Gervasi wrote:
> Hello,
> 
> i'm trying to convert my physical web servers to a virtual guest. What i'm
> experiencing is a poor disk i/o, compared to the physical counterpart
> (having strace telling me that each write takes approximately 100 times the
> time needed on physical).
> 
> Tested hardware is pretty good (HP Proliant 360p Gen8 with 2xSAS 15k rpm 48
> Gb Ram).
> 
> The hypervisor part is a minimal Centos 6.5 with libvirt.
> The guest is configured using: VirtIO as disk bus, qcow2 storage format
> (thick allocation), cache mode: none (needed for for live migration - this
> could be changed if is the bottleneck), IO mode: default.
> 
> Is someone willing to give me some adivices? :)

Have you tried using a raw images just for testing? I've seen some
pretty nasty performance degradation with qcow2 but unfortunately I was
never able to track down what exactly caused this. Switching to raw
images fixed the issue for me.

Regards,
  Dennis

___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt


[CentOS-virt] BAD disk I/O performance

2014-05-04 Thread Luca Gervasi
Hello,

i'm trying to convert my physical web servers to a virtual guest. What i'm
experiencing is a poor disk i/o, compared to the physical counterpart
(having strace telling me that each write takes approximately 100 times the
time needed on physical).

Tested hardware is pretty good (HP Proliant 360p Gen8 with 2xSAS 15k rpm 48
Gb Ram).

The hypervisor part is a minimal Centos 6.5 with libvirt.
The guest is configured using: VirtIO as disk bus, qcow2 storage format
(thick allocation), cache mode: none (needed for for live migration - this
could be changed if is the bottleneck), IO mode: default.

Is someone willing to give me some adivices? :)

Thanks

Luca
___
CentOS-virt mailing list
CentOS-virt@centos.org
http://lists.centos.org/mailman/listinfo/centos-virt