5

Don't use a thread to load the dep graph by Zoxc · Pull Request #116109 · rust-l...

 11 months ago
source link: https://github.com/rust-lang/rust/pull/116109
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

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

Conversation

Contributor

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

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

Contributor

This comment has been minimized.

rustbot

added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label

Sep 25, 2023

Contributor

⌛ Trying commit ba8d53d with merge b2bb63f...

Contributor

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

This comment has been minimized.

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

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

removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label

Sep 26, 2023

Contributor

@bors r+

Contributor

📌 Commit ba8d53d has been approved by oli-obk

It is now in the queue for this repository.

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

Contributor

⌛ Testing commit ba8d53d with merge 8bf0dec...

Contributor

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

bors

added the merged-by-bors This PR was explicitly merged by bors label

Sep 26, 2023

bors

merged commit 8bf0dec into

rust-lang:master

Sep 26, 2023

12 checks passed

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

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

added the perf-regression Performance regressions label

Sep 26, 2023

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", || {

Contributor

Author

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

Contributor

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

Contributor

Author

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

Member

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
oli-obk reacted with thumbs up emoji

Contributor

Author

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.

Member

@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

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

Reviewers

lqd

lqd left review comments

oli-obk

oli-obk left review comments
Assignees

oli-obk

Labels
merged-by-bors This PR was explicitly merged by bors perf-regression Performance regressions 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

Milestone

1.74.0

Development

Successfully merging this pull request may close these issues.

None yet

7 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK