linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Lameter <clameter@engr.sgi.com>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: linux-mm@kvack.org, lhms-devel@lists.sourceforge.net,
	jschopp@austin.ibm.com, Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH 0/2] Page migration via Swap V2: Overview
Date: Tue, 18 Oct 2005 09:50:45 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.62.0510180948490.7911@schroedinger.engr.sgi.com> (raw)
In-Reply-To: <43549815.9090001@jp.fujitsu.com>

On Tue, 18 Oct 2005, KAMEZAWA Hiroyuki wrote:

> Because sys_mbind() acquires mm->mmap_sem, once page is unmapped,
> all accesses to the page are blocked.
> 
> So, even if the range contains hot pages, there will not be
> hard-to-be-swapped-out pages. right ?

There may be locked pages and maybe pages that are continually busy.
 
> sys_mbind() can aquire mm->mmap_sem for migrating *a process's page*,
> but memory-hotplug cannot aquire the lock for migrating a chunk of pages.

I did mbind first because it is the less invasive. The primary reason to 
acquire mmap_sem is to be able to walk the vma areas.

> I think we'll need radix_tree_replace for migating arbitrary chunk of pages,
> anyway.

Likely. Ultimately I would like to see the direct migration work.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2005-10-18 16:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-18  0:49 Christoph Lameter
2005-10-18  0:49 ` [PATCH 1/2] Page migration via Swap V2: Page Eviction Christoph Lameter
2005-10-18  1:04   ` Andrew Morton
2005-10-18  8:51     ` Nick Piggin
2005-10-18 16:38     ` Christoph Lameter
2005-10-18  8:34   ` Magnus Damm
2005-10-18 16:43     ` Christoph Lameter
2005-10-19 10:04       ` Magnus Damm
2005-10-19 15:29         ` Christoph Lameter
2005-10-19 20:32         ` Christoph Lameter
2005-10-18  0:49 ` [PATCH 2/2] Page migration via Swap V2: MPOL_MF_MOVE interface Christoph Lameter
2005-10-18 10:05   ` Magnus Damm
2005-10-18 16:46     ` Christoph Lameter
2005-10-18  3:18 ` [PATCH 0/2] Page migration via Swap V2: Overview KAMEZAWA Hiroyuki
2005-10-18 14:27   ` [Lhms-devel] " Lee Schermerhorn
2005-10-18 16:47   ` Christoph Lameter
2005-10-18  6:37 ` KAMEZAWA Hiroyuki
2005-10-18 16:50   ` Christoph Lameter [this message]
2005-10-18 12:16 ` Marcelo Tosatti
2005-10-18 16:54   ` Christoph Lameter

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=Pine.LNX.4.62.0510180948490.7911@schroedinger.engr.sgi.com \
    --to=clameter@engr.sgi.com \
    --cc=akpm@osdl.org \
    --cc=jschopp@austin.ibm.com \
    --cc=kamezawa.hiroyu@jp.fujitsu.com \
    --cc=lhms-devel@lists.sourceforge.net \
    --cc=linux-mm@kvack.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