qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Dennis <dennis@satanclaus.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Virtual memory question
Date: Mon, 9 Aug 2010 21:54:11 +0200	[thread overview]
Message-ID: <AANLkTim4PdnCiWF4s7cVK3G7w6yOUGTjbACPT91O-69u@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=Tt98SVJH29y9FYbnbHtfYKLRH7S-Ai4hbw1g_@mail.gmail.com>

On Mon, Aug 9, 2010 at 9:41 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Mon, Aug 9, 2010 at 7:49 PM, Dennis <dennis@satanclaus.com> wrote:
>> I have an application that takes up over 2 GB of memory but is
>> otherwise demanding virtually no other resources at all.
>> Running multiple instances of the application using physical memory
>> isn't an option. Would it be hard to change Qemu's
>> physical memory mapping to a file on disk ? (Not Qemu-KVM, just stock Qemu).
>
> It's not 100% clear what you are trying to do, but are you aware that
> guest "physical" memory can be swapped on the host?

I know, but the host machine would have to run out of memory before it swaps.
That's not very desirable ;-)

> Also, have you looked at Kernel Samepage Merging (KSM)?  KSM detects
> guest physical pages that contain the same contents and merge them
> into a single page, saving memory.  This is appropriate if you run
> multiple VMs based off the same disk image and expect they will be
> executing the same code.  For more info, see
> http://kernelnewbies.org/Linux_2_6_32#head-d3f32e41df508090810388a57efce73f52660ccb.

I havn't yet. One "problem" is I _have_ to run Qemu on FreeBSD. I
doubt it's possible.

  reply	other threads:[~2010-08-09 19:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-08 20:33 [Qemu-devel] Virtual memory question Dennis
2010-08-09  5:01 ` C K Kashyap
2010-08-09 18:49   ` Dennis
2010-08-09 19:41     ` Stefan Hajnoczi
2010-08-09 19:54       ` Dennis [this message]
2010-08-09  6:15 ` Mulyadi Santosa
2010-08-09  8:17   ` Stefan Hajnoczi
2010-08-09 16:46     ` Michael Roth
2010-08-09 18:49       ` Michael Roth

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=AANLkTim4PdnCiWF4s7cVK3G7w6yOUGTjbACPT91O-69u@mail.gmail.com \
    --to=dennis@satanclaus.com \
    --cc=qemu-devel@nongnu.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).