Closed
Bug 1443712
Opened 7 years ago
Closed 7 years ago
Enable /d2:-cgsummary
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox60 fixed)
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: gps, Assigned: gps)
References
Details
Attachments
(1 file)
I was enlightened about the existence of the link.exe /d2:-cgsummary flag in bug 1443590. That will print information about what the PGO build is spending time on, which functions are optimized, etc. Example output is in an attachment in bug 1443590.
The output is a few pages of text and seems useful to have in CI logs. Let's enable it by default.
Comment hidden (mozreview-request) |
Those av1/cdef/aom/vp9 compile times look pretty crazy. I wonder if we should disable PGO in those files since they won't be hit in our current training data anyway. Or maybe those functions are just horribly complex and would take that long to compile even without PGO.
https://blogs.msdn.microsoft.com/vcblog/2018/01/04/visual-studio-2017-throughput-improvements-and-advice/ seems to suggest that this works outside of PGO builds too. Should we use this flag more generally?
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8956700 [details]
Bug 1443712 - Add /d2:-cgsummary to PGO link flags;
https://reviewboard.mozilla.org/r/225680/#review231582
Neat!
Attachment #8956700 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Attachment #8956700 -
Flags: review?(core-build-config-reviews)
Pushed by gszorc@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7d7d8043d20c
Add /d2:-cgsummary to PGO link flags; r=ted
Assignee | ||
Comment 6•7 years ago
|
||
(In reply to David Major [:dmajor] from comment #3)
> https://blogs.msdn.microsoft.com/vcblog/2018/01/04/visual-studio-2017-
> throughput-improvements-and-advice/ seems to suggest that this works outside
> of PGO builds too. Should we use this flag more generally?
I held off because outside of PGO, where lots of codegen occurs during link, we would have to enable on cl invocations. That would make output very verbose. Or were you thinking about enabling this on all link invocations? A non-PGO link won't perform much codegen, right?
(In reply to Gregory Szorc [:gps] from comment #6)
> (In reply to David Major [:dmajor] from comment #3)
> > https://blogs.msdn.microsoft.com/vcblog/2018/01/04/visual-studio-2017-
> > throughput-improvements-and-advice/ seems to suggest that this works outside
> > of PGO builds too. Should we use this flag more generally?
>
> I held off because outside of PGO, where lots of codegen occurs during link,
> we would have to enable on cl invocations. That would make output very
> verbose. Or were you thinking about enabling this on all link invocations? A
> non-PGO link won't perform much codegen, right?
Oh, you're right. For some reason I thought we used LTCG on non-PGO opt builds. (We don't.)
Assignee | ||
Comment 8•7 years ago
|
||
In case anyone looks at the logs, sees we're using 6.7 cores and is wondering why we're capping /CGTHREADS to 8, it is because 8 is apparently the maximum value for that argument.
Comment 9•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Updated•6 years ago
|
Version: Version 3 → 3 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•