接前一篇文章:Linux内核中内存管理相关配置项的详细解析11
二十四、Support DMA zone
此项只有选中和不选中两种状态,默认为选中。
此项在Kconfig中并无帮助信息。
二十五、Support DMA32 zone
此项默认选中。
此项在Kconfig中并无帮助信息。
二十六、Device memory (pmem, HMM, etc...) hotplug support
对应配置变量为:CONFIG_ZONE_DEVICE。
此项只有选中和不选中两种状态,默认为选中。只有当前边“Memory hotplug
”项被选中时,此项才会出现。
此项的内核源码详细解释为:
Device memory hotplug support allows for establishing pmem,
or other device driver discovered memory regions, in the
memmap. This allows pfn_to_page() lookups of otherwise
"device-physical" addresses which is needed for using a DAX
mapping in an O_DIRECT operation, among other things.
设备内存热插拔支持允许建立pmem,或其它设备驱动程序发现的存储器区域,在memmap中。这允许pfn_to_page()查找在O_DIRECT操作中使用DAX映射所需的其他“设备物理”地址。
二十七、Unaddressable device memory (GPU memory, ...)
对应配置变量为:CONFIG_DEVICE_PRIVATE。
此项只有选中和不选中两种状态,默认为选中。只有当前边“Memory hotplug
”项和上一项“Device memory (pmem, HMM, etc...) hotplug support”同时被选中时,此项才会出现。
此项的内核源码详细解释为:
Allows creation of struct pages to represent unaddressable device
memory; i.e., memory that is only accessible from the device (or
group of devices). You likely also want to select HMM_MIRROR.
允许创建结构页来表示不可调整的设备内存;举例来说,只能从设备(或设备组)访问的存储器。你可能还希望选择HMM_MIRROR。