Skip to content
Snippets Groups Projects
  • Li Zhijian's avatar
    selftests/bpf: Enlarge select() timeout for test_maps · 8ea16c0e
    Li Zhijian authored
    stable inclusion
    from stable-v4.19.207
    commit 4c48bd3aa1a33cb3e8a0eca8330b8f100f43d895
    category: bugfix
    bugzilla: https://gitee.com/openeuler/kernel/issues/I5QR5E
    CVE: NA
    
    --------------------------------
    
    commit 2d82d73da35b72b53fe0d96350a2b8d929d07e42
    
    0Day robot observed that it's easily timeout on a heavy load host.
    -------------------
     # selftests: bpf: test_maps
     # Fork 1024 tasks to 'test_update_delete'
     # Fork 1024 tasks to 'test_update_delete'
     # Fork 100 tasks to 'test_hashmap'
     # Fork 100 tasks to 'test_hashmap_percpu'
     # Fork 100 tasks to 'test_hashmap_sizes'
     # Fork 100 tasks to 'test_hashmap_walk'
     # Fork 100 tasks to 'test_arraymap'
     # Fork 100 tasks to 'test_arraymap_percpu'
     # Failed sockmap unexpected timeout
     not ok 3 selftests: bpf: test_maps # exit=1
     # selftests: bpf: test_lru_map
     # nr_cpus:8
    -------------------
    Since this test will be scheduled by 0Day to a random host that could have
    only a few cpus(2-8), enlarge the timeout to...
    8ea16c0e