fair scheduling
hi all,
I am using xen3.0.3 on dual core hyperthreaded processor (in all 4 cores). There are 2 VMs vm1,vm2 among which vm1 has a webserver running on it.
While testing the performance of webserver, when I introduce some load on vm2 which involves some computations the webserver performance goes down. This happened even in the case where CPU usage by both of vm1,vm2 is restricted to 100% each.
Is it expected behavior ? if yes then how does one can control addition of new virtual machines as adding every new VM will result in lowering performance of other VMs. Through scheduling parameters we can just specify amount of CPU to be used in relative sense (weight) & upper limit (cap). But how to tackle this point.
I am new in this area & wanna set up a lab using virtualization, so want to find solution for this.
thanks,
Harry
we always have a choice...
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
You should show detail configuration. Your information is too short.
Anyway I guess each domain has one vcpu.
If so, this is normal behavior.
Because one vcpu cannot allocate two or more pcpu at once.
Thanks
Atsushi SAKAI
Quoted 23 lines · Harry Smith
hi all,
I am using xen3.0.3 on dual core hyperthreaded processor (in all 4 cores). There are 2 VMs vm1,vm2 among which vm1 has a webserver running on it.
While testing the performance of webserver, when I introduce some load on vm2 which involves some computations the webserver performance goes down. This happened even in the case where CPU usage by both of vm1,vm2 is restricted to 100% each.
Is it expected behavior ? if yes then how does one can control addition of new virtual machines as adding every new VM will result in lowering performance of other VMs. Through scheduling parameters we can just specify amount of CPU to be used in relative sense (weight) & upper limit (cap). But how to tackle this point.
I am new in this area & wanna set up a lab using virtualization, so want to find solution for this.
thanks,
Harrywe always have a choice...
Hi Atsushi,
Quoted 8 lines · Atsushi SAKAI
You should show detail configuration. Your information is too short.
Anyway I guess each domain has one vcpu.
If so, this is normal behavior.
Because one vcpu cannot allocate two or more pcpu at once.
Right, but shouldn't Xen hypervisor be capable of migrating the VCPU among the available PCPUs on a multiprocessor system, like in this case? And criteria should be the load on the PCPU or the idle PCPUs. yes/no?
Am i missing something here?
Thanks
~psr
Thanks
Quoted 42 lines
Atsushi SAKAI
Quoted 3 lines · Harry Smith
hi all,
I am using xen3.0.3 on dual core hyperthreaded processor (in all 4
cores).
Quoted 3 lines
There are 2 VMs vm1,vm2 among which vm1 has a webserver running on it.
While testing the performance of webserver, when I introduce some load
on
Quoted 1 line
vm2 which involves some computations the webserver performance goes
down.
Quoted 4 lines
This happened even in the case where CPU usage by both of vm1,vm2 is restricted to 100% each.
Is it expected behavior ? if yes then how does one can control addition
of
Quoted 2 lines
new virtual machines as adding every new VM will result in lowering performance of other VMs. Through scheduling parameters we can just
specify
Quoted 1 line
amount of CPU to be used in relative sense (weight) & upper limit (cap).
But
Quoted 3 lines
how to tackle this point.
I am new in this area & wanna set up a lab using virtualization, so want
to
Quoted 6 lines
find solution for this.
thanks,
Harrywe always have a choice...
_______________________________________________
Xen-devel mailing list [email protected]
http://lists.xensource.com/xen-devel
Signature · 4 lines
--- pradeep singh rautela "Genius is 1% inspiration, and 99% perspiration" - not me :)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
One vcpu can use one pcpu at one time.
It means 100% is maxium for one vcpu domain.
If you want to use cpu resources, you should set more vcpu.
Thanks
Atsushi SAKAI
Quoted 74 lines · pradeep singh rautela
Hi Atsushi,
Quoted 8 lines · Atsushi SAKAI
You should show detail configuration. Your information is too short.
Anyway I guess each domain has one vcpu.
If so, this is normal behavior.
Because one vcpu cannot allocate two or more pcpu at once.Right, but shouldn't Xen hypervisor be capable of migrating the VCPU among the available PCPUs on a multiprocessor system, like in this case? And criteria should be the load on the PCPU or the idle PCPUs. yes/no?
Am i missing something here?
Thanks
~psrThanks
Quoted 42 lines
Atsushi SAKAI
Quoted 3 lines · Harry Smith
hi all,
I am using xen3.0.3 on dual core hyperthreaded processor (in all 4
cores).
Quoted 3 lines
There are 2 VMs vm1,vm2 among which vm1 has a webserver running on it.
While testing the performance of webserver, when I introduce some load
on
Quoted 1 line
vm2 which involves some computations the webserver performance goes
down.
Quoted 4 lines
This happened even in the case where CPU usage by both of vm1,vm2 is restricted to 100% each.
Is it expected behavior ? if yes then how does one can control addition
of
Quoted 2 lines
new virtual machines as adding every new VM will result in lowering performance of other VMs. Through scheduling parameters we can just
specify
Quoted 1 line
amount of CPU to be used in relative sense (weight) & upper limit (cap).
But
Quoted 3 lines
how to tackle this point.
I am new in this area & wanna set up a lab using virtualization, so want
to
Quoted 6 lines
find solution for this.
thanks,
Harrywe always have a choice...
_______________________________________________
Xen-devel mailing list [email protected]
http://lists.xensource.com/xen-develSignature · 4 lines
--- pradeep singh rautela "Genius is 1% inspiration, and 99% perspiration" - not me :)
Quoted 4 lines · Atsushi SAKAI
One vcpu can use one pcpu at one time.
It means 100% is maxium for one vcpu domain.
If you want to use cpu resources, you should set more vcpu.
Ok, this explains a lot of things.
As i understand this , more VCPUs means more freedom to hypervisor to migrate them among physical CPUs, depending on the free PCPUs available.
In general
domU1
/ | \
vcpu1 vcpu2 vcpu3
pcpu1 pcpu2 pcpu3 pcpu4 pcpu5 pcpu6
I mean ,domU1 can run on any vcpu , right? now vcpu1, vcpu2, vcpu3 share a one to many reationship between pcpus[1....6]. That is a vcpu can run on any of the pcus available to the Xen hypervisor(unless i explicitly pin it to ).
Is my naive understanding of what you explained is correct?
Thank you
~psr
Quoted 89 lines
Thanks
Atsushi SAKAIQuoted 8 lines · pradeep singh rautela
Hi Atsushi,
Quoted 5 lines · Atsushi SAKAI
You should show detail configuration. Your information is too short.
Quoted 6 lines
Quoted 3 lines
Anyway I guess each domain has one vcpu.
If so, this is normal behavior.
Because one vcpu cannot allocate two or more pcpu at once.Right, but shouldn't Xen hypervisor be capable of migrating the VCPU
among
Quoted 4 lines
the available PCPUs on a multiprocessor system, like in this case? And criteria should be the load on the PCPU or the idle PCPUs. yes/no?
Quoted 15 lines
Am i missing something here?
Thanks
~psrThanks
Quoted 9 lines
Atsushi SAKAI
Quoted 3 lines · Harry Smith
hi all,
I am using xen3.0.3 on dual core hyperthreaded processor (in all 4
cores).
Quoted 1 line
There are 2 VMs vm1,vm2 among which vm1 has a webserver running on
it.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
While testing the performance of webserver, when I introduce some
load
Quoted 7 lines
Quoted 7 lines
on
Quoted 1 line
vm2 which involves some computations the webserver performance goes
down.
Quoted 4 lines
This happened even in the case where CPU usage by both of vm1,vm2 is restricted to 100% each.
Is it expected behavior ? if yes then how does one can control
addition
Quoted 5 lines
Quoted 5 lines
of
Quoted 2 lines
new virtual machines as adding every new VM will result in lowering performance of other VMs. Through scheduling parameters we can just
specify
Quoted 1 line
amount of CPU to be used in relative sense (weight) & upper limit
(cap).
Quoted 4 lines
Quoted 4 lines
But
Quoted 3 lines
how to tackle this point.
I am new in this area & wanna set up a lab using virtualization, so
want
Quoted 23 lines
Quoted 6 lines
to
Quoted 5 lines
find solution for this.
thanks,
HarryQuoted 9 lines
Quoted 1 line
we always have a choice...
_______________________________________________
Xen-devel mailing list [email protected]
http://lists.xensource.com/xen-devel--
---
pradeep singh rautela"Genius is 1% inspiration, and 99% perspiration" - not me :)
Signature · 4 lines
--- pradeep singh rautela "Genius is 1% inspiration, and 99% perspiration" - not me :)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi Atsushi & Pradeep,
thanks for replying back.
I have 4 VCPUs for each of VM. But the point I wanted to stress upon is - "This happened even in the case where CPU usage by both of vm1,vm2 is restricted to 100% each. "
I had pinned all 4 VCPUs of each VM to a single phys. CPU. & I have 4 phys. CPUs
means my vm1 was using cpu1, vm2 using cpu2 & domain-0 using cpu0,cpu3
Problem is when there is no load on vm2, webserver performance of vm1 is better. But when vm2 has some compute-intense load then vm1 webserver performance goes down.
Please note that CPU consumption of vm1 shown by xentop in both cases is 100%, still webserver performance goes down by around 15-20%. Even after trying to isolate two VMs, existence of load on one VM is affecting other.
so is it expected behavior ?
thanks,
Harry
Quoted 127 lines · pradeep singh rautela
Quoted 4 lines · Atsushi SAKAI
One vcpu can use one pcpu at one time.
It means 100% is maxium for one vcpu domain.
If you want to use cpu resources, you should set more vcpu.Ok, this explains a lot of things.
As i understand this , more VCPUs means more freedom to hypervisor to migrate them among physical CPUs, depending on the free PCPUs available.In general
domU1
/ | \
vcpu1 vcpu2 vcpu3pcpu1 pcpu2 pcpu3 pcpu4 pcpu5 pcpu6
I mean ,domU1 can run on any vcpu , right? now vcpu1, vcpu2, vcpu3 share a one to many reationship between pcpus[1....6]. That is a vcpu can run on any of the pcus available to the Xen hypervisor(unless i explicitly pin it to ).
Is my naive understanding of what you explained is correct?
Thank you
~psrQuoted 59 lines
Thanks
Atsushi SAKAIQuoted 8 lines · pradeep singh rautela
Hi Atsushi,
Quoted 5 lines · Atsushi SAKAI
You should show detail configuration. Your information is too short.
Quoted 6 lines
Quoted 3 lines
Anyway I guess each domain has one vcpu.
If so, this is normal behavior.
Because one vcpu cannot allocate two or more pcpu at once.Right, but shouldn't Xen hypervisor be capable of migrating the VCPU
among
Quoted 4 lines
the available PCPUs on a multiprocessor system, like in this case? And criteria should be the load on the PCPU or the idle PCPUs. yes/no?
Quoted 15 lines
Am i missing something here?
Thanks
~psrThanks
Quoted 9 lines
Atsushi SAKAI
Quoted 3 lines · Harry Smith
hi all,
I am using xen3.0.3 on dual core hyperthreaded processor (in all 4
cores).
Quoted 1 line
There are 2 VMs vm1,vm2 among which vm1 has a webserver running on
it.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
While testing the performance of webserver, when I introduce some
load
Quoted 2 lines
Quoted 2 lines
on
Quoted 1 line
vm2 which involves some computations the webserver performance
goes
Quoted 2 lines
Quoted 2 lines
down.
Quoted 1 line
This happened even in the case where CPU usage by both of vm1,vm2
is
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
restricted to 100% each.
Is it expected behavior ? if yes then how does one can control
addition
Quoted 2 lines
Quoted 2 lines
of
Quoted 1 line
new virtual machines as adding every new VM will result in
lowering
Quoted 1 line
Quoted 1 line
Quoted 1 line
performance of other VMs. Through scheduling parameters we can
just
Quoted 34 lines
Quoted 2 lines
Quoted 2 lines
specify
Quoted 1 line
amount of CPU to be used in relative sense (weight) & upper limit
(cap).
Quoted 4 lines
Quoted 4 lines
But
Quoted 3 lines
how to tackle this point.
I am new in this area & wanna set up a lab using virtualization,
so want
Quoted 23 lines
Quoted 6 lines
to
Quoted 5 lines
find solution for this.
thanks,
HarryQuoted 9 lines
Quoted 1 line
we always have a choice...
_______________________________________________
Xen-devel mailing list [email protected]
http://lists.xensource.com/xen-devel--
---
pradeep singh rautela"Genius is 1% inspiration, and 99% perspiration" - not me :)
Quoted 6 lines
--
---
pradeep singh rautela"Genius is 1% inspiration, and 99% perspiration" - not me :)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Hi,
You should check I/O behavior.
If I/O occured,
other domain(vm1, vm2) data is handled by dom0 as driver domain.
Thanks
Atsushi SAKAI
Quoted 159 lines · Harry Smith
Hi Atsushi & Pradeep,
thanks for replying back.
I have 4 VCPUs for each of VM. But the point I wanted to stress upon is - "This happened even in the case where CPU usage by both of vm1,vm2 is restricted to 100% each. "
I had pinned all 4 VCPUs of each VM to a single phys. CPU. & I have 4 phys. CPUs
means my vm1 was using cpu1, vm2 using cpu2 & domain-0 using cpu0,cpu3Problem is when there is no load on vm2, webserver performance of vm1 is better. But when vm2 has some compute-intense load then vm1 webserver performance goes down.
Please note that CPU consumption of vm1 shown by xentop in both cases is 100%, still webserver performance goes down by around 15-20%. Even after trying to isolate two VMs, existence of load on one VM is affecting other.so is it expected behavior ?
thanks,
HarryQuoted 133 lines · pradeep singh rautela
Quoted 4 lines · Atsushi SAKAI
One vcpu can use one pcpu at one time.
It means 100% is maxium for one vcpu domain.
If you want to use cpu resources, you should set more vcpu.Ok, this explains a lot of things.
As i understand this , more VCPUs means more freedom to hypervisor to migrate them among physical CPUs, depending on the free PCPUs available.In general
domU1
/ | \
vcpu1 vcpu2 vcpu3pcpu1 pcpu2 pcpu3 pcpu4 pcpu5 pcpu6
I mean ,domU1 can run on any vcpu , right? now vcpu1, vcpu2, vcpu3 share a one to many reationship between pcpus[1....6]. That is a vcpu can run on any of the pcus available to the Xen hypervisor(unless i explicitly pin it to ).
Is my naive understanding of what you explained is correct?
Thank you
~psrQuoted 59 lines
Thanks
Atsushi SAKAIQuoted 8 lines · pradeep singh rautela
Hi Atsushi,
Quoted 5 lines · Atsushi SAKAI
You should show detail configuration. Your information is too short.
Quoted 6 lines
Quoted 3 lines
Anyway I guess each domain has one vcpu.
If so, this is normal behavior.
Because one vcpu cannot allocate two or more pcpu at once.Right, but shouldn't Xen hypervisor be capable of migrating the VCPU
among
Quoted 4 lines
the available PCPUs on a multiprocessor system, like in this case? And criteria should be the load on the PCPU or the idle PCPUs. yes/no?
Quoted 15 lines
Am i missing something here?
Thanks
~psrThanks
Quoted 9 lines
Atsushi SAKAI
Quoted 3 lines · Harry Smith
hi all,
I am using xen3.0.3 on dual core hyperthreaded processor (in all 4
cores).
Quoted 1 line
There are 2 VMs vm1,vm2 among which vm1 has a webserver running on
it.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
While testing the performance of webserver, when I introduce some
load
Quoted 2 lines
Quoted 2 lines
on
Quoted 1 line
vm2 which involves some computations the webserver performance
goes
Quoted 2 lines
Quoted 2 lines
down.
Quoted 1 line
This happened even in the case where CPU usage by both of vm1,vm2
is
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
restricted to 100% each.
Is it expected behavior ? if yes then how does one can control
addition
Quoted 2 lines
Quoted 2 lines
of
Quoted 1 line
new virtual machines as adding every new VM will result in
lowering
Quoted 1 line
Quoted 1 line
Quoted 1 line
performance of other VMs. Through scheduling parameters we can
just
Quoted 34 lines
Quoted 2 lines
Quoted 2 lines
specify
Quoted 1 line
amount of CPU to be used in relative sense (weight) & upper limit
(cap).
Quoted 4 lines
Quoted 4 lines
But
Quoted 3 lines
how to tackle this point.
I am new in this area & wanna set up a lab using virtualization,
so want
Quoted 23 lines
Quoted 6 lines
to
Quoted 5 lines
find solution for this.
thanks,
HarryQuoted 9 lines
Quoted 1 line
we always have a choice...
_______________________________________________
Xen-devel mailing list [email protected]
http://lists.xensource.com/xen-devel--
---
pradeep singh rautela"Genius is 1% inspiration, and 99% perspiration" - not me :)
--
---
pradeep singh rautela"Genius is 1% inspiration, and 99% perspiration" - not me :)
Hi,
that's true. But dom0 has 4 VCPUs mapped on 2 physical CPU. CPU usage -->
case1) when vm2 doesn't have any load
dom0 20-25% vm1 100% vm2 0%
case2) when vm2 has a compute-intense load
dom0 20-25% vm1 100% vm2 100%
So my question is that in this case there is 200% of CPU available to dom0, still it is using only 20-25%, but in case2 webserver throughput in vm1 goes down by 15-20%. Why this is so?
Why dom0 can't use more CPU to process vm1 & vm2 requests separately ? As we are trying to show that vm1, vm2 are two OS running independetly, why they affect each other's performance ?
thanks,
Harry
Quoted 146 lines · Atsushi SAKAI
Hi,
You should check I/O behavior.
If I/O occured,
otherdomain(vm1, vm2)data is handled by dom0 as driver domain.Thanks
Atsushi SAKAIQuoted 4 lines · Harry Smith
Hi Atsushi & Pradeep,
thanks for replying back.
I have 4 VCPUs for each of VM. But the point I wanted to stress upon is-
Quoted 3 lines
"This happened even in the case where CPU usage by both of vm1,vm2 is restricted to 100% each. "
I had pinned all 4 VCPUs of each VM to a single phys. CPU. & I have 4phys.
Quoted 11 lines
CPUs
means my vm1 was using cpu1, vm2 using cpu2 & domain-0 using cpu0,cpu3Problem is when there is no load on vm2, webserver performance of vm1 is better. But when vm2 has some compute-intense load then vm1 webserver performance goes down.
Please note that CPU consumption of vm1 shown by xentop in both cases is 100%, still webserver performance goes down by around 15-20%. Even after trying to isolate two VMs, existence of load on one VM is affecting other.Quoted 21 lines
so is it expected behavior ?
thanks,
HarryQuoted 13 lines · pradeep singh rautela
Quoted 4 lines · Atsushi SAKAI
One vcpu can use one pcpu at one time.
It means 100% is maxium for one vcpu domain.
If you want to use cpu resources, you should set more vcpu.Ok, this explains a lot of things.
As i understand this , more VCPUs means more freedom to hypervisor to migrate them among physical CPUs, depending on the free PCPUsavailable.
Quoted 10 lines
Quoted 10 lines
In general
domU1
/ | \
vcpu1 vcpu2 vcpu3pcpu1 pcpu2 pcpu3 pcpu4 pcpu5 pcpu6
I mean ,domU1 can run on any vcpu , right? now vcpu1, vcpu2, vcpu3
share a
Quoted 1 line
Quoted 1 line
one to many reationship between pcpus[1....6]. That is a vcpu can run
on any
Quoted 1 line
Quoted 1 line
of the pcus available to the Xen hypervisor(unless i explicitly pin it
to ).
Quoted 21 lines
Quoted 21 lines
Is my naive understanding of what you explained is correct?
Thank you
~psrQuoted 14 lines
Thanks
Atsushi SAKAIQuoted 8 lines · pradeep singh rautela
Hi Atsushi,
Quoted 5 lines · Atsushi SAKAI
You should show detail configuration. Your information is too short.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Anyway I guess each domain has one vcpu.
If so, this is normal behavior.
Because one vcpu cannot allocate two or more pcpu at once.Right, but shouldn't Xen hypervisor be capable of migrating the
VCPU
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
among
Quoted 1 line
the available PCPUs on a multiprocessor system, like in this case?
And
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
criteria should be the load on the PCPU or the idle PCPUs. yes/no?
Am i missing something here?
Thanks
~psrQuoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Thanks
Quoted 7 lines
Atsushi SAKAI
Quoted 3 lines · Harry Smith
hi all,
I am using xen3.0.3 on dual core hyperthreaded processor (in
all 4
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
cores).
Quoted 1 line
There are 2 VMs vm1,vm2 among which vm1 has a webserver
running on
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
it.
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
While testing the performance of webserver, when I introduce
some
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
load
Quoted 2 lines
Quoted 2 lines
on
Quoted 1 line
vm2 which involves some computations the webserver performance
goes
Quoted 2 lines
Quoted 2 lines
down.
Quoted 1 line
This happened even in the case where CPU usage by both of
vm1,vm2
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
is
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
restricted to 100% each.
Is it expected behavior ? if yes then how does one can
control
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
addition
Quoted 2 lines
Quoted 2 lines
of
Quoted 1 line
new virtual machines as adding every new VM will result in
lowering
Quoted 1 line
Quoted 1 line
Quoted 1 line
performance of other VMs. Through scheduling parameters we
can
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
just
Quoted 1 line
Quoted 1 line
specify
Quoted 46 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
amount of CPU to be used in relative sense (weight) & upper
limit
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
(cap).
Quoted 4 lines
Quoted 4 lines
But
Quoted 3 lines
how to tackle this point.
I am new in this area & wanna set up a lab using
virtualization,
Quoted 35 lines
Quoted 35 lines
Quoted 27 lines
so want
Quoted 23 lines
Quoted 6 lines
to
Quoted 5 lines
find solution for this.
thanks,
HarryQuoted 9 lines
Quoted 1 line
we always have a choice...
_______________________________________________
Xen-devel mailing list [email protected]
http://lists.xensource.com/xen-devel--
---
pradeep singh rautela"Genius is 1% inspiration, and 99% perspiration" - not me :)
--
---
pradeep singh rautela"Genius is 1% inspiration, and 99% perspiration" - not me :)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 16 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Harry Smith
Sent: 10 May 2007 09:24
To: Atsushi SAKAI
Cc: [email protected]
Subject: Re: [Xen-devel] fair schedulingHi,
that's true. But dom0 has 4 VCPUs mapped on 2 physical CPU. CPU usage -->
case1) when vm2 doesn't have any load
dom0 20-25% vm1 100% vm2 0%
Quoted 7 lines
case2) when vm2 has a compute-intense load
dom0 20-25% vm1 100% vm2 100%So my question is that in this case there is 200% of CPU available to dom0, still it is using only 20-25%, but in case2 webserver throughput in vm1 goes down by 15-20%. Why this is so?
Here are some architectural features that may affect things:
1. Are PCPU's "real" CPU cores or HyperThreaded "virtual" cores? If the latter, the answer to why performance goes down is obvious... [Sorry if you covered this in an earlier mail]
2. Is it possible that cache-contention is affecting the performance?
3. Is it possible that memory bandwidth is affecting the performance?
4. Is it possible that Page-table/TLB contention is affecting performance?
Quoted 3 lines
Why dom0 can't use more CPU to process vm1 & vm2 requests separately ? As we are trying to show that vm1, vm2 are two OS running independetly, why they affect each other's performance ?
Because there are still running on shared hardware, so one OS's behaviour will affect the overall hardware load, perhaps? I'm not saying it is so, but I suspect it's at least part of the answer.
--
Mats
Quoted 220 lines
thanks,
HarryOn 5/10/07, Atsushi SAKAI <[email protected]> wrote:
Hi,
You should check I/O behavior.
If I/O occured,
otherdomain(vm1, vm2)data is handled by dom0 as driver domain.Thanks
Atsushi SAKAI"Harry Smith" < [email protected]
<mailto:[email protected]> > wrote:> Hi Atsushi & Pradeep,
>
> thanks for replying back.
> I have 4 VCPUs for each of VM. But the point I
wanted to stress upon is -
> "This happened even in the case where CPU usage by
both of vm1,vm2 is
> restricted to 100% each. "
> I had pinned all 4 VCPUs of each VM to a single phys.
CPU. & I have 4 phys.
> CPUs
> means my vm1 was using cpu1, vm2 using cpu2 &
domain-0 using cpu0,cpu3> > Problem is when there is no load on vm2, webserverperformance of vm1 is
> better. But when vm2 has some compute-intense load
then vm1 webserver
> performance goes down.
> Please note that CPU consumption of vm1 shown by
xentop in both cases is
> 100%, still webserver performance goes down by around 15-20%. > Even after trying to isolate two VMs, existence of
load on one VM is> affecting other. > > so is it expected behavior ? > > thanks, > Harry > > > > On 5/10/07, pradeep singh rautela <[email protected]> wrote: > > > > > > > > On 5/10/07, Atsushi SAKAI < [email protected]> wrote: > > > > > > One vcpu can use one pcpu at one time. > > > It means 100% is maxium for one vcpu domain. > > > If you want to use cpu resources, you should set more vcpu. > > > > > > Ok, this explains a lot of things. > > As i understand this , more VCPUs means more freedom to hypervisor to > > migrate them among physical CPUs, depending on the free PCPUs available. > > > > In general > > > > domU1 > > / | \ > > vcpu1 vcpu2 vcpu3 > > > > pcpu1 pcpu2 pcpu3 pcpu4 pcpu5 pcpu6 > > > > I mean ,domU1 can run on any vcpu , right? nowvcpu1, vcpu2, vcpu3 share a
> > one to many reationship between pcpus[1....6]. That
is a vcpu can run on any
> > of the pcus available to the Xen hypervisor(unless
i explicitly pin it to ).> > > > > > Is my naive understanding of what you explained is correct? > > > > Thank you > > ~psr > > > > > Thanks > > > Atsushi SAKAI > > > > > > > > > "pradeep singh rautela" <[email protected]> wrote: > > > > > > > Hi Atsushi, > > > > > > > > On 5/10/07, Atsushi SAKAI <[email protected]> wrote:
> > > > >
> > > > >
> > > > > You should show detail configuration. > > > > > Your information is too short.
> > > > >
> > > > > Anyway I guess each domain has one vcpu. > > > > > If so, this is normal behavior.
> > > > > Because one vcpu cannot allocate two or more
pcpu at once.> > > > > > > > > > > > Right, but shouldn't Xen hypervisor be capable of migrating the VCPU > > > among > > > > the available PCPUs on a multiprocessor system, like in this case? And > > > > criteria should be the load on the PCPU or the idle PCPUs. > > > > yes/no? > > > > > > > > Am i missing something here? > > > > > > > > Thanks > > > > ~psr > > > > > > > > Thanks > > > > > Atsushi SAKAI > > > > > > > > > > "Harry Smith" < [email protected] <mailto:[email protected]> > wrote: > > > > > > > > > > > hi all, > > > > > > > > > > > > I am using xen3.0.3 on dual core hyperthreaded processor (in all 4 > > > > > cores). > > > > > > There are 2 VMs vm1,vm2 among which vm1 has a webserver running on > > > it. > > > > > > > > > > > > While testing the performance of webserver, when I introduce some > > > load > > > > > on > > > > > > vm2 which involves some computations the webserver performance > > > goes > > > > > down. > > > > > > This happened even in the case where CPU usage by both of vm1,vm2 > > > is > > > > > > restricted to 100% each. > > > > > > > > > > > > Is it expected behavior ? if yes then howdoes one can control
> > > addition
> > > > > of
> > > > > > new virtual machines as adding every new VM
will result in
> > > lowering
> > > > > > performance of other VMs. Through
scheduling parameters we can> > > just > > > > > specify > > > > > > amount of CPU to be used in relative sense (weight) & upper limit > > > (cap). > > > > > But > > > > > > how to tackle this point. > > > > > > > > > > > > I am new in this area & wanna set up a lab using virtualization, > > > so want > > > > > to > > > > > > find solution for this. > > > > > > > > > > > > thanks, > > > > > > Harry > > > > > > > > > > > > we always have a choice... > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > Xen-devel mailing list > > > > > [email protected] > > > > > http://lists.xensource.com/xen-devel > > > > > > > > > > > > > > > > > > > > > -- > > > > --- > > > > pradeep singh rautela > > > > > > > > "Genius is 1% inspiration, and 99% perspiration" - not me :) > > > > > > > > > > > > > > > -- > > --- > > pradeep singh rautela > > > > "Genius is 1% inspiration, and 99% perspiration" - not me :) > >
Quoted 25 lines · Mats
Quoted 17 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Harry Smith
Sent: 10 May 2007 09:24
To: Atsushi SAKAI
Cc: [email protected]
Subject: Re: [Xen-devel] fair schedulingHi,
that's true. But dom0 has 4 VCPUs mapped on 2 physical CPU. CPU usage -->
case1) when vm2 doesn't have any load
dom0 20-25% vm1 100% vm2 0%Quoted 7 lines
case2) when vm2 has a compute-intense load
dom0 20-25% vm1 100% vm2 100%So my question is that in this case there is 200% of CPU available to dom0, still it is using only 20-25%, but in case2 webserver throughput in vm1 goes down by 15-20%. Why this is so?
Quoted 5 lines
Here are some architectural features that may affect things:
1. Are PCPU's "real" CPU cores or HyperThreaded "virtual" cores? If the latter, the answer to why performance goes down is obvious... [Sorry if you covered this in an earlier mail]
thanks Mats,
yeah, I have mentioned that, but I am quite curious about knowing how this affects the performance.
So bigger issue comes in my mind is that if I want to manage some dynamic workload with such hyperthreaded dual core CPUs, then how should I estimate resource usage? Is there any tool which can take my high-level QoS requirements, process them and come up with some scheduling/ workload management scheme such that resource utilization is maximized. Not only resource utilization but throughput should be maximized because in this case utilization was same in both cases, but throughput affected largely.
With every increase in number of virtual machine, performance of existing VMs will degrade. Then question is how does Virtualization helps in maximizing resource utilization & giving predictable throughput to applications running inside VMs?
2. Is it possible that cache-contention is affecting the performance?
Quoted 11 lines
3. Is it possible that memory bandwidth is affecting the performance?
4. Is it possible that Page-table/TLB contention is affecting performance?
Quoted 3 lines
Why dom0 can't use more CPU to process vm1 & vm2 requests separately ? As we are trying to show that vm1, vm2 are two OS running independetly, why they affect each other's performance ?
Quoted 229 lines
Because there are still running on shared hardware, so one OS's behaviour will affect the overall hardware load, perhaps? I'm not saying it is so, but I suspect it's at least part of the answer.
--
MatsQuoted 220 lines
thanks,
HarryOn 5/10/07, Atsushi SAKAI <[email protected]> wrote:
Hi,
You should check I/O behavior.
If I/O occured,
otherdomain(vm1, vm2)data is handled by dom0 as driver domain.Thanks
Atsushi SAKAI"Harry Smith" < [email protected]
<mailto:[email protected]> > wrote:> Hi Atsushi & Pradeep,
>
> thanks for replying back.
> I have 4 VCPUs for each of VM. But the point I
wanted to stress upon is -
> "This happened even in the case where CPU usage by
both of vm1,vm2 is
> restricted to 100% each. "
> I had pinned all 4 VCPUs of each VM to a single phys.
CPU. & I have 4 phys.
> CPUs
> means my vm1 was using cpu1, vm2 using cpu2 &
domain-0 using cpu0,cpu3
>
> Problem is when there is no load on vm2, webserver
performance of vm1 is
> better. But when vm2 has some compute-intense load
then vm1 webserver
> performance goes down.
> Please note that CPU consumption of vm1 shown by
xentop in both cases is
> 100%, still webserver performance goes down by around 15-20%. > Even after trying to isolate two VMs, existence of
load on one VM is> affecting other. > > so is it expected behavior ? > > thanks, > Harry > > > > On 5/10/07, pradeep singh rautela <[email protected]> wrote: > > > > > > > > On 5/10/07, Atsushi SAKAI < [email protected]> wrote: > > > > > > One vcpu can use one pcpu at one time. > > > It means 100% is maxium for one vcpu domain. > > > If you want to use cpu resources, you should setmore vcpu.
> >
> >
> > Ok, this explains a lot of things.
> > As i understand this , more VCPUs means more
freedom to hypervisor to
> > migrate them among physical CPUs, depending on the
free PCPUs available.
> >
> > In general
> >
> > domU1
> > / | \
> > vcpu1 vcpu2 vcpu3
> >
> > pcpu1 pcpu2 pcpu3 pcpu4 pcpu5 pcpu6
> >
> > I mean ,domU1 can run on any vcpu , right? now
vcpu1, vcpu2, vcpu3 share a
> > one to many reationship between pcpus[1....6]. That
is a vcpu can run on any
> > of the pcus available to the Xen hypervisor(unless
i explicitly pin it to ).> > > > > > Is my naive understanding of what you explained is correct? > > > > Thank you > > ~psr > > > > > Thanks > > > Atsushi SAKAI > > > > > > > > > "pradeep singh rautela" <[email protected]> wrote: > > > > > > > Hi Atsushi, > > > > > > > > On 5/10/07, Atsushi SAKAI <[email protected]> wrote:
> > > > >
> > > > >
> > > > > You should show detail configuration. > > > > > Your information is too short.
> > > > >
> > > > > Anyway I guess each domain has one vcpu. > > > > > If so, this is normal behavior.
> > > > > Because one vcpu cannot allocate two or more
pcpu at once.> > > > > > > > > > > > Right, but shouldn't Xen hypervisor be capableof migrating the VCPU
> > > among
> > > > the available PCPUs on a multiprocessor system,
like in this case? And
> > > > criteria should be the load on the PCPU or the
idle PCPUs.> > > > yes/no? > > > > > > > > Am i missing something here? > > > > > > > > Thanks > > > > ~psr > > > > > > > > Thanks > > > > > Atsushi SAKAI > > > > > > > > > > "Harry Smith" < [email protected] <mailto:[email protected]> > wrote: > > > > > > > > > > > hi all, > > > > > > > > > > > > I am using xen3.0.3 on dual corehyperthreaded processor (in all 4
> > > > > cores).
> > > > > > There are 2 VMs vm1,vm2 among which vm1 has
a webserver running on> > > it. > > > > > > > > > > > > While testing the performance of webserver, when I introduce some > > > load > > > > > on > > > > > > vm2 which involves some computations the webserver performance > > > goes > > > > > down. > > > > > > This happened even in the case where CPU usage by both of vm1,vm2 > > > is > > > > > > restricted to 100% each. > > > > > > > > > > > > Is it expected behavior ? if yes then howdoes one can control
> > > addition
> > > > > of
> > > > > > new virtual machines as adding every new VM
will result in
> > > lowering
> > > > > > performance of other VMs. Through
scheduling parameters we can> > > just > > > > > specify > > > > > > amount of CPU to be used in relative sense (weight) & upper limit > > > (cap). > > > > > But > > > > > > how to tackle this point. > > > > > > > > > > > > I am new in this area & wanna set up a lab using virtualization, > > > so want > > > > > to > > > > > > find solution for this. > > > > > > > > > > > > thanks, > > > > > > Harry > > > > > > > > > > > > we always have a choice... > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > Xen-devel mailing list > > > > > [email protected] > > > > > http://lists.xensource.com/xen-devel > > > > > > > > > > > > > > > > > > > > > -- > > > > --- > > > > pradeep singh rautela > > > > > > > > "Genius is 1% inspiration, and 99% perspiration" - not me :) > > > > > > > > > > > > > > > -- > > --- > > pradeep singh rautela > > > > "Genius is 1% inspiration, and 99% perspiration" - not me :) > >
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 48 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Harry Smith
Sent: 10 May 2007 12:31
To: Petersson, Mats
Cc: Atsushi SAKAI; [email protected]
Subject: Re: [Xen-devel] fair schedulingOn 5/10/07, Petersson, Mats <[email protected]> wrote:
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected] ] On Behalf Of > Harry Smith
> Sent: 10 May 2007 09:24
> To: Atsushi SAKAI
> Cc: [email protected]
> Subject: Re: [Xen-devel] fair scheduling
>
> Hi,
>
> that's true. But dom0 has 4 VCPUs mapped on 2 physical CPU. > CPU usage -->
> case1) when vm2 doesn't have any load
> dom0 20-25% vm1 100% vm2 0%
>
> case2) when vm2 has a compute-intense load
> dom0 20-25% vm1 100% vm2 100%
>
> So my question is that in this case there is 200% of CPU > available to dom0, still it is using only 20-25%, but in > case2 webserver throughput in vm1 goes down by 15-20%. Why > this is so?Here are some architectural features that may affect things:
1. Are PCPU's "real" CPU cores or HyperThreaded
"virtual" cores? If the
latter, the answer to why performance goes down is
obvious... [Sorry if
you covered this in an earlier mail]
Quoted 12 lines
thanks Mats,
yeah, I have mentioned that, but I am quite curious about knowing how this affects the performance.
So bigger issue comes in my mind is that if I want to manage some dynamic workload with such hyperthreaded dual core CPUs, then how should I estimate resource usage? Is there any tool which can take my high-level QoS requirements, process them and come up with some scheduling/ workload management scheme such that resource utilization is maximized. Not only resource utilization but throughput should be maximized because in this case utilization was same in both cases, but throughput affected largely.
Ok, let's start with one important factor here: CPU-load and actual performance are two different things. CPU-load isn't easy to measure (on any reasonably modern processor at least), because the processor, applicaton and OS interactions are very complex. The only thing we can reasonably accurately measure is CPU idle-time. So when you see 100% CPU-load, it actually means that it's spending 0% of the time in idle. How it uses that time "not in idle" is not necessarily the same when you put the processor in different circumstances, e.g. the second core on the same socket being more or less used, memory or I/O operations being more or less congested, etc, etc.
One of the real problems here is cache-utilization (and collisions in the cache). TLB collisions/pressure can also cause similar increases in latency for individual instructions - so when an instruction when there's nothing else to run takes (on average) 4 clock-cycles, when there's a competing process[1] running on the second core, the instruction takes 7 cycles, because the processor had to reload the cache and/or TLB every.
Another factor is simply that the increased load on the memory bus, where the first and second processor(core) competes for a shared resource. If there is only one process running, then there is less congestion on the "road" to the processor, whilst if there is two processes both using the memory bus intensely, there will be heavy congestion (not helped much by memory devices being more likely to need full addressing, rather than "within page"[2] addressing, which increases the memory access time noticably for each of those accesses.
I'm not aware of a specific tool that does load balancing and such automagically. I don't really know how to solve the problem (other than the obvious suggestion of "underestimate what the processor can do at full load"), I'm only trying to explain that it's not just a case of adjusting the scheduler. The scheduler (whether we talk of the current or some new fancy one) will not be able to determine how well or bad a particular domain will put pressure on the memory bus for example.
And on the account of your specific processor model: you have a dual-core, dual hyperthread processor. This essentially means that most of the CPU resources when running two threads on the the same physical core are shared. This in turn means that Core0, HT(0,1) will be affected by each other (i.e. increase in load on HT0 will affect HT1 and vice versa. Core1, HT(0,1) will affect each other.
All four hyperthreads share the same IO and memory bus, so if you have some load on the memory bus from the first core, the second core will be affected by this.
Quoted 5 lines
With every increase in number of virtual machine, performance of existing VMs will degrade. Then question is how does Virtualization helps in maximizing resource utilization & giving predictable throughput to applications running inside VMs?
It helps in cases where you have, say, three different servers, that each have a longish peak CPU-load of 15%, and you combine all three into one physical machine. But you will use more than 3 x 15% CPU-load to achieve the same functionality, because the management of the virtual machines will take some effort from the CPU.
If you try to squeeze three 100% loads from single CPU servers into a three virtual machines on a 4-CPU server, then you may not get the same level of performance - but it does depend A LOT on what the exactly what the two guests are doing.
[1] I use the word process here quite loosely. It could be another thread of the same application just as much as another virtual machine.
[2] Memories have a few small buffer, called "pages", which contain a (copy of) small amount of memory content. Each time a memory location not covered by a "currently open" page, the memory controller must issue a "full address", which means two sets of address cycles to the memory chips, rather than a single "address within page".
--
Mats
Quoted 262 lines
2. Is it possible that cache-contention is affecting
the performance?3. Is it possible that memory bandwidth is affecting
the performance?4. Is it possible that Page-table/TLB contention is affecting performance?
> Why dom0 can't use more CPU to process vm1 & vm2 requests > separately ? As we are trying to show that vm1, vm2 are two > OS running independetly, why they affect each other's
performance ?Because there are still running on shared hardware, so one OS's behaviour will affect the overall hardware load,
perhaps? I'm not sayingit is so, but I suspect it's at least part of the answer. -- Mats > > thanks, > Harry > > > > > On 5/10/07, Atsushi SAKAI <[email protected]> wrote: > > Hi, > > You should check I/O behavior. > > If I/O occured, > other domain(vm1, vm2) data is handled by dom0 as driver domain. > > Thanks > Atsushi SAKAI > > > "Harry Smith" < [email protected]<mailto:[email protected]>
> <mailto:[email protected]> > wrote:
>
> > Hi Atsushi & Pradeep,
> >
> > thanks for replying back.
> > I have 4 VCPUs for each of VM. But the point I
> wanted to stress upon is -
> > "This happened even in the case where CPU usage by
> both of vm1,vm2 is
> > restricted to 100% each. "
> > I had pinned all 4 VCPUs of each VM to a single phys.
> CPU. & I have 4 phys.
> > CPUs
> > means my vm1 was using cpu1, vm2 using cpu2 &
> domain-0 using cpu0,cpu3
> >
> > Problem is when there is no load on vm2, webserver
> performance of vm1 is
> > better. But when vm2 has some compute-intense load
> then vm1 webserver
> > performance goes down.
> > Please note that CPU consumption of vm1 shown by
> xentop in both cases is
> > 100%, still webserver performance goes down
by around 15-20%.
> > Even after trying to isolate two VMs, existence of
> load on one VM is
> > affecting other.
> >
> > so is it expected behavior ?
> >
> > thanks,
> > Harry
> >
> >
> >
> > On 5/10/07, pradeep singh rautela
<[email protected]> wrote:> > > > > > > > > > > > On 5/10/07, Atsushi SAKAI < [email protected]> wrote: > > > > > > > > One vcpu can use one pcpu at one time. > > > > It means 100% is maxium for one vcpu domain. > > > > If you want to use cpu resources, you should set> more vcpu.
> > >
> > >
> > > Ok, this explains a lot of things.
> > > As i understand this , more VCPUs means more
> freedom to hypervisor to
> > > migrate them among physical CPUs, depending on the
> free PCPUs available.
> > >
> > > In general
> > >
> > > domU1
> > > / | \
> > > vcpu1 vcpu2 vcpu3
> > >
> > > pcpu1 pcpu2 pcpu3 pcpu4 pcpu5 pcpu6
> > >
> > > I mean ,domU1 can run on any vcpu , right? now
> vcpu1, vcpu2, vcpu3 share a
> > > one to many reationship between pcpus[1....6]. That
> is a vcpu can run on any
> > > of the pcus available to the Xen hypervisor(unless
> i explicitly pin it to ).
> > >
> > >
> > > Is my naive understanding of what you
explained is correct?> > > > > > Thank you > > > ~psr > > > > > > > Thanks > > > > Atsushi SAKAI > > > > > > > > > > > > "pradeep singh rautela" <[email protected]> wrote: > > > > > > > > > Hi Atsushi, > > > > > > > > > > On 5/10/07, Atsushi SAKAI <> [email protected]> wrote:
> > > > > >
> > > > > >
> > > > > > You should show detail configuration.
> > > > > > Your information is too short.
> > > > > >
> > > > > > Anyway I guess each domain has one vcpu.
> > > > > > If so, this is normal behavior.
> > > > > > Because one vcpu cannot allocate two or more
> pcpu at once.
> > > > >
> > > > >
> > > > > Right, but shouldn't Xen hypervisor be capable
> of migrating the VCPU
> > > > among
> > > > > the available PCPUs on a multiprocessor system,
> like in this case? And
> > > > > criteria should be the load on the PCPU or the
> idle PCPUs.
> > > > > yes/no?
> > > > >
> > > > > Am i missing something here?
> > > > >
> > > > > Thanks
> > > > > ~psr
> > > > >
> > > > > Thanks
> > > > > > Atsushi SAKAI
> > > > > >
> > > > > > "Harry Smith" <
[email protected] <mailto:[email protected]>
> <mailto:[email protected]> > wrote:
> > > > > >
> > > > > > > hi all,
> > > > > > >
> > > > > > > I am using xen3.0.3 on dual core
> hyperthreaded processor (in all 4
> > > > > > cores).
> > > > > > > There are 2 VMs vm1,vm2 among which vm1 has
> a webserver running on
> > > > it.
> > > > > > >
> > > > > > > While testing the performance of webserver,
> when I introduce some
> > > > load
> > > > > > on
> > > > > > > vm2 which involves some computations the
> webserver performance
> > > > goes
> > > > > > down.
> > > > > > > This happened even in the case where CPU
> usage by both of vm1,vm2
> > > > is
> > > > > > > restricted to 100% each.
> > > > > > >
> > > > > > > Is it expected behavior ? if yes then how
> does one can control
> > > > addition
> > > > > > of
> > > > > > > new virtual machines as adding every new VM
> will result in
> > > > lowering
> > > > > > > performance of other VMs. Through
> scheduling parameters we can
> > > > just
> > > > > > specify
> > > > > > > amount of CPU to be used in relative sense
> (weight) & upper limit
> > > > (cap).
> > > > > > But
> > > > > > > how to tackle this point.
> > > > > > >
> > > > > > > I am new in this area & wanna set up a lab
> using virtualization,
> > > > so want
> > > > > > to
> > > > > > > find solution for this.
> > > > > > >
> > > > > > > thanks,
> > > > > > > Harry
> > > > > > >
> > > > > > > we always have a choice...
> > > > > >
> > > > > >
> > > > > >
> > > > > >
_______________________________________________> > > > > > Xen-devel mailing list > > > > > > [email protected] > > > > > > http://lists.xensource.com/xen-devel > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > --- > > > > > pradeep singh rautela > > > > > > > > > > "Genius is 1% inspiration, and 99% > perspiration" - not me :) > > > > > > > > > > > > > > > > > > > > > -- > > > --- > > > pradeep singh rautela > > > > > > "Genius is 1% inspiration, and 99% perspiration" - > not me :) > > > > > > > > >