[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wg2YAc1TrqWB9HhKDWHGzrqeP9=uiW9hzU5p1oApcdAKA@mail.gmail.com>
Date: Mon, 26 May 2025 11:16:19 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Masahiro Yamada <masahiroy@...nel.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>
Subject: Re: [GIT PULL] Kbuild fixes for v6.15-rc7
Masahiro,
On Wed, 14 May 2025 at 22:15, Masahiro Yamada <masahiroy@...nel.org> wrote:
>
> Please pull some Kbuild fixes.
So this isn't actually about your latest kbuild fixes, but more a
generic kbuild thing now that the merge window has opened..
My build times have gone up by a *lot* lately (and by "lately" I don't
mean very recently, but in the last month or so), to the point that
I'm now finding it to be a real annoyance due to it slowing down the
merge window for me.
I did a profile on the load just to check, and it's all just gcc
(well, cc1 mainly), so it's not that something else like ccache got
enabled.
(Things like ccache can speed up builds in other scenarios, but I've
also seen it slow things down a lot for the worst-case sitation when
header files change, so I wanted to verify that it's not just that)
So it's just that we're spending a lot more time in the compiler.
I haven't tried to bisect it, and now I'm too busy to, but the two
main suspects are either that KASAN is now enabled and that just makes
the builds a lot slower (if so, it's my own fault - introduced by me
in commit 6f110a5e4f99 "Disable SLUB_TINY for build testing").
Or it's just that I upgraded to F42 and gcc-15 itself is perhaps just
that much slower.
Anyway, I'm emailing you exactly because I'm busy with the merge
window and this is causing issues for me but I don't have time to
figure it out - and so I'm going "maybe Masahiro is aware of this
already"
I also did notice while timing things that the final module link time
seems to have limited threading
For the rest of the build, I have load averages in the 100+ range
(because I build with "-j128"), but then the last few minutes it
starts dropping a lot when it's in the
CC [M] ...
stage, and when it hits that Makefile.modfinal stage and we get
LD [M] ...
stage it seems to have serialized completely and just spends 100% of
time in one single 'make' instance.
But that may be an effect of the link being so fast that 'ps' and
'top' just don't tend to pick them out at all, of course. But I do
note that the LD [M] phase seems to be entirely serialized with the
'CC [M]' phase. Does it really have to be?
Linus
Powered by blists - more mailing lists