Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lkp picking up system's perf and Add new param #388

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

Suneeth-D
Copy link

  1. Fix: lkp unable to pick latest perf rather using system's perf as a
    consequence unable to run benchmarks on custom kernels
  2. Feat: add new parameter # -thp_opt to enable lkp run two different
    variant of the microbenchmark (thp/no_thp) and lkp ncompare able to
    differentiate the results of the same

Reviewed-by: Srikanth Aithal [email protected]

@bssrikanth
Copy link

@Suneeth-D please update the param thp_opt in lkp-tests/programs/perf-bench-numa-mem/meta.yaml file

perf_path=/lkp/benchmarks/perf/perf
else
perf_path=/usr/bin/perf
fi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, for above lines, how about using set_perf_path "/lkp/benchmarks/perf/perf" like others? And the later call of perf can also changed to $perf.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your review, tried the same and it's working good. I have also pushed the changes.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it, and may need one more change that actually the whole if/else/fi can be replaced by one set_perf_path "/lkp/benchmarks/perf/perf", which will decide to use "/lkp/benchmarks/perf/perf" or /usr/bin/perf inside.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed that and tested the same both the cases ("/lkp/benchmarks/perf/perf" and "/usr/bin/perf inside.") are working fine. Thanks.

@Suneeth-D Suneeth-D force-pushed the perf-bench-numa-mem branch from 86b42fe to ab2da70 Compare December 3, 2024 12:41
1) Fix: lkp unable to pick latest perf rather using system's perf as a
   consequence unable to run benchmarks on custom kernels
2) Feat: add new parameter # -thp_opt to enable lkp run two different
   variant of the microbenchmark (thp/no_thp) and lkp ncompare able to
   differentiate the results of the same

Reviewed-by: Srikanth Aithal <[email protected]>
Signed-off-by: Suneeth D <[email protected]>
@Suneeth-D Suneeth-D force-pushed the perf-bench-numa-mem branch from ab2da70 to 6e66c19 Compare December 4, 2024 04:26
@rli9 rli9 merged commit f3b2814 into intel:master Dec 4, 2024
@rli9
Copy link

rli9 commented Dec 4, 2024

thanks for the patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants