armbian / build

Armbian Linux build framework generates custom Debian or Ubuntu image for x86, aarch64, riscv64 & armhf
https://www.armbian.com
GNU General Public License v2.0
4.26k stars 2.33k forks source link

[Feature Request]: Enable CONFIG_DEBUG_INFO & CONFIG_DEBUG_INFO_BTF #7270

Closed Integral-Tech closed 2 weeks ago

Integral-Tech commented 1 month ago

Which feature would you like to have?

It would be better if armbian kernels can enable CONFIG_DEBUG_INFO & CONFIG_DEBUG_INFO_BTF, as CONFIG_DEBUG_INFO=y & CONFIG_DEBUG_INFO_BTF=y are indispensable for dae (an eBPF-based Linux high-performance transparent proxy solution).

Funding

github-actions[bot] commented 1 month ago

Jira ticket: AR-2496

rpardini commented 1 month ago

This is in the works for a few months now. I've a working-ish version on my branch that needs some cleanup; @Integral-Tech you might be able to pick it into your own userpatches/config.

Enabling full BTF debug info (such as it's CO-RE compatible) puts about 2x more load on the kernel build servers and increases the build time by around 50%, not to mention a small increase in the size of the kernel packages and a huge (2x-3x) increase in disk consumption for building kernels.

As I've been unable to find workarounds for those increases, and we've been unable to increase build server capacity, I hesitate to send the PR.

@igorpecovnik what do you think?

igorpecovnik commented 1 month ago

That means cca. + additional 256 CPU cores to keep the same compile time and storage upgrades on some machines that are on the edge (cca. half of them). If bulk of those expenses are not on us, I don't mind.