linux-um archives
 help / color / mirror / Atom feed
From: Jeff Dike <jdike@addtoit.com>
To: Adam Heath <adam@doogie.org>
Cc: James W McMechan <mcmechanjw@juno.com>,
	sdw@lig.net, user-mode-linux-user@lists.sourceforge.net,
	user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-user] Re: [uml-devel] Dynamic remount with variable COW stacking/merging needed, support for snapshot repilication
Date: Mon, 19 Jan 2004 14:40:34 -0500	[thread overview]
Message-ID: <200401191940.i0JJeYVW024171@ccure.user-mode-linux.org> (raw)
In-Reply-To: Your message of "Mon, 19 Jan 2004 12:26:17 CST." <Pine.LNX.4.44.0401191223310.1154-100000@gradall.private.brainfood.com>

adam@doogie.org said:
> The problem is that you can't request multiple pages at once with
> mmap.  Only one page at a time(because the page you requested will
> fault, which will pause the process while the system pages it in). 

No, mmap itself doesn't fault.  It fiddles some data structures and returns
immediately.  The fault happens when the page is first touched.  That's why
the ubd IO thread touches the page after a request is satified my mmap - to
fault the page in in an asynchronous way.

I would love for there to be aio page fault notification.

> In fact, mmap can be slower in some cases than normal reading, if the
> kernel only pages in one block at a time(because of other reasons). 

In a lot of cases, actually.  The tlb operations associated with changing
mappings are expensive, and can outweigh a lot of copying.

				Jeff



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

      reply	other threads:[~2004-01-19 19:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-18  8:20 [uml-devel] Dynamic remount with variable COW stacking/merging needed, support for snapshot repilication James W McMechan
2004-01-18 16:13 ` BlaisorBlade
2004-01-19  3:59   ` Matt Zimmerman
2004-01-19  4:10 ` [uml-user] " Jeff Dike
2004-01-19 18:26   ` Adam Heath
2004-01-19 19:40     ` Jeff Dike [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=200401191940.i0JJeYVW024171@ccure.user-mode-linux.org \
    --to=jdike@addtoit.com \
    --cc=adam@doogie.org \
    --cc=mcmechanjw@juno.com \
    --cc=sdw@lig.net \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    --cc=user-mode-linux-user@lists.sourceforge.net \
    /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