Frame pointers enabled by default in Ubuntu 24.04 LTS

In collaboration with Polar Signals we have committed that beginning with Ubuntu 24.04 LTS, our GNU Compiler Collection (GCC) package will enable frame pointers by default for 64-bit platforms. All packages in Ubuntu, with very few exceptions, will be rebuilt with frame pointers enabled, making them easier to profile and subsequently optimise.

“I’ve enabled frame pointers at huge scale for Java and glibc and studied the CPU overhead for this change, which is typically less than 1% and usually so close to zero that it is hard to measure. Frame pointers allow more complete CPU profiling and off-CPU profiling. The performance wins that these can provide far outweigh the comparatively tiny loss in performance. Ubuntu enabling frame pointers by default will be a huge win for performance engineering and the default developer experience”. said Brendan Gregg, computer performance expert and Intel Fellow.

Oliver Smith on the official Ubuntu blog

So I guess the very minor performance regression is supposed to be compensated for by optimisations in individual packages that frame pointers will help realise.

7 Comments

  1. 2023-12-13 7:26 pm
    • 2023-12-19 10:15 am
  2. 2023-12-14 3:07 am
  3. 2023-12-14 3:51 am
  4. 2023-12-14 9:27 pm
  5. 2023-12-20 6:10 am