Skip to content
  • Gavin Shan's avatar
    e280ecb3
    qtest/numa-test: Correct CPU and NUMA association in aarch64_numa_cpu() · e280ecb3
    Gavin Shan authored
    
    
    In aarch64_numa_cpu(), the CPU and NUMA association is something
    like below. Two threads in the same core/cluster/socket are
    associated with two individual NUMA nodes, which is unreal as
    Igor Mammedov mentioned. We don't expect the association to break
    NUMA-to-socket boundary, which matches with the real world.
    
        NUMA-node  socket  cluster   core   thread
        ------------------------------------------
            0       0        0        0      0
            1       0        0        0      1
    
    This corrects the topology for CPUs and their association with
    NUMA nodes. After this patch is applied, the CPU and NUMA
    association becomes something like below, which looks real.
    Besides, socket/cluster/core/thread IDs are all checked when
    the NUMA node IDs are verified. It helps to check if the CPU
    topology is properly populated or not.
    
        NUMA-node  socket  cluster   core   thread
        ------------------------------------------
           0        1        0        0       0
           1        0        0        0       0
    
    Suggested-by: default avatarIgor Mammedov <imammedo@redhat.com>
    Signed-off-by: default avatarGavin Shan <gshan@redhat.com>
    Acked-by: default avatarIgor Mammedov <imammedo@redhat.com>
    Message-id: 20220503140304.855514-5-gshan@redhat.com
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    e280ecb3
    qtest/numa-test: Correct CPU and NUMA association in aarch64_numa_cpu()
    Gavin Shan authored
    
    
    In aarch64_numa_cpu(), the CPU and NUMA association is something
    like below. Two threads in the same core/cluster/socket are
    associated with two individual NUMA nodes, which is unreal as
    Igor Mammedov mentioned. We don't expect the association to break
    NUMA-to-socket boundary, which matches with the real world.
    
        NUMA-node  socket  cluster   core   thread
        ------------------------------------------
            0       0        0        0      0
            1       0        0        0      1
    
    This corrects the topology for CPUs and their association with
    NUMA nodes. After this patch is applied, the CPU and NUMA
    association becomes something like below, which looks real.
    Besides, socket/cluster/core/thread IDs are all checked when
    the NUMA node IDs are verified. It helps to check if the CPU
    topology is properly populated or not.
    
        NUMA-node  socket  cluster   core   thread
        ------------------------------------------
           0        1        0        0       0
           1        0        0        0       0
    
    Suggested-by: default avatarIgor Mammedov <imammedo@redhat.com>
    Signed-off-by: default avatarGavin Shan <gshan@redhat.com>
    Acked-by: default avatarIgor Mammedov <imammedo@redhat.com>
    Message-id: 20220503140304.855514-5-gshan@redhat.com
    Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
Loading