All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: xm speed
@ 2004-09-14  6:59 James Harper
  2004-09-20 14:03 ` Mike Wray
  0 siblings, 1 reply; 7+ messages in thread
From: James Harper @ 2004-09-14  6:59 UTC (permalink / raw)
  To: Ian Pratt; +Cc: xen-devel, mike.wray

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

I think so, although I've never actually timed it before.

> 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?

Root filesystem in dom0 is a local raid array, albeit a very slow one.
The disk appears to do a fair bit of chugging when I run it, although
I'm not normally near the box.

After a checkout and rebuild just now, it appears to be much faster!

Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----     81.8
gaia2              1      126    0  -b---     22.0    9601

real    0m2.254s
user    0m1.100s
sys     0m0.090s
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----     83.9
gaia2              1      126    0  -b---     22.1    9601

real    0m2.544s
user    0m1.110s
sys     0m0.100s
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----     86.5
gaia2              1      126    0  -b---     22.2    9601

real    0m2.465s
user    0m1.060s
sys     0m0.140s
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----     88.6
gaia2              1      126    0  -b---     22.3    9601

real    0m2.529s
user    0m1.060s
sys     0m0.150s
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----     91.1
gaia2              1      126    0  -b---     22.4    9601

real    0m2.371s
user    0m1.080s
sys     0m0.130s
Name              Id  Mem(MB)  CPU  State  Time(s)  Console
Domain-0           0      123    0  r----     93.3
gaia2              1      126    0  -b---     22.5    9601

real    0m2.326s
user    0m1.130s
sys     0m0.130s

2 seconds is still a bit slow considering what it is actually doing, but
better than 10.

James




-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: xm speed
@ 2004-09-10 13:23 James Harper
  2004-09-11  8:09 ` Ian Pratt
  0 siblings, 1 reply; 7+ messages in thread
From: James Harper @ 2004-09-10 13:23 UTC (permalink / raw)
  To: Ian Pratt; +Cc: xen-devel

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
 
> -----Original Message-----
> From: Ian Pratt [mailto:Ian.Pratt@cl.cam.ac.uk]
> Sent: Friday, 10 September 2004 22:55
> To: James Harper
> Cc: xen-devel@lists.sourceforge.net; Ian.Pratt@cl.cam.ac.uk
> Subject: Re: [Xen-devel] xm speed
> 
> > I'm waiting about 2 seconds from typing 'xm list' and for something
to
> > 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
> > 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.
> 
> 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

^ permalink raw reply	[flat|nested] 7+ messages in thread
* xm speed
@ 2004-09-10 12:33 James Harper
  2004-09-10 12:55 ` Ian Pratt
  0 siblings, 1 reply; 7+ messages in thread
From: James Harper @ 2004-09-10 12:33 UTC (permalink / raw)
  To: xen-devel

I'm waiting about 2 seconds from typing 'xm list' and for something to
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
but that is pretty slow too.

James


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-09-20 14:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-14  6:59 xm speed James Harper
2004-09-20 14:03 ` Mike Wray
  -- strict thread matches above, loose matches on Subject: below --
2004-09-10 13:23 James Harper
2004-09-11  8:09 ` Ian Pratt
2004-09-10 12:33 James Harper
2004-09-10 12:55 ` Ian Pratt
2004-09-10 15:43   ` Brian Wolfe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.