[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] DomU slower with smp?



"Janusz Ulanowski" <janul666@xxxxxxxxx> writes:

> I just made simple peformance test with iozone tool on xen 3.2.1.
...
> It seems DomU  is much slower if using more than one cpu.

I would guess that maybe when you are running a single cpu on the DomU,
you are using different pcpu for dom0 and domu.  when you are using dual
cpu on the DomU, they likely step on oneanother.  

It's easy enough to move such things around with xm vcpu-pin and xm
vcpu-set

If you only have 2 CPUs, (or if your DomU and Dom0 are using the same physical
cpu, check with xm vcpu-list)  you can have trouble because every I/O operation
in a DomU requires an I/O operation in the Dom0

A  simple thing that often helps I/O performance is to give the Dom0 
either a dedicated CPU (that no other Domain uses)  or failing that,
to give the Dom0 a large 'weight'  -  try 

xm sched-credit -d 0 -w 4096

or something (-w can be anything larger than what you set the DomUs to.  
Personally, I set it on the dom0 to equal the total megabytes of ram in 
the box, and each DomU to the megabytes of ram it is allocated, so each 
DomU has proportional fair share, and the Dom0 has greatest share of all
so that I/O goes through unmolested.)  

my experience has been that even if you don't mess with pining vcpus, 
performance is ok so long as the weight of Dom0 is sufficiently high.  

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.