Repository navigation
Rollup of 4 pull requests - #166265
Rollup of 4 pull requests#166265
Conversation
`aarch64-unknown-linux-pauthtest`, rustc links static native libraries dynamically (with a warning), because the target requires dynamic linking.
…nTitor std: two small improvements to UNIX stack overflow logic See the individual commits... The second commit should have a big impact on the binary size of programs compiled with `panic = "immediate-abort"`, as it enables the removal of the `BTreeMap` code used to store thread info.
…lubby789 bootstrap: Make low priority the default The `low-priority` option is tucked away so far in `bootstrap.example.toml` that it's nearly impossible to discover by anyone who doesn't think they're doing anything niche (see rust-lang#165702). However, it is beneficial to have it enabled on nearly every system, since a build is a CPU-saturating batch job that has no business preempting foreground applications, which predominantly have nice 0. Consider the following four scenarios ensuing from the change from `low-priority = "false"` to `low-priority = "true"`: - There are no processes with non-negligible CPU usage between nice 0 and 10, and bootstrap builds do not get preempted by anything. A system on which this is the case will be unaffected by this change. Examples include CI runners and other build environments with proper build queuing. - There are foreground processes between nice 0 and 10 that are relatively light on CPU compared to a bootstrap build and were previously being heavily preempted by bootstrap builds. With this change, a system on which this is the case will see a significant improvement to the latency of interactive programs, enabling the user to comfortably do other things while the build is running without affecting the throughput of the build itself (as the programs are, as established above, light on CPU). - There are CPU-intensive but not CPU-saturating foreground processes (games, office and productivity software, Jupyter notebooks, etc.) between nice 0 and 10 that constantly compete with bootstrap builds for CPU time. With this change, a system on which this is the case will see CPU time allocation be biased toward the foreground CPU work at the expense of the build, which is most likely what the user wants, since they wouldn't run CPU-intensive things in the foreground if they didn't want them to have priority over background batch jobs whose completion they are passively waiting for. - There are CPU-saturating batch jobs between nice 0 and 10 that constantly compete with bootstrap builds for CPU time, interfering with each other and performing worse than if a batch job queue was in operation and one job ran after the other. With this change, a system on which this is the case will see the bootstrap build receive less CPU time, but the overall sum of batch jobs will complete in approximately the same amount of time regardless, and may even complete sooner due to reduced competition for CPU cache and OS page cache. In any case, this is a misconfigured and a priori suboptimally performing setup, and it will not see good performance unless some form of job queuing is implemented. Admins may implement a `low-priority = "false"` override as a hacky stopgap if it is desirable for the bootstrap build to engage in disruptive competition for resources and win against some other batch job running in parallel. Some may wonder why agonizing over this is necessary to begin with if this is such a clear-cut case that operating systems are supposed to deal with automatically. The answer is that the operating systems of today are still not very good at making this sort of scheduling decision in that their capacity to implement such logic automatically is limited and non-robust in unintuitive ways. For example, the automatic prioritization of foreground programs for scheduling purposes in Windows, known as [quantum boosting][quantboost], can only confer priority boosts to the threads of the process that owns a foreground window, which means that if the graphical application displayed within that window has an IPC dependency on a different process (as is the case with the likes of Jupyter notebooks and even regular web browsers), that dependency will not receive the quantum boost or any other kind of priority increase. [quantboost]: https://web.archive.org/web/20250326185947/https://www.microsoftpressstore.com/articles/article.aspx?p=2233328&seqNum=7 On Linux, meanwhile, no such heuristics exist to begin with (due to graphical applications not holding any special status in the scheduler), and the only mechanism to prevent CPU-intensive and CPU-saturating batch jobs from preempting foreground applications is the emergent heuristic of completely fair scheduling, in which tasks with less total CPU time accrued will have higher priority. This is even more flawed than quantum boosting on Windows, as long-running graphical applications will easily get preempted for long periods of time by the constantly spawning rustc processes of a build that have no history of high CPU usage. In summary: there are commonly occurring setups on which this change is beneficial, commonly occurring setups on which this change does nothing, and extremely niche and typically broken use cases where this change does something that cannot be conclusively deemed positive or negative.
… r=oli-obk refactor CTFE-specific intrinsics to different file Refactors CFTE-specific intrinsics out of `machine.rs`. The list of intrinsics is getting long enough to warrant a refactor. r? @oli-obk
…ink_run_make, r=JonathanBrouwer [PAC] Ignore run-make tests that expect static linking on `pauthtest` `aarch64-unknown-linux-pauthtest`, rustc links static native libraries dynamically (with a warning), because the target requires dynamic linking.
|
@bors r+ p=5 force |
This comment has been minimized.
This comment has been minimized.
|
The job Click to see the possible cause of the failure (guessed by this bot) |
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 5c56312 (parent) -> c7d5ba5 (this PR) Test differencesShow 2 test diffs2 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard c7d5ba59d8e11ee2e2204b173458eec4cb41c973 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (c7d5ba5): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Our benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 0.6%, secondary -2.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 1.7%, secondary 0.6%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.2%, secondary -0.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 460.758s -> 460.905s (0.03%) |
|
📌 Perf builds for each rolled up PR:
parent commit: 5c56312f34 In the case of a perf regression, run the following command with the SHAs of each PR you suspect might be the cause: |
|
@rust-timer triage all |
Running triage with 2 benchmarksTriage only executes the benchmarks on rollup members, that were changed significantly on the rollup.
#166195 f5c55fb std: two small improvements to UNIX stack overflow logicInstruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesResults (secondary 1.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. #165707 443bc1d bootstrap: Make low priority the defaultInstruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesResults (secondary 3.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. #166160 8094772 refactor CTFE-specific intrinsics to different fileInstruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesResults (secondary 3.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. #166260 d61a701 [PAC] Ignore run-make tests that expect static linking on
|
| mean | range | count | |
|---|---|---|---|
| Regressions ❌ (primary) |
- | - | 0 |
| Regressions ❌ (secondary) |
0.1% | [0.1%, 0.1%] | 3 |
| Improvements ✅ (primary) |
- | - | 0 |
| Improvements ✅ (secondary) |
-0.8% | [-1.1%, -0.1%] | 8 |
| All ❌✅ (primary) | - | - | 0 |
Max RSS (memory usage)
This perf run didn't have relevant results for this metric.
Cycles
Results (secondary 1.7%)
A less reliable metric. May be of interest, but not used to determine the overall result above.
| mean | range | count | |
|---|---|---|---|
| Regressions ❌ (primary) |
- | - | 0 |
| Regressions ❌ (secondary) |
6.4% | [4.1%, 8.6%] | 4 |
| Improvements ✅ (primary) |
- | - | 0 |
| Improvements ✅ (secondary) |
-4.6% | [-6.1%, -3.3%] | 3 |
| All ❌✅ (primary) | - | - | 0 |
Binary size
This perf run didn't have relevant results for this metric.
Successful merges:
pauthtest#166260 ([PAC] Ignore run-make tests that expect static linking onpauthtest)r? @ghost
Create a similar rollup