• wuqiang.matt's avatar
    lib: objpool test module added · 92f90d3b
    wuqiang.matt authored
    The test_objpool module (test_objpool) will run several testcases
    for objpool stress and performance evaluation. Each testcase will
    have all available cpu cores involved to create a situation of high
    parallel and high contention.
    
    As of now there are 5 groups and 5 * 2 testcases in total:
    
    1) group 1: synchronous mode
       objpool is managed synchronously, that is, all objects are to be
       reclaimed before objpool finalization and the objpool owner makes
       sure of it. All threads on different cores run in the same pace
    2) group 2: synchronous mode + hrtimer
       this case have 2 customers: normal threads and hrtimer softirqs
    3) group 3: synchronous + overrun mode
       This test group is mainly for performance evaluation of missing
       cases when pre-allocated objects are less than the requested
    4) group 4: asynchronous mode
       This case is just an emulation of kretprobe, with refcount used
       to control the objpool lifecycle
    5) group 5: asynchronous mode with hrtimer
       hrtimer softirq is introduced to stress async objpool operations
    
    Link: https://lore.kernel.org/all/20231017135654.82270-3-wuqiang.matt@bytedance.com/Signed-off-by: default avatarwuqiang.matt <wuqiang.matt@bytedance.com>
    Acked-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
    Signed-off-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
    92f90d3b
Makefile 15.1 KB