Re: another pmem variant V2

From: Boaz Harrosh
Date: Tue Mar 31 2015 - 06:31:43 EST


On 03/31/2015 01:25 PM, Boaz Harrosh wrote:
> On 03/31/2015 12:25 PM, Christoph Hellwig wrote:
<>
> The problem I see is that if I state a memmap=nn!aa that crosses a NUMA
> boundary then the machine will not boot.
> So BTW for sure I need that "don't merge E820_PMEM ranges" patch because
> otherwise I will not be able to boot if I have pmem on both NUMA nodes
> and they happen to be contiguous.
>

BTW if you need NUMA emulated in your KVM add the below to your virsh edit

<cpu>
....
<numa>
<cell cpus='0-3' memory='5242880'/>
<cell cpus='4-7' memory='3145728'/>
</numa>
</cpu>


memory= is in KiB only
The sum of these must exactly match what you have for
<memory unit='KiB'>8388608</memory>
<currentMemory unit='KiB'>8388608</currentMemory>

And you probably already have say:
<topology sockets='2' cores='4' threads='1'/>

Cheers
Boaz

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/