xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Andres Lagar-Cavilla" <andres@lagarcavilla.org>
To: Olaf Hering <olaf@aepfle.de>
Cc: xen-devel@lists.xensource.com, Tim Deegan <tim@xen.org>
Subject: Re: mark pages in p2m_ram_paging_out state read-only
Date: Thu, 24 Nov 2011 10:41:16 -0800	[thread overview]
Message-ID: <faf6ec7d1e124a4cd9e4ac9146808dbb.squirrel@webmail.lagarcavilla.org> (raw)
In-Reply-To: <20111124182415.GA24717@aepfle.de>

> On Thu, Nov 24, Tim Deegan wrote:
>
>> > Is this a good idea? If the guest is accessing the page, then paging
>> out
>> > should stop immediately. We're risking complex races for a tiny tiny
>> gain.
>>
>> I don't think that this would introduce any new races, but yes - this is
>> probably a hint that this page is a poor candidate to be paged out.
>> We might as well abandon the page-out rather than probably having to
>> page it back in immediately.
>
> In the current state there will be a stall in the guest due to the
> fault, until the page comes back.
> With this change the guest can still make progress.
> Can the read-execute access be detected anyway to stop paging?
>
The stall is minuscule. A "minor fault" since the page hasn't been paged
out yet (in the condition this patch is concerned with) and thus there is
no IO readback.

The current code handles this nicely with its state machine. Further, it
lets the pager know with an additional event in the ring, which is
something I'd like to keep in place.

There are extra round-trip(s) to the pager, as is. Imho, it's not an
unreasonable price for a fringe condition.

Andres

  parent reply	other threads:[~2011-11-24 18:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1616.1322135934.12970.xen-devel@lists.xensource.com>
2011-11-24 17:09 ` mark pages in p2m_ram_paging_out state read-only Andres Lagar-Cavilla
2011-11-24 17:22   ` Tim Deegan
2011-11-24 18:24     ` Olaf Hering
2011-11-24 18:40       ` Olaf Hering
2011-11-24 18:41       ` Andres Lagar-Cavilla [this message]
2011-11-14 16:53 Olaf Hering
2011-11-24 11:38 ` Tim Deegan

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=faf6ec7d1e124a4cd9e4ac9146808dbb.squirrel@webmail.lagarcavilla.org \
    --to=andres@lagarcavilla.org \
    --cc=olaf@aepfle.de \
    --cc=tim@xen.org \
    --cc=xen-devel@lists.xensource.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).