Skip to contentSkip to conversation

linux-next: build failure after merge of the tip tree

DISCUSSION Stephen Rothwell 6 participants 13 messages May 21, 2020 – May 25, 2020 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the tip tree, all my linux-next builds took signficantly longer and used much more memory. In some cases, builds would seg fault due to running out of memory :-(

I have eventaully bisected it to commit

cdd28ad2d811 ("READ_ONCE: Use data_race() to avoid KCSAN instrumentation")

For my (e.g.) x86_64 allmodconfig builds (cross compiled on PowerPC le, -j80) the elapsed time went from around 9 minutes to over 17 minutes and the maximum resident size (as reported by /usr/bin/time) from around 500M to around 2G (I saw lots of cc1 processes over 2G in size).

For tomorrow's linux-next (well, later today :-() I will revert that commit (and its child) when I merge the tip tree.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw

Hi Stephen,

[+Marco and Boris]

Quoted 8 lines · Stephen Rothwell

After merging the tip tree, all my linux-next builds took signficantly longer and used much more memory. In some cases, builds would seg fault due to running out of memory :-(

I have eventaully bisected it to commit

cdd28ad2d811 ("READ_ONCE: Use data_race() to avoid KCSAN instrumentation")

Quoted 7 lines

For my (e.g.) x86_64 allmodconfig builds (cross compiled on PowerPC le, -j80) the elapsed time went from around 9 minutes to over 17 minutes and the maximum resident size (as reported by /usr/bin/time) from around 500M to around 2G (I saw lots of cc1 processes over 2G in size).

For tomorrow's linux-next (well, later today :-() I will revert that commit (and its child) when I merge the tip tree.

Sorry about that, seems we can't avoid running into compiler problems with this lot. The good news is that there's a series to fix this here:

https://lore.kernel.org/r/[email protected]

so hopefully this be fixed in -tip soon (but I agree that reverting the thing in -next in the meantime makes sense).

Will

#2 lore raw

Hi Will,

Quoted 20 lines · On Thu, 21 May 2020 18:35:22 +0100 Will Deacon <[email protected]> wrote:

[+Marco and Boris]

Quoted 8 lines · Stephen Rothwell

After merging the tip tree, all my linux-next builds took signficantly longer and used much more memory. In some cases, builds would seg fault due to running out of memory :-(

I have eventaully bisected it to commit

cdd28ad2d811 ("READ_ONCE: Use data_race() to avoid KCSAN instrumentation")

Quoted 7 lines

For my (e.g.) x86_64 allmodconfig builds (cross compiled on PowerPC le, -j80) the elapsed time went from around 9 minutes to over 17 minutes and the maximum resident size (as reported by /usr/bin/time) from around 500M to around 2G (I saw lots of cc1 processes over 2G in size).

For tomorrow's linux-next (well, later today :-() I will revert that commit (and its child) when I merge the tip tree.

Quoted 7 lines

Sorry about that, seems we can't avoid running into compiler problems with this lot. The good news is that there's a series to fix this here:

https://lore.kernel.org/r/[email protected]

so hopefully this be fixed in -tip soon (but I agree that reverting the thing in -next in the meantime makes sense).

Unfortunately, the revert didn't work, so instead I have used the tip tree from next-20200518 for today (hopefully this will all be sorted out by Monday).

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw

Hi all,

Quoted 25 lines · On Fri, 22 May 2020 17:17:08 +1000 Stephen Rothwell <[email protected]>…
Quoted 23 lines · On Thu, 21 May 2020 18:35:22 +0100 Will Deacon <[email protected]> wrote:

[+Marco and Boris]

Quoted 8 lines · Stephen Rothwell

After merging the tip tree, all my linux-next builds took signficantly longer and used much more memory. In some cases, builds would seg fault due to running out of memory :-(

I have eventaully bisected it to commit

cdd28ad2d811 ("READ_ONCE: Use data_race() to avoid KCSAN instrumentation")

Quoted 7 lines

For my (e.g.) x86_64 allmodconfig builds (cross compiled on PowerPC le, -j80) the elapsed time went from around 9 minutes to over 17 minutes and the maximum resident size (as reported by /usr/bin/time) from around 500M to around 2G (I saw lots of cc1 processes over 2G in size).

For tomorrow's linux-next (well, later today :-() I will revert that commit (and its child) when I merge the tip tree.

Sorry about that, seems we can't avoid running into compiler problems with this lot. The good news is that there's a series to fix this here:

Quoted 8 lines
Quoted 4 lines

https://lore.kernel.org/r/[email protected]

so hopefully this be fixed in -tip soon (but I agree that reverting the thing in -next in the meantime makes sense).

Unfortunately, the revert didn't work, so instead I have used the tip tree from next-20200518 for today (hopefully this will all be sorted out by Monday).

And the rcu tree has merged part of the tip tree that contains the offending commits, so I have used the version fo the rcu tree from next-20200519 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#4 lore raw
Quoted 33 lines · Stephen Rothwell

Hi all,

Quoted 30 lines · On Fri, 22 May 2020 17:17:08 +1000 Stephen Rothwell <[email protected]>…
Quoted 27 lines · On Thu, 21 May 2020 18:35:22 +0100 Will Deacon <[email protected]> wrote:

[+Marco and Boris]

Quoted 8 lines · Stephen Rothwell

After merging the tip tree, all my linux-next builds took signficantly longer and used much more memory. In some cases, builds would seg fault due to running out of memory :-(

I have eventaully bisected it to commit

cdd28ad2d811 ("READ_ONCE: Use data_race() to avoid KCSAN instrumentation")

Quoted 7 lines

For my (e.g.) x86_64 allmodconfig builds (cross compiled on PowerPC le, -j80) the elapsed time went from around 9 minutes to over 17 minutes and the maximum resident size (as reported by /usr/bin/time) from around 500M to around 2G (I saw lots of cc1 processes over 2G in size).

For tomorrow's linux-next (well, later today :-() I will revert that commit (and its child) when I merge the tip tree.

Sorry about that, seems we can't avoid running into compiler problems with this lot. The good news is that there's a series to fix this here:

https://lore.kernel.org/r/[email protected]

so hopefully this be fixed in -tip soon (but I agree that reverting the thing in -next in the meantime makes sense).

Quoted 7 lines
Quoted 3 lines

Unfortunately, the revert didn't work, so instead I have used the tip tree from next-20200518 for today (hopefully this will all be sorted out by Monday).

And the rcu tree has merged part of the tip tree that contains the offending commits, so I have used the version fo the rcu tree from next-20200519 for today.

Please accept my apologies for my part of this problem! I don't see the slowdowns on my normal test system (possibly due to gcc 4.8.5), but I do see them on my laptop.

Marco, Thomas, is there any better setup I can provide Stephen? Or is the next-20200519 -rcu tree the best we have right now?

Thanx, Paul

#5 lore raw
Quoted 2 lines · Paul E. McKenney

Marco, Thomas, is there any better setup I can provide Stephen? Or is the next-20200519 -rcu tree the best we have right now?

I've queued the fixes yesterday into tip:locking/kcsan and tglx said something about you having to rebase anyway. I guess you can find him on IRC at some point later. :)

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette
#6 lore raw
Quoted 7 lines · Borislav Petkov
Quoted 2 lines · Paul E. McKenney

Marco, Thomas, is there any better setup I can provide Stephen? Or is the next-20200519 -rcu tree the best we have right now?

I've queued the fixes yesterday into tip:locking/kcsan and tglx said something about you having to rebase anyway. I guess you can find him on IRC at some point later. :)

locking/kcsan is not the problem (it just has more fixes on top)

core/rcu is the one which diverged and caused the merge conflict with PPC to happen twice. So Paul needs to remove the stale core/rcu bits and rebase on the current version (which is not going to change again).

Thanks,

tglx

#7 lore raw
Quoted 10 lines · Thomas Gleixner
Quoted 7 lines · Borislav Petkov
Quoted 2 lines · Paul E. McKenney

Marco, Thomas, is there any better setup I can provide Stephen? Or is the next-20200519 -rcu tree the best we have right now?

I've queued the fixes yesterday into tip:locking/kcsan and tglx said something about you having to rebase anyway. I guess you can find him on IRC at some point later. :)

Quoted 5 lines

locking/kcsan is not the problem (it just has more fixes on top)

core/rcu is the one which diverged and caused the merge conflict with PPC to happen twice. So Paul needs to remove the stale core/rcu bits and rebase on the current version (which is not going to change again).

So there will be another noinstr-rcu-* tag, and I will rebase on top of that, correct? If so, fair enough!

Thanx, Paul

#8 lore raw
Quoted 7 lines · Paul E. McKenney
Quoted 3 lines · Thomas Gleixner

core/rcu is the one which diverged and caused the merge conflict with PPC to happen twice. So Paul needs to remove the stale core/rcu bits and rebase on the current version (which is not going to change again).

So there will be another noinstr-rcu-* tag, and I will rebase on top of that, correct? If so, fair enough!

Here you go: noinstr-rcu-220-05-23

I wanted this to be 2020 and not 220 but I noticed after pushing it out. I guess it still does the job :)

Thanks,

tglx

#9 lore raw
Quoted 6 lines · Thomas Gleixner
Quoted 5 lines · Paul E. McKenney
Quoted 3 lines · Thomas Gleixner

core/rcu is the one which diverged and caused the merge conflict with PPC to happen twice. So Paul needs to remove the stale core/rcu bits and rebase on the current version (which is not going to change again).

Quoted 7 lines
Quoted 2 lines

So there will be another noinstr-rcu-* tag, and I will rebase on top of that, correct? If so, fair enough!

Here you go: noinstr-rcu-220-05-23

I wanted this to be 2020 and not 220 but I noticed after pushing it out. I guess it still does the job :)

Now -that- is what I call an old-school tag name!!! ;-)

I remerged, rebased, and pushed to -rcu branch "dev".

If it survives testing, I will reset -rcu branch "rcu/next" as well.

Thanx, Paul

#10 lore raw
Quoted 12 lines · Paul E. McKenney
Quoted 11 lines · Thomas Gleixner
Quoted 7 lines · Paul E. McKenney
Quoted 3 lines · Thomas Gleixner

core/rcu is the one which diverged and caused the merge conflict with PPC to happen twice. So Paul needs to remove the stale core/rcu bits and rebase on the current version (which is not going to change again).

So there will be another noinstr-rcu-* tag, and I will rebase on top of that, correct? If so, fair enough!

Here you go: noinstr-rcu-220-05-23

Quoted 8 lines
Quoted 2 lines

I wanted this to be 2020 and not 220 but I noticed after pushing it out. I guess it still does the job :)

Now -that- is what I call an old-school tag name!!! ;-)

I remerged, rebased, and pushed to -rcu branch "dev".

If it survives testing, I will reset -rcu branch "rcu/next" as well.

And passed! The compile times are back to their old selves on my laptop as well.

Thank you for setting this up, Thomas!!!

Thanx, Paul

#11 lore raw
Quoted 19 lines · Paul E. McKenney
Quoted 17 lines · Paul E. McKenney
Quoted 6 lines · Thomas Gleixner
Quoted 5 lines · Paul E. McKenney
Quoted 3 lines · Thomas Gleixner

core/rcu is the one which diverged and caused the merge conflict with PPC to happen twice. So Paul needs to remove the stale core/rcu bits and rebase on the current version (which is not going to change again).

Quoted 7 lines
Quoted 2 lines

So there will be another noinstr-rcu-* tag, and I will rebase on top of that, correct? If so, fair enough!

Here you go: noinstr-rcu-220-05-23

I wanted this to be 2020 and not 220 but I noticed after pushing it out. I guess it still does the job :)

Now -that- is what I call an old-school tag name!!! ;-)

Quoted 8 lines
Quoted 3 lines

I remerged, rebased, and pushed to -rcu branch "dev".

If it survives testing, I will reset -rcu branch "rcu/next" as well.

And passed! The compile times are back to their old selves on my laptop as well.

Thank you for setting this up, Thomas!!!

I just noticed that -rcu and -tip both still have their own version of "ubsan, kcsan: Don't combine sanitizer with kcov on clang". For there to not be any conflicts in -next, "ubsan, kcsan: Don't combine sanitizer with kcov on clang" could be dropped from -rcu.

Thanks,
-- Marco

#12 lore raw
Quoted 27 lines · Marco Elver
Quoted 26 lines · Paul E. McKenney
Quoted 12 lines · Paul E. McKenney
Quoted 11 lines · Thomas Gleixner
Quoted 7 lines · Paul E. McKenney
Quoted 3 lines · Thomas Gleixner

core/rcu is the one which diverged and caused the merge conflict with PPC to happen twice. So Paul needs to remove the stale core/rcu bits and rebase on the current version (which is not going to change again).

So there will be another noinstr-rcu-* tag, and I will rebase on top of that, correct? If so, fair enough!

Here you go: noinstr-rcu-220-05-23

Quoted 8 lines
Quoted 2 lines

I wanted this to be 2020 and not 220 but I noticed after pushing it out. I guess it still does the job :)

Now -that- is what I call an old-school tag name!!! ;-)

I remerged, rebased, and pushed to -rcu branch "dev".

If it survives testing, I will reset -rcu branch "rcu/next" as well.

And passed! The compile times are back to their old selves on my laptop as well.

Quoted 6 lines
Quoted 1 line

Thank you for setting this up, Thomas!!!

I just noticed that -rcu and -tip both still have their own version of "ubsan, kcsan: Don't combine sanitizer with kcov on clang". For there to not be any conflicts in -next, "ubsan, kcsan: Don't combine sanitizer with kcov on clang" could be dropped from -rcu.

Thank you for spotting this! Yes, if it is already in -tip, I should drop it. If this causes trouble for clang users working with -rcu, I can always pull in the exact commit used in -tip.

Anyway, -rcu branch "dev" no longer contains this commit.

Thanx, Paul