Skip to contentSkip to conversation

Should perf version match kernel version?

DISCUSSION Vitaly Chikunov 5 participants 6 messages Jul 29, 2020 – Aug 2, 2020

lore
Share & tools
lore
#0 lore raw

Hi,

It seems that most distros try to have perf version to match with running kernel version. Is is requirement? Would it be better to have single perf from kernel mainline to work with any (older) kernel version?

We have different kernel versions in ALT Linux (stable for 4.19, 5.4, and 5.7) and I want to understand if we should have three perfs or single package will be enough.

Thanks,

#1 lore raw
Quoted 10 lines · Vitaly Chikunov

Hi,

It seems that most distros try to have perf version to match with running kernel version. Is is requirement? Would it be better to have single perf from kernel mainline to work with any (older) kernel version?

We have different kernel versions in ALT Linux (stable for 4.19, 5.4, and 5.7) and I want to understand if we should have three perfs or single package will be enough.

We strive to have it all compatible, older perf should work on newer kernel and newer perf should work on older kernel.

How well it's all tested is another.

Personally I often use a very old perf.

#2 lore raw
Quoted 12 lines · On July 29, 2020 1:02:20 PM GMT-03:00, [email protected] wrote:
Quoted 10 lines · Vitaly Chikunov

Hi,

It seems that most distros try to have perf version to match with running kernel version. Is is requirement? Would it be better to have single perf from kernel mainline to work with any (older) kernel version?

We have different kernel versions in ALT Linux (stable for 4.19, 5.4, and 5.7) and I want to understand if we should have three perfs or single package will be enough.

Quoted 6 lines

We strive to have it all compatible, older perf should work on newer kernel and newer perf should work on older kernel.

How well it's all tested is another.

Personally I often use a very old perf.

Yeah, never was a requirement, if you find some problem using a new perf on an old kernel or the other way around, please report.

- Arnaldo

Signature · 1 line
Sent from my Android device with K-9 Mail. Please excuse my brevity.
#3 lore raw

Peter, Arnaldo,

Quoted 15 lines · Arnaldo Carvalho de Melo
Quoted 12 lines · On July 29, 2020 1:02:20 PM GMT-03:00, [email protected] wrote:
Quoted 10 lines · Vitaly Chikunov

Hi,

It seems that most distros try to have perf version to match with running kernel version. Is is requirement? Would it be better to have single perf from kernel mainline to work with any (older) kernel version?

We have different kernel versions in ALT Linux (stable for 4.19, 5.4, and 5.7) and I want to understand if we should have three perfs or single package will be enough.

Quoted 8 lines
Quoted 6 lines

We strive to have it all compatible, older perf should work on newer kernel and newer perf should work on older kernel.

How well it's all tested is another.

Personally I often use a very old perf.

Yeah, never was a requirement, if you find some problem using a new perf on an old kernel or the other way around, please report.

That's great to know. Thanks for the answers!

#4 lore raw

Em Wed, Jul 29, 2020 at 08:57:04PM +0300, Vitaly Chikunov escreveu:

Quoted 15 lines · Arnaldo Carvalho de Melo
Quoted 13 lines · On July 29, 2020 1:02:20 PM GMT-03:00, [email protected] wrote:
Quoted 12 lines · Vitaly Chikunov
Quoted 8 lines

It seems that most distros try to have perf version to match with running kernel version. Is is requirement? Would it be better to have single perf from kernel mainline to work with any (older) kernel version?

We have different kernel versions in ALT Linux (stable for 4.19, 5.4, and 5.7) and I want to understand if we should have three perfs or single package will be enough.

We strive to have it all compatible, older perf should work on newer kernel and newer perf should work on older kernel.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

How well it's all tested is another.

Personally I often use a very old perf.

Yeah, never was a requirement, if you find some problem using a new perf on an old kernel or the other way around, please report.

That's great to know. Thanks for the answers!

Having said that, from time to time there are new features such as, say LBR callgraph stitching, there are kernel and tooling components, so its important to try and have the latest perf, but yeah, as you said, one perf package is enough, just keep it uptodate :-)

For other features such as the metric work with 'perf stat', its purely userspace, and sometimes its purely kernel space, no lockstep.

- Arnaldo

#5 lore raw
In reply to Vitaly Chikunov

Hi!

Quoted 10 lines
Quoted 8 lines
Quoted 6 lines

We strive to have it all compatible, older perf should work on newer kernel and newer perf should work on older kernel.

How well it's all tested is another.

Personally I often use a very old perf.

Yeah, never was a requirement, if you find some problem using a new perf on an old kernel or the other way around, please report.

That's great to know. Thanks for the answers!

Someone should tell debian, AFAICT they believe perf version == kernel version is a requirement...and so says their manpage.

Pavel

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html