public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: Avi Kivity <avi@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>, Stefan <kvm@pms.ifi.lmu.de>,
	kvm@vger.kernel.org
Subject: Re: 64 bit guest much faster ?
Date: Mon, 26 Oct 2009 13:42:12 +0300	[thread overview]
Message-ID: <4AE57D04.10408@msgid.tls.msk.ru> (raw)
In-Reply-To: <4AE575FD.6010801@redhat.com>

Avi Kivity wrote:
> On 10/26/2009 10:58 AM, Gerd Hoffmann wrote:
>> On 10/23/09 17:54, Stefan wrote:
>>>
>>> Hello,
>>>
>>> I have a simple question (sorry I'm a kvm beginner):
>>> Is it right that a 64bit guest (8 CPUs, 16GB) is
>>> much faster than a 32bit guest (8 CPUs, 16GB PAE).
>>                                           ^^^^
>> Yes.  With *that* much memory the 32bit guest struggles with address 
>> space limitations (32bit -> 4G), whereas the 64bit guest doesn't.
>>
>> With up to 1G you shouldn't see a noticable difference.  But the more 
>> highmem the 32bit guest uses the higher is the penalty.  Especially 
>> without ept/npt as every kmap() of a high page is a roundtrip to the 
>> hypervisor then.
> 
> Oh yes, without ept/npt the slowdown should indeed be significant with 
> this much memory.

How it is with 4Gb guest/mem without PAE (I mean, with CONFIG_HIGHMEM_4G=y)?
Or even 2Gb?  In case of npt or without.

Can we construct a sort of a table of expected slowdowns (not in numbers
but just in terms "significant", "minor" etc) of running <4Gb or >4Gb
(and <1Gb and >1Gb if that makes significant diffencece) 32bit guests
with and without npt and 64bit guests, please?  I guess it's quite
interesting to many users.

 From the above it looks like it's better to run 64bit kernel in the 32bit
guest in these situations too.

I haven't measured it, just because it never occured to me that there
MAY be any difference.  But I've only non-npt hardware here at the
moment.

Thanks!

/mjt

  reply	other threads:[~2009-10-26 10:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-23 15:54 64 bit guest much faster ? Stefan
2009-10-25  5:41 ` Avi Kivity
2009-10-26  8:58 ` Gerd Hoffmann
2009-10-26 10:12   ` Avi Kivity
2009-10-26 10:42     ` Michael Tokarev [this message]
2009-10-26 10:44       ` Avi Kivity

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=4AE57D04.10408@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=avi@redhat.com \
    --cc=kraxel@redhat.com \
    --cc=kvm@pms.ifi.lmu.de \
    --cc=kvm@vger.kernel.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