linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Nick Piggin <nickpiggin@yahoo.com.au>
To: Dave Hansen <haveblue@us.ibm.com>
Cc: jcabezas@ac.upc.edu, linux-mm@kvack.org
Subject: Re: Selective swap out of processes
Date: Sat, 8 Sep 2007 11:45:20 +1000	[thread overview]
Message-ID: <200709081145.21097.nickpiggin@yahoo.com.au> (raw)
In-Reply-To: <1188578404.28903.258.camel@localhost>

On Saturday 01 September 2007 02:40, Dave Hansen wrote:
> Isn't the whole point of get_user_pages() so that the kernel doesn't
> mess with those pages, and the driver or whatever can have free reign?
>
> Seems to me that you're pinning the pages with get_user_pages(), then
> trying to get the kernel to swap them out.  Not a good idea. ;)

That's pretty much what it means... well, it is explicitly defined to simply
increment the refcount of each returned page, which happens to be
exactly what you want in this case.

Obviously your VM code that's doing the swapout has to account for
this refcount... but you'd need to do that anyway.

--
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:[~2007-09-08  1:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-28 16:54 Javier Cabezas Rodríguez
2007-08-29  2:37 ` Nick Piggin
2007-08-29 10:37   ` Javier Cabezas Rodríguez
2007-08-29 18:06     ` Javier Cabezas Rodríguez
2007-08-29 22:01       ` Dave Hansen
2007-08-30  7:13       ` Nick Piggin
2007-08-30 23:41         ` Javier Cabezas Rodríguez
2007-08-30 23:47           ` Javier Cabezas Rodríguez
2007-08-30 23:50           ` Javier Cabezas Rodríguez
2007-08-31  0:34             ` Nick Piggin
2007-08-31 16:40             ` Dave Hansen
2007-09-08  1:45               ` Nick Piggin [this message]
2007-08-30  7:09     ` Nick Piggin
2007-08-29  5:18 ` 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=200709081145.21097.nickpiggin@yahoo.com.au \
    --to=nickpiggin@yahoo.com.au \
    --cc=haveblue@us.ibm.com \
    --cc=jcabezas@ac.upc.edu \
    --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