• P
    nodeinfo: Fix gathering of nodeinfo data structure · 80533ca2
    Peter Krempa 提交于
    This patch changes the way data to fill the nodeinfo structure are
    gathered. We've gathere the test data by iterating processors an sockets
    separately from nodes. The reported data was based solely on information
    about core id. Problems arise when eg cores in mulit-processor machines
    don't have same id's on both processors or maybe one physical processor
    contains more NUMA nodes.
    
    This patch changes the approach how we detect processors and nodes. Now
    we start at enumerating nodes and for each node processors, sockets and
    threads are enumerated separately. This approach provides acurate data
    that comply to docs about the nodeinfo structure. This also enables to
    get rid of hacks: see commits 10d9038b,
    ac9dd4a6. (Those changes in nodeinfo.c
    are efectively reverted by this patch).
    
    This patch also changes output of one of the tests, as the processor
    topology is now acquired more precisely.
    80533ca2
linux-nodeinfo-sysfs-test-3-cpu-x86-output.txt 67 字节