[lkml]   [2013]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH part2 v2 0/8] Arrange hotpluggable memory as ZONE_MOVABLE

* H. Peter Anvin <> wrote:

> On 10/14/2013 01:37 PM, Yinghai Lu wrote:
> >>
> >> Optimizing NUMA boot just requires moving the heavy lifting to
> >> appropriate NUMA nodes. It doesn't require that early boot phase
> >> should strictly follow NUMA node boundaries.
> >
> > At end of day, I like to see all numa system (ram/cpu/pci) could have
> > non boot nodes to be hot-removed logically. with any boot command
> > line.
> >
> I don't think that is realistic without hardware support, simply because
> all it takes is a single page of kernel locked memory to prevent a page
> from being removed. The only realistic way around that, I believe, is
> to remove the identity-mapping in the kernel, but it still has all kinds
> of funnies involving devices and DMA.

We played with virtual kernel memory a decade ago and it's doable. The
only complication was DMA from the kernel stack - that was done with some
really broken old ISA drivers IIRC. Those should be a distant memory, in
terms of practical impact.

So if anyone can implement it using huge pages, with a really fast __va()
and __pa() implementation, then it might be possible. But that's a pretty
major surgery on x86.



 \ /
  Last update: 2013-10-15 09:21    [W:0.123 / U:0.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site