diff options
| author | Yang Jihong <yangjihong1@huawei.com> | 2023-09-23 09:30:36 +0000 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2023-09-26 21:47:12 -0700 |
| commit | 07f3e6cf8581bcfe9f1bd4540768bc202983349f (patch) | |
| tree | 827da071e11fa7aa27b8df3b72a44376b8fc29e3 /tools/perf/scripts/python/netdev-times.py | |
| parent | perf bench messaging: Factor out create_worker() (diff) | |
| download | linux-07f3e6cf8581bcfe9f1bd4540768bc202983349f.tar.gz linux-07f3e6cf8581bcfe9f1bd4540768bc202983349f.zip | |
perf bench messaging: Store chlid process pid when creating worker for process mode
To save pid of child processes when creating worker:
1. The messaging worker is changed to `union` type to store thread id and
process pid.
2. Save child process pid in create_process_worker().
3. Rename `pth_tab` as `work_tab`.
Test result:
# perf bench sched messaging
# Running 'sched/messaging' benchmark:
# 20 sender and receiver processes per group
# 10 groups == 400 processes run
Total time: 6.744 [sec]
# perf bench sched messaging -t
# Running 'sched/messaging' benchmark:
# 20 sender and receiver threads per group
# 10 groups == 400 threads run
Total time: 5.788 [sec]
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20230923093037.961232-4-yangjihong1@huawei.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions
