• F
    mm: export node type {pmem|dram} under /sys/bus/node · 533cc721
    Fan Du 提交于
    euleros inclusion
    category: feature
    feature: etmem
    bugzilla: 48246
    
    -------------------------------------------------
    
    User space migration daemon could check
    /sys/bus/node/devices/nodeX/type for node type.
    
    Software can interrogate node type for node memory type and distance
    to get desirable target node in migration.
    
    grep -r . /sys/devices/system/node/*/type
    /sys/devices/system/node/node0/type:dram
    /sys/devices/system/node/node1/type:dram
    /sys/devices/system/node/node2/type:pmem
    /sys/devices/system/node/node3/type:pmem
    
    Along with next patch which export `peer_node`, migration daemon
    could easily find the memory type of current node, and the target
    node in case of migration.
    
    grep -r . /sys/devices/system/node/*/peer_node
    /sys/devices/system/node/node0/peer_node:2
    /sys/devices/system/node/node1/peer_node:3
    /sys/devices/system/node/node2/peer_node:0
    /sys/devices/system/node/node3/peer_node:1
    Signed-off-by: NFan Du <fan.du@intel.com>
    Signed-off-by: NFengguang Wu <fengguang.wu@intel.com>
    Signed-off-by: NKemeng Shi <shikemeng@huawei.com>
    Reviewed-by: louhongxiang <louhongxiang@huawei.com
    Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
    533cc721
node.c 27.8 KB