Skip to content

Conversation

@lukaszstolarczuk
Copy link
Contributor

@lukaszstolarczuk lukaszstolarczuk commented Oct 28, 2025

To fix issue: WARNING: perf not found for kernel 6.17.0-6
ref. https://github.com/intel/llvm/actions/runs/18870710633/job/53848872196#step:19:1241

For self-hosted machines kernel packages installed in docker may be unsuitable - install packages required for perf in each workflow run (to match the actual host).

@lukaszstolarczuk lukaszstolarczuk force-pushed the bench-perf-install branch 2 times, most recently from d1ba477 to 140e12a Compare October 28, 2025 16:13
@lukaszstolarczuk lukaszstolarczuk marked this pull request as ready for review October 28, 2025 17:50
@lukaszstolarczuk lukaszstolarczuk requested review from a team as code owners October 28, 2025 17:50
@lukaszstolarczuk
Copy link
Contributor Author

Our precommit benchmark test is not working currently - @PatKamin is working on the fix - but my fix was checked in: https://github.com/intel/llvm/actions/runs/18881499077/job/53887826008?pr=20493#step:19:726

@lukaszstolarczuk lukaszstolarczuk changed the title Bench perf install [CI][Bench] Install perf in proper version Oct 28, 2025
Comment on lines +143 to +144
# Linux tools installed during docker creation may not match the self-hosted
# kernel version, so we need to install the correct version here.
Copy link
Contributor

Choose a reason for hiding this comment

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

How exactly would it match the host? Does uname -r report host information or container information?

Copy link
Contributor

Choose a reason for hiding this comment

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

It has to be host, Docker isn't a real VM and uses the host kernel. Note I did zero research.

Copy link
Contributor

@sarnex sarnex Oct 28, 2025

Choose a reason for hiding this comment

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

Ok I did minimal research https://stackoverflow.com/questions/31012297/uname-a-returning-the-same-in-docker-host-or-any-docker-container

Docker uses the host operating system kernel, there is no custom or additional kernel inside the container. All containers running on the machine are sharing this "host" kernel.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I tested this locally - kernel reported in docker was exactly like my host.

I pulled sycl image, where linux-tools package was installed (in version A), then run apt install -y linux-tools-$(uname -r) in docker and new version B appeared and perf started to work.

Also, as I mentioned above - I tested this on BMG machine with other kernel and worked as well (https://github.com/intel/llvm/actions/runs/18881499077/job/53887826008?pr=20493#step:19:726)

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.

4 participants