• Jie Zhang's avatar
    Support topo-aware IB performance validation (#373) · ef4d6574
    Jie Zhang authored
    
    
    * Support topo-aware IB performance validation
    
    Add a new pattern `topo-aware`, so the user can run IB performance
    test based on VM's topology information. This way, the user can
    validate the IB performance across VM pairs with different distance
    as a quick test instead of pair-wise test.
    
    To run with topo-aware pattern, user needs to specify three required
    (and two optional) parameters in YAML config file:
    --pattern	topo-aware
    --ibstat	path to ibstat output
    --ibnetdiscover	path to ibnetdiscover output
    --min_dist	minimum distance of VM pairs (optional, default 2)
    --max_dist	maximum distance of VM pairs (optional, default 6)
    
    The newly added topo_aware module then parses the topology
    information, builds a graph, and generates the VM pairs with
    the specified distance (# hops).
    
    The specified IB test will then be running across these
    generated VM pairs.
    Signed-off-by: default avatarJie Zhang <jessezhang1010@gmail.com>
    
    * Add description about topology aware ib traffic tests
    Signed-off-by: default avatarJie Zhang <jessezhang1010@gmail.com>
    
    * Add unit test to verify generated topology aware config file
    
    This commit adds unit test to verify the generated topology aware
    config file is correct. To do so, four new data files are added in
    order to invoke gen_topo_aware_config function to generate topology
    aware config file, then compares it with the expected config file.
    Signed-off-by: default avatarJie Zhang <jessezhang1010@gmail.com>
    
    * Fix lint issue on Azure pipeline
    Signed-off-by: default avatarJie Zhang <jessezhang1010@gmail.com>
    ef4d6574
setup.py 5.96 KB