Skip to contentSkip to conversation

xm speed

DISCUSSION James Harper 2 participants 2 messages Sep 10, 2004 – Sep 11, 2004

lore
Share & tools
lore
#0 lore raw

To do a very simple test I created a little script that does 'time xm list' 6 times. Here's the output:

Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----    198.7
gaia2              1        0    0  -b---     59.8    9601
real    0m9.403s
user    0m1.030s
sys     0m0.080s
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----    200.0
gaia2              1        0    0  -b---     59.8    9601
real    0m9.997s
user    0m0.980s
sys     0m0.130s
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----    201.4
gaia2              1        0    0  -b---     59.8    9601
real    0m9.999s
user    0m0.990s
sys     0m0.140s
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----    202.7
gaia2              1        0    0  -b---     59.8    9601
real    0m9.999s
user    0m1.040s
sys     0m0.090s
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----    204.0
gaia2              1        0    0  -b---     59.8    9601
real    0m9.998s
user    0m0.990s
sys     0m0.120s
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----    205.3
gaia2              1        0    0  -b---     59.8    9601
real    0m9.998s
user    0m1.040s
sys     0m0.100s

It's closer to 10 seconds as you can see. After I type 'xm list', it takes about 5 seconds for the heading to appear, and then roughly 2 seconds per domain. Load under Domain-0 is almost 0.

Another Proliant 1600 I have that is running xen has 2x550Mhz CPU's and runs much better... roughly 3 seconds from typing 'xm list' to getting output, and all the output rolls past pretty quick (4 domains on that one).

The domain gaia2 is actually destroyed in the output above, it just doesn't know it. Testing iscsi and it went into a spin logging bulk stuff to the console. I find killing a domain in that state doesn't work properly and I have to reboot Dom0 to get xend functioning properly again.

James

Quoted 8 lines

-----Original Message-----
From: Ian Pratt [mailto:[email protected]]
Sent: Friday, 10 September 2004 22:55
To: James Harper
Cc: [email protected]; [email protected]
Subject: Re: [Xen-devel] xm speed

Quoted 1 line

I'm waiting about 2 seconds from typing 'xm list' and for something

to

Quoted 2 lines
Quoted 2 lines

appear. Is this normal? The machine is fairly old, it's a Compaq Proliant 1600 with a single CPU running at 350Mhz. It's hardware

RAID

Quoted 14 lines
Quoted 1 line

but that is pretty slow too.

If you look at the output of 'xm list' does the CPU time consumed by dom0 go up by 2s every time?

Is dom0 competing for CPU0 with a bunch of other busy domains?

On our 2.4GHz Xeon machines, I've noticed that running 'xm list' causes the amount of CPU consumed by dom0 to go up by around 100ms, which is quite a staggering amount given what it's actually doing. Python isn't the most efficient of languages, and we are doing a HTTP RPC between xm and xend, but this level of resource usage has always rather surprised me.

Quoted 9 lines

I guess we could use one of the python profiling tools to find out where the overhead is. Since this is all 'control plane' we haven't made any effort to make it efficient and have concentrated on flexibility. It it starts becoming a bottleneck it may be necessary to selectively recode bits in C.

Ian

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php

#1 lore raw
Quoted 2 lines

To do a very simple test I created a little script that does 'time xm list' 6 times. Here's the output:

So, real time is ~10s, total CPU consumed by dom 0 is ~1.4s. (That's terrible!)

Is it like this even when you haven't got a domain in a bad state?

Of the 1.4s of CPU, consumed, 1.2s seems to being accounted to 'xm', so we can assume that 'xend' is consuming the other 0.2. What's odd about this is that _xend_ is the guy that's actually doing most of the work -- xm just does an RPC to it.

Anyhow, it might be more informative to figure out where the difference between real time and CPU time is coming from. Presumably xm/xend is blocking on IO. I wander if running an strace on xm and/or xend might be informative.

BTW: how are you accessing your root file system (local disk, NFS) etc?

Ian

-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php