Re: [PATCH 4/4] dax: "Hotplug" persistent memory for use like normal RAM

From: Dave Hansen
Date: Thu Jan 17 2019 - 10:17:29 EST


On 1/17/19 12:19 AM, Yanmin Zhang wrote:
>>
> I didn't try pmem and I am wondering it's slower than DRAM.
> Should a flag, such like _GFP_PMEM, be added to distinguish it from
> DRAM?

Absolutely not. :)

We already have performance-differentiated memory, and lots of ways to
enumerate and select it in the kernel (all of our NUMA infrastructure).

PMEM is also just the first of many "kinds" of memory that folks want to
build in systems and use a "RAM". We literally don't have space to put
a flag in for each type.