qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: "He, Junyan" <junyan.he@intel.com>
Cc: Kevin Wolf <kwolf@redhat.com>, Max Reitz <mreitz@redhat.com>,
	Pankaj Gupta <pagupta@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	qemu block <qemu-block@nongnu.org>
Subject: Re: [Qemu-devel] [Qemu-block] Some question about savem/qcow2 incremental snapshot
Date: Fri, 8 Jun 2018 14:29:27 +0100	[thread overview]
Message-ID: <20180608132927.GC31164@stefanha-x1.localdomain> (raw)
In-Reply-To: <EC8A4E314CF1574AB62C80421BD983393409C805@SHSMSX104.ccr.corp.intel.com>

[-- Attachment #1: Type: text/plain, Size: 1429 bytes --]

On Fri, Jun 08, 2018 at 05:02:58AM +0000, He, Junyan wrote:
> I use the simple way to handle this,
> 1. Separate the nvdimm region from ram when do snapshot.
> 2. If the first time, we dump all the nvdimm data the same as ram, and enable dirty log trace
> for nvdimm kind region.
> 3. If not the first time, we find the previous snapshot point and add reference to its clusters
> which is used to store nvdimm data. And this time, we just save dirty page bitmap and dirty pages.
> Because the previous nvdimm data clusters is ref added, we do not need to worry about its deleting.
> 
> I encounter a lot of problems:
> 1. Migration and snapshot logic is mixed and need to separate them for nvdimm.
> 2. Cluster has its alignment. When do snapshot, we just save data to disk continuous. Because we
> need to add ref to cluster, we really need to consider the alignment. I just use a little trick way 
> to padding some data to alignment now, and I think it is not a good way.
> 3. Dirty log trace may have some performance problem.
> 
> In theory, this manner can be used to handle all kind of huge memory snapshot, we need to find the 
> balance between guest performance(Because of dirty log trace) and snapshot saving time.

If the snapshots are placed on the NVDIMM then save/load times should be
shorter.  I'm not sure how practical that is since this approach may be
too expensive for users.

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

      parent reply	other threads:[~2018-06-08 13:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-25  7:33 [Qemu-devel] Some question about savem/qcow2 incremental snapshot He Junyan
2018-05-08 14:41 ` Eric Blake
2018-05-08 15:03   ` [Qemu-devel] [Qemu-block] " Kevin Wolf
2018-05-09 10:16     ` Stefan Hajnoczi
2018-05-09 17:54       ` Max Reitz
2018-05-10  8:26         ` Stefan Hajnoczi
2018-05-11 17:25           ` Kevin Wolf
2018-05-14 13:48             ` Stefan Hajnoczi
2018-05-28  7:01               ` He, Junyan
2018-05-30 14:44               ` Stefan Hajnoczi
2018-05-30 16:07                 ` Kevin Wolf
2018-05-31 10:48                   ` Stefan Hajnoczi
2018-06-08  5:02                     ` He, Junyan
2018-06-08  7:59                       ` Pankaj Gupta
2018-06-08 15:58                         ` Junyan He
2018-06-08 16:38                           ` Pankaj Gupta
2018-06-08 16:49                             ` Pankaj Gupta
2018-06-08 13:29                       ` Stefan Hajnoczi [this message]

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=20180608132927.GC31164@stefanha-x1.localdomain \
    --to=stefanha@redhat.com \
    --cc=junyan.he@intel.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=pagupta@redhat.com \
    --cc=qemu-block@nongnu.org \
    --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).