xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: sushrut shirole <shirole.sushrut@gmail.com>
Cc: Felipe Franciosi <felipe.franciosi@citrix.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: DomU vs Dom0 performance.
Date: Tue, 1 Oct 2013 10:24:57 -0400	[thread overview]
Message-ID: <20131001142457.GD5913@phenom.dumpdata.com> (raw)
In-Reply-To: <CAAS7wBpMQpwEBbQtD-80uyyX+ZT4r5idONVgM90ijhxYcApfMQ@mail.gmail.com>

On Tue, Oct 01, 2013 at 12:55:18PM +0000, sushrut shirole wrote:
> Please find my response inline.
> 
> Thank you,
> Sushrut.
> 
> On 1 October 2013 10:05, Felipe Franciosi <felipe.franciosi@citrix.com>wrote:
> 
> >  1) Can you paste your entire config file here?****
> >
> > This is just for clarification on the HVM bit.****
> >
> > Your “disk” config suggests you are using the PV protocol for storage
> > (blkback).
> >
> > kernel = "hvmloader"
> builder='hvm'
> memory = 4096
> name = "ArchHVM"
> vcpus=8
> disk = [ 'phy:/dev/sda5,hda,w',
> 'file:/root/dev/iso/archlinux.iso,hdc:cdrom,r' ]
> device_model = 'qemu-dm'
> boot="c"
> sdl=0
> xen_platform_pci=1
> opengl=0
> vnc=0
> vncpasswd=''
> nographic=1
> stdvga=0
> serial='pty'
> 
> 
> > 2) Also, can you run “uname -a" in both dom0 and domU and paste it here as
> > well?****
> >
> >      Based on the syscall latencies you presented, it sounds like one
> > domain may be 32bit and the other 64bit.****
> >
> > **
> >
> kernel information on dom0 is :
> Linux localhost 3.5.0-IDD #5 SMP PREEMPT Fri Sep 6 23:31:56 UTC 2013 x86_64
> GNU/Linux
> 
> on domU is :
> Linux domu 3.5.0-IDD-12913 #2 SMP PREEMPT Sun Dec 9 17:54:30 EST 2012
> x86_64 GNU/Linux
> 
> 3) You are doing this:****
> >
> > ** **
> >
> > > <snip>
> > > for i in `ls test_file.*`
> > > do
> > >    sudo dd if=./$i of=/dev/zero
> > > done
> > > </snip>
> >
> > My bad. I have changed it to /dev/null.
> 
> ****
> >
> > I don’t know what you intended with this, but you can’t output to
> > /dev/zero (you can read from /dev/zero, but you can only output to
> > /dev/null).****
> >
> > If your “img” is 5G and your guest has 4G of RAM, you will not
> > consistently buffer the entire image.****
> >
> > **
> >
> Even though I am using a 5G of img, read operations executed are of size 1G
> only. Also lm_benchmark doesn't involve any read/writes to this ".img",
> still the results I am getting are better on domU when measured with lm
> micro benchmarks.
> 
> > **
> >
> > You are then doing buffered IO (note that some of your requests are
> > completing in 10us). That can only happen if you are reading from memory
> > and not from disk.
> >
> Even though a single request is completing in 10us, total time required to
> complete all requests (5000000) is 17 & 13 seconds for dom0 and domU
> respectively.
> 
> (I forgot to mention that I have a SSD installed on this machine)
> 
> > **
> >
> > If you want to consistently compare the performance between two domains,
> > you should always bypass the VM’s cache with O_DIRECT.****
> >
> > **
> >
> But looking at results of lat_syscall and bw_mem microbenchmarks, it shows
> that syscalls are executed faster in domU and memory bandwidth is more in
> domU.

Yes. That is expected with HVM guests. Their syscall overhead and also memory
bandwith will be faster than PV guests (which is what dom0 is).

That is why PVH is such an intersting future direction - it is PV with HVM
containers to lower the syscall overhead and memory page table operations.


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2013-10-01 14:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-29 23:22 DomU vs Dom0 performance sushrut shirole
2013-09-30 14:36 ` Konrad Rzeszutek Wilk
2013-09-30 15:46   ` sushrut shirole
2013-10-01 10:05     ` Felipe Franciosi
2013-10-01 12:55       ` sushrut shirole
2013-10-01 14:24         ` Konrad Rzeszutek Wilk [this message]
2013-10-03 18:50           ` sushrut shirole
2013-10-04 13:24             ` Konrad Rzeszutek Wilk
2013-09-30 14:50 ` Stefano Stabellini
2013-09-30 15:45   ` sushrut shirole

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20131001142457.GD5913@phenom.dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=felipe.franciosi@citrix.com \
    --cc=shirole.sushrut@gmail.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).