All of lore.kernel.org
 help / color / mirror / Atom feed
* pahole -J non-determinism and reproducible builds
@ 2024-05-23 19:25 Giuliano Procida
  2024-05-23 20:41 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 4+ messages in thread
From: Giuliano Procida @ 2024-05-23 19:25 UTC (permalink / raw)
  To: Alan Maguire, Arnaldo Carvalho de Melo; +Cc: dwarves

Hi.

(edited repost due to unfortunate HTML email).

Until the reproducible BTF changes land in a new pahole version, and for
anyone stuck on older versions, pahole -J -j typically produces
non-deterministic BTF.

For Android, we are converging to hermetic, reproducible builds. .BTF
sections are a significant difference we see. I have trivial patches to
pass -j1 instead of -j for the older versions we are using (1.23 and 1.25).

Trivial patches:
https://android-review.googlesource.com/q/Ibd72ac638faa1826f6655b336cc7001591ea70f1

Gaining determinism for the older versions means giving up some performance.
About a factor of 2.1 in our case (or an extra 10s on vmlinux).

Do others want performance or determinism, should I send patches to LKML
and the stable list?

Off-topic: pahole -J -j9 is faster than -j on my machine with 36
cores, by another
factor of 2. This is v1.25. -j1 18.7s, -j9 4.5s, -j 8.9s.

Regards,
Giuliano.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-14  3:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-23 19:25 pahole -J non-determinism and reproducible builds Giuliano Procida
2024-05-23 20:41 ` Arnaldo Carvalho de Melo
2024-05-25 14:42   ` Alan Maguire
2024-06-14  3:12     ` Tony Ambardar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.