Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use a thread to load the dep graph #116109

Merged
merged 1 commit into from Sep 26, 2023

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Sep 23, 2023

This removes the use of a thread to load the dep graph. It's not currently useful as we immediately block on it.

r? @oli-obk

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Sep 23, 2023
@oli-obk
Copy link
Contributor

oli-obk commented Sep 25, 2023

@bors try @rust-timer queue

@rust-timer

This comment has been minimized.

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 25, 2023
@bors
Copy link
Contributor

bors commented Sep 25, 2023

⌛ Trying commit ba8d53d with merge b2bb63f...

bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 25, 2023
Don't use a thread to load the dep graph

This removes the use of a thread to load the dep graph. It's not currently useful as we immediately block on it.

r? `@oli-obk`
@bors
Copy link
Contributor

bors commented Sep 25, 2023

☀️ Try build successful - checks-actions
Build commit: b2bb63f (b2bb63fbb35a74e9c9f5741ac905ae2b69fceef9)

@rust-timer

This comment has been minimized.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (b2bb63f): comparison URL.

Overall result: ❌ regressions - no action needed

Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf.

@bors rollup=never
@rustbot label: -S-waiting-on-perf -perf-regression

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.0% [1.0%, 1.0%] 1
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 1.0% [1.0%, 1.0%] 1

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.2% [1.2%, 1.2%] 1
Regressions ❌
(secondary)
3.4% [2.0%, 6.7%] 5
Improvements ✅
(primary)
-2.7% [-4.9%, -0.4%] 5
Improvements ✅
(secondary)
-2.1% [-3.0%, -1.7%] 3
All ❌✅ (primary) -2.1% [-4.9%, 1.2%] 6

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 632.116s -> 631.38s (-0.12%)
Artifact size: 317.31 MiB -> 317.26 MiB (-0.02%)

@rustbot rustbot removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Sep 26, 2023
@oli-obk
Copy link
Contributor

oli-obk commented Sep 26, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Sep 26, 2023

📌 Commit ba8d53d has been approved by oli-obk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 26, 2023
@bors
Copy link
Contributor

bors commented Sep 26, 2023

⌛ Testing commit ba8d53d with merge 8bf0dec...

@bors
Copy link
Contributor

bors commented Sep 26, 2023

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing 8bf0dec to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 26, 2023
@bors bors merged commit 8bf0dec into rust-lang:master Sep 26, 2023
12 checks passed
@rustbot rustbot added this to the 1.74.0 milestone Sep 26, 2023
@rust-timer
Copy link
Collaborator

Finished benchmarking commit (8bf0dec): comparison URL.

Overall result: ❌✅ regressions and improvements - ACTION NEEDED

Next Steps: If you can justify the regressions found in this perf run, please indicate this with @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please open an issue or create a new PR that fixes the regressions, add a comment linking to the newly created issue or PR, and then add the perf-regression-triaged label to this PR.

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

Instruction count

This is a highly reliable metric that was used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
0.8% [0.5%, 1.1%] 2
Regressions ❌
(secondary)
0.5% [0.1%, 1.2%] 3
Improvements ✅
(primary)
-0.2% [-0.3%, -0.2%] 4
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 0.1% [-0.3%, 1.1%] 6

Max RSS (memory usage)

Results

This is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.

mean range count
Regressions ❌
(primary)
1.3% [0.4%, 2.8%] 3
Regressions ❌
(secondary)
3.4% [2.2%, 6.5%] 5
Improvements ✅
(primary)
-2.5% [-3.8%, -1.2%] 3
Improvements ✅
(secondary)
-2.4% [-3.0%, -1.7%] 4
All ❌✅ (primary) -0.6% [-3.8%, 2.8%] 6

Cycles

This benchmark run did not return any relevant results for this metric.

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 631.717s -> 631.784s (0.01%)
Artifact size: 317.30 MiB -> 317.18 MiB (-0.04%)

@rustbot rustbot added the perf-regression Performance regression. label Sep 26, 2023
@Zoxc Zoxc deleted the no-dep-graph-thread branch September 26, 2023 19:34
let res = sess.opts.build_dep_graph().then(|| load_dep_graph(sess));

if sess.opts.incremental.is_some() {
sess.time("incr_comp_garbage_collect_session_directories", || {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There does seem to be a small performance hit which is probably this no longer being done in parallel.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like noise to me on the graph of the regressed perf tests

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does look like the time incr_comp_garbage_collect_session_directories takes in practice is quite small, so it's probably just noise.

Copy link
Member

@lqd lqd Sep 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably a relative/absolute graph thingy again. It looks small and maybe not worth looking into, but seems unlikely to be noise with this shape.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was referring to the wall time regression in the initial perf run. The instruction count isn't very useful as this PR involves parallelism.

@rylev
Copy link
Member

rylev commented Oct 3, 2023

@Zoxc @oli-obk did we come to a conclusion on whether this small perf regression needs to be addressed? I guess given the nature of the PR (doing with parallelism), the instruction count regression is fine to just accept, right?

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants