memory-less node

Boot log in prompt memory-less node, the so-called memory-less node is no memory on this node

Numactl -H corresponding to the following:

2 seen on node 0 and the memory does not, in which log dmesg correspondence,

static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn)
{
    const size_t nd_size = roundup(sizeof(pg_data_t), SMP_CACHE_BYTES);
    u64 nd_pa;
    void *nd;

    int tnid;

# This will print memory-less node

 if (start_pfn >= end_pfn)
        pr_info("Initmem setup node %d [<memory-less node>]\n", nid);

    nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid);
    if (!nd_pa)
        panic("Cannot allocate %zu bytes for node %d data\n",
              nd_size, nid);

    nd = __va (nd_pa);

    /* report and initialize */
    pr_info("NODE_DATA [mem %#010Lx-%#010Lx]\n",
        nd_pa, nd_pa + nd_size - 1);
    tnid = early_pfn_to_nid(nd_pa >> PAGE_SHIFT);
    if (tnid != nid)
        pr_info("NODE_DATA(%d) on node %d\n", nid, tnid);

    node_data[nid] = nd;
    memset(NODE_DATA(nid), 0, sizeof(pg_data_t));
    NODE_DATA(nid)->node_id = nid;
    NODE_DATA(nid)->node_start_pfn = start_pfn;
    NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn;
}

Released 1436 original articles · won praise 63 · Views 1.29 million +

Guess you like

Origin blog.csdn.net/tiantao2012/article/details/104920792