arm64: defconfig: Use DEBUG_INFO_REDUCED
PATCH v2 1/1 arm64: defconfig: Use DEBUG_INFO_REDUCED
We've had DEBUG_INFO enabled for arm64 defconfigs since the initial commit. This is probably not that frequently used but substantially inflates the size of the build tree and amount of I/O needed during the build. This was causing issues with storage usage in some automated CI environments which don't expect defconfigs to be quite this big, and generally increases the resource consumption for both them and people doing local builds. The main use case for the debug info is decoding things with scripts/faddr2line but that doesn't need the full DEBUG_INFO, DEBUG_INFO_REDUCED is enough for it, so enable that by default.
Without this patch my build tree is 6.8G, with it the size drops to 2G (smaller than the 6.4G for allmodconfig!).
--- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm64/configs/defconfig +1 -0
@@ -1156,6 +1156,7 @@ CONFIG_CRYPTO_DEV_HISI_TRNG=m CONFIG_CMA_SIZE_MBYTES=32 CONFIG_PRINTK_TIME=y CONFIG_DEBUG_INFO=y +CONFIG_DEBUG_INFO_REDUCED=y CONFIG_MAGIC_SYSRQ=y CONFIG_DEBUG_FS=y CONFIG_DEBUG_KERNEL=y
Signature · 7 lines
2.20.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 27 lines · Mark Brown
We've had
DEBUG_INFOenabled for arm64 defconfigs since the initial commit. This is probably not that frequently used but substantially inflates the size of the build tree and amount of I/O needed during the build. This was causing issues with storage usage in some automated CI environments which don't expect defconfigs to be quite this big, and generally increases the resource consumption for both them and people doing local builds. The main use case for the debug info is decoding things withscripts/faddr2linebut that doesn't need the fullDEBUG_INFO,DEBUG_INFO_REDUCEDis enough for it, so enable that by default.Without this patch my build tree is 6.8G, with it the size drops to 2G (smaller than the 6.4G for allmodconfig!).
Suggested-by Catalin Marinas <[email protected]>Reported-by Guillaume Tucker <[email protected]>Signed-off-by Mark Brown <[email protected]>Acked-by Kevin Hilman <[email protected]>--- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+)arch/arm64/configs/defconfig +0
-0
arch/arm64/configs/defconfig CONFIG_CRYPTO_DEV_HISI_TRNG=m · line 1162
Quoted 7 lines
arch/arm64/configs/defconfig +1
-0@@ -1156,6 +1156,7 @@ CONFIG_CRYPTO_DEV_HISI_TRNG=m CONFIG_CMA_SIZE_MBYTES=32 CONFIG_PRINTK_TIME=y CONFIG_DEBUG_INFO=y +CONFIG_DEBUG_INFO_REDUCED=y CONFIG_MAGIC_SYSRQ=y CONFIG_DEBUG_FS=y CONFIG_DEBUG_KERNEL=y
I gave this a spin with clang and it looks alright! Are you targetting 5.12 with this or can it wait until 5.13? I can't tell how big a deal it is on the CI side of things.
Will
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 3 lines · Will Deacon
I gave this a spin with clang and it looks alright! Are you targetting 5.12 with this or can it wait until 5.13? I can't tell how big a deal it is on the CI side of things.
v5.13 should be fine, it's more annoying for CI users than anything else I think - KernelCI certainly dealt with it already.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Will Deacon
Acked-byQuoted 8 lines · Mark Brown
Quoted 3 lines · Will Deacon
I gave this a spin with clang and it looks alright! Are you targetting 5.12 with this or can it wait until 5.13? I can't tell how big a deal it is on the CI side of things.
v5.13 should be fine, it's more annoying for CI users than anything else I think - KernelCI certainly dealt with it already.
Ok, in which case:
and I'll leave it to Catalin.
Will
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Catalin Marinas
AppliedQuoted 11 lines · Mark Brown
We've had
DEBUG_INFOenabled for arm64 defconfigs since the initial commit. This is probably not that frequently used but substantially inflates the size of the build tree and amount of I/O needed during the build. This was causing issues with storage usage in some automated CI environments which don't expect defconfigs to be quite this big, and generally increases the resource consumption for both them and people doing local builds. The main use case for the debug info is decoding things withscripts/faddr2linebut that doesn't need the fullDEBUG_INFO,DEBUG_INFO_REDUCEDis enough for it, so enable that by default.
Quoted 1 line
[...]
Applied to arm64 (for-next/misc), thanks!
[1/1] arm64: defconfig: Use DEBUG_INFO_REDUCED
https://git.kernel.org/arm64/c/ed938a4bfc58
Signature · 7 lines
Catalin _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel