All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Gleb Natapov <gleb@redhat.com>
Cc: Orit Wasserman <owasserm@redhat.com>, Peter Lieven <pl@dlhnet.de>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] RFC migration of zero pages
Date: Fri, 01 Feb 2013 17:58:28 +0100	[thread overview]
Message-ID: <510BF434.1010308@redhat.com> (raw)
In-Reply-To: <20130131094809.GO15004@redhat.com>

Il 31/01/2013 10:48, Gleb Natapov ha scritto:
>> Also I notice that the bottle neck in migrating unmapped pages is the detection of those pages
>> because we map the pages in order to check them, for a large guest this is very expensive as mapping a page
>> results in a page fault in the host.
>> So what will be very helpful is actually locating those pages without mapping them
>> which looks very complicated.
>>
> What is wrong with mincore()?

As Avi said, it returns false if the memory is in swap.

Note that while we do take a page fault, the recent kernel patch to
introduce a huge zero page might have reduced the cost in terms of both
clear_page and cache misses.

Paolo

  parent reply	other threads:[~2013-02-01 16:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <510A15DC.3070706@dlhnet.de>
     [not found] ` <510A218C.2000903@redhat.com>
     [not found]   ` <20130131094809.GO15004@redhat.com>
     [not found]     ` <510A47F1.6070302@redhat.com>
     [not found]       ` <CAEbWaipEYFLshmMxm3R+n=Kk+ya7+m0-B5K__2RqeMM_vex4SA@mail.gmail.com>
     [not found]         ` <20130131143043.GD23213@redhat.com>
     [not found]           ` <CAEbWaiqJ1pjaXeBtqf7Ww-KX8x7t+bvn6JzhPr8KbtA6ADBH1g@mail.gmail.com>
     [not found]             ` <20130131144243.GE23213@redhat.com>
     [not found]               ` <CAEbWaio1SM3u=-_paMkU6sLK1SWih0_gUgMDQhJ-N37dTuX4=Q@mail.gmail.com>
     [not found]                 ` <20130131211844.GC16941@redhat.com>
2013-02-01  7:30                   ` [Qemu-devel] RFC migration of zero pages Avi Kivity
2013-02-01 16:58     ` Paolo Bonzini [this message]
     [not found]   ` <85C05B4E-E6BC-43D3-917F-E3EAC674F2EA@dlhnet.de>
     [not found]     ` <510A2C3D.3060001@redhat.com>
2013-02-01 17:03       ` Paolo Bonzini
2013-02-03  7:24         ` Peter Lieven

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=510BF434.1010308@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=gleb@redhat.com \
    --cc=owasserm@redhat.com \
    --cc=pl@dlhnet.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.