kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sasha Levin <levinsasha928@gmail.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: mingo@elte.hu, asias.hejun@gmail.com, gorcunov@gmail.com,
	prasadjoshi124@gmail.com, kvm@vger.kernel.org
Subject: Re: [PATCH] kvm tools: Add option to specify backing storage for RAM
Date: Thu, 21 Apr 2011 16:00:03 +0300	[thread overview]
Message-ID: <1303390803.3127.4.camel@stimpy> (raw)
In-Reply-To: <BANLkTikrUG0e2nXWU1Ytasm=eVf=FGyY1g@mail.gmail.com>

On Thu, 2011-04-21 at 15:48 +0300, Pekka Enberg wrote:
> On Thu, Apr 21, 2011 at 3:45 PM, Sasha Levin <levinsasha928@gmail.com> wrote:
> > Add --use-backing to allow for the usage of a temporary backing file for guest RAM.
> > A temporary file is created and aollocated under /tmp and is used to back the RAM memory which is mmaped for the guest.
> > There should be enough storage space under /tmp to use this option (at least the size of the guest RAM).
> >
> > Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
> 
> OK, but what is this useful for? Why would someone want to do this?

It's an alternative to creating more swap.
When using large RAM sizes for guests on hosts with limited physical
RAM/swap this option gives the user a way to use files instead of swap.

This can also be extended to use hugetlbfs.

-- 

Sasha.


  reply	other threads:[~2011-04-21 13:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-21 12:45 [PATCH] kvm tools: Add option to specify backing storage for RAM Sasha Levin
2011-04-21 12:48 ` Pekka Enberg
2011-04-21 13:00   ` Sasha Levin [this message]
2011-04-21 13:12     ` Pekka Enberg
2011-04-21 14:08       ` Sasha Levin
2011-04-21 14:12       ` 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=1303390803.3127.4.camel@stimpy \
    --to=levinsasha928@gmail.com \
    --cc=asias.hejun@gmail.com \
    --cc=gorcunov@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=penberg@kernel.org \
    --cc=prasadjoshi124@gmail.com \
    /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).