Bug 109794 - Massive memory usage when building chromium on aarch64-unknown-linux-gnu
Summary: Massive memory usage when building chromium on aarch64-unknown-linux-gnu
Status: RESOLVED DUPLICATE of bug 109505
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 14.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: compile-time-hog, memory-hog
Depends on:
Blocks:
 
Reported: 2023-05-09 20:27 UTC by Sam James
Modified: 2023-05-10 04:49 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
evaluate_prg_hwy.ii.xz (235 bytes, application/x-xz)
2023-05-09 20:27 UTC, Sam James
Details
evaluate_prg_hwy.ii.xz (13) (234 bytes, application/x-xz)
2023-05-09 20:28 UTC, Sam James
Details
evaluate_prg_hwy.ii.xz.13 (483.14 KB, application/x-xz)
2023-05-09 20:36 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James 2023-05-09 20:27:12 UTC
Created attachment 55034 [details]
evaluate_prg_hwy.ii.xz

Originally reported downstream in Gentoo at https://bugs.gentoo.org/905818.

With GCC 12 (12.2.1 20230505), this has reached over 30GB memory usage before I killed it. I've asked the reporter for preprocessed source for 13 as well.

Reproduces for me with 12 using:
```
g++-12 -c evaluate_prg_hwy.ii -std=c++20 -O2
```
but even -O0 is enough.
Comment 1 Sam James 2023-05-09 20:28:58 UTC
Created attachment 55035 [details]
evaluate_prg_hwy.ii.xz (13)
Comment 2 Andrew Pinski 2023-05-09 20:30:34 UTC
Hmm, I thought this one was fixed.
Comment 3 Sam James 2023-05-09 20:36:13 UTC
Created attachment 55036 [details]
evaluate_prg_hwy.ii.xz.13
Comment 4 Andrew Pinski 2023-05-09 23:31:56 UTC
At -O0, it seems like LRA is taking a long time.
Comment 5 Andrew Pinski 2023-05-09 23:33:04 UTC
(In reply to Andrew Pinski from comment #4)
> At -O0, it seems like LRA is taking a long time.

But -O0 completes for me on the trunk.
Comment 6 Andrew Pinski 2023-05-09 23:40:56 UTC
-O0:
 LRA non-specific                   :  33.12 ( 20%)   0.06 (  1%)  33.15 ( 19%)   279M ( 25%)
 LRA virtuals elimination           :   2.08 (  1%)   0.00 (  0%)   2.08 (  1%)    18M (  2%)
 LRA reload inheritance             :   4.18 (  2%)   0.00 (  0%)   4.15 (  2%)    36k (  0%)
 LRA create live ranges             :  11.41 (  7%)   0.00 (  0%)  11.45 (  6%)    28M (  2%)
 LRA hard reg assignment            :  37.83 ( 22%)   0.04 (  0%)  37.86 ( 21%)     0  (  0%)
Comment 7 Andrew Pinski 2023-05-09 23:45:16 UTC
Oh I know this bug.
Comment 8 Andrew Pinski 2023-05-09 23:47:04 UTC
Dup of bug 109505.

*** This bug has been marked as a duplicate of bug 109505 ***