From: Dave Hansen <haveblue@us.ibm.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Yasunori Goto <ygoto@us.fujitsu.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-mm <linux-mm@kvack.org>,
"Martin J. Bligh" <mbligh@aracnet.com>
Subject: Re: Fw: [Lhms-devel] Making hotremovable attribute with memory section[0/4]
Date: Tue, 17 Aug 2004 00:52:33 -0700 [thread overview]
Message-ID: <1092729153.5415.19.camel@nighthawk> (raw)
In-Reply-To: <1092702436.21359.3.camel@localhost.localdomain>
On Mon, 2004-08-16 at 17:27, Alan Cox wrote:
> On Maw, 2004-08-17 at 00:35, Dave Hansen wrote:
> > In any case, the question of the day is, does anyone have any
> > suggestions on how to create 2 separate pools for pages: one
> > representing hot-removable pages, and the other pages that may not be
> > removed?
>
> How do you define the split.
We would hope not to have to define the split explicitly. Since we're
hotplugging memory and resizing zones anyway, it shouldn't be a real
functional problem to balance memory between the 2 states, no matter how
it is implemented.
> There are lots of circumstances where user
> pages can be pinned for a long (near indefinite) period of time and used
> for DMA.
For simple cases, anything tricky like DMA will simply be in an
unremovable area. However, some platforms like ppc64 logical
partitions, require firmware notification of DMA areas. The ppc64
firmware provides consistent remapping functionality for these DMA areas
if they ever need to be hot-swapped.
> Consider
> - Video capture
> - AGP Gart
> - AGP based framebuffer (intel i8/9xx)
> - O_DIRECT I/O
>
> There are also things like cluster interconnects, sendfile and the like
> involved here.
When we get to trying to forcefully migrate the kinds of memory that you
reference above, we'll likely need firmware support like ppc64 has. The
other option is to have some driver callbacks to tell them to reallocate
their buffers into new areas, if that's even possible. But, even that's
not something I see ever happening to the entire tree, more likely a
small subset of the drivers that really need it.
-- Dave
--
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:"aart@kvack.org"> aart@kvack.org </a>
prev parent reply other threads:[~2004-08-17 7:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-16 22:56 Yasunori Goto
2004-08-16 23:35 ` Dave Hansen
2004-08-17 0:27 ` Alan Cox
2004-08-17 5:15 ` Yasunori Goto
2004-08-17 9:58 ` Dave Jones
2004-08-17 7:52 ` Dave Hansen [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=1092729153.5415.19.camel@nighthawk \
--to=haveblue@us.ibm.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mbligh@aracnet.com \
--cc=ygoto@us.fujitsu.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