Provide perf
compiled for each kernel
#1200
Labels
c/autoscaling/neonvm
Component: autoscaling: NeonVM
perf
compiled for each kernel
#1200
Problem description / Motivation
The
perf
tool must match the kernel version. Because our kernels are compiled separately from whatever distribution packages the VM image might pull in, there's no guarantee that the distribution package is compatible with the kernel.For example, we found that
apt install linux-perf
in debian bullseye gave a version of perf that didn't support the kernel version we were using.Feature idea(s) / DoD
There should be a feasible way to use
perf
in our computes -- e.g. by having theperf
binary available, or by making it easy to download the binary.Implementation ideas
This is a little tricky:
perf
via vm-builderperf
from source is not too difficult (it's part of the kernel source tree), but:perf
has calls todlopen
for dynamically loaded filters, which requires the right version ofld
at runtime (and there's no guarantees that'll match the VM image)This may be a lot easier if we:
In the short term we could also just attach perf binaries to each release, knowing that the linking story isn't perfect.
The text was updated successfully, but these errors were encountered: