Re: [PATCH 00/10] objtool: Honey, I shrunk the instruction

From: Nathan Chancellor
Date: Wed Feb 08 2023 - 13:36:30 EST


On Wed, Feb 08, 2023 at 06:17:56PM +0100, Peter Zijlstra wrote:
> Hi,
>
> Boris complained he could no longer build allyesconfig on his 32G desktop
> machine without having OOM terminate either objtool or chrome.
>
> After talking about these patches on IRC, Nathan mentioned the linux-clang CI
> was also having trouble of recent, and these patches appear to make it happy
> again.
>
> In total these patches shrink an allyesconfig run by about 6G:
>
> pre: 5:58.22 real, 226.69 user, 131.22 sys, 26221520 mem
> post: 5:03.34 real, 210.75 user, 88.80 sys, 20241232 mem
>
> Also at:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=objtool/core

For patches 1-9:

Tested-by: Nathan Chancellor <nathan@xxxxxxxxxx> # build only

Prior to this series:

[INFO] Memory used: 25.09GB

After this series:

[INFO] Memory used: 19.27GB

Our builds on TuxSuite were consistenly timing out after four hours and
they had no problem passing with this series (the worst time was 2.2h,
which is line with the VM specs that they use I believe):

https://tuxapi.tuxsuite.com/v1/groups/clangbuiltlinux/projects/nathan/plans/2LQbNuWRo3Xf62Yg3SINuA9d7cR

Thanks a lot!

Cheers,
Nathan