Skip to content

refactor: replace rustix::process dependency with rlimit - #14739

Draft
xtqqczze wants to merge 2 commits into
uutils:mainfrom
xtqqczze:GH14664
Draft

xtqqczze wants to merge 2 commits into
uutils:mainfrom
xtqqczze:GH14664

Conversation

@xtqqczze

@xtqqczze xtqqczze commented Sep 19, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #14914.
Reverts #14664.

@sylvestre

Copy link
Copy Markdown
Contributor

sorry but i am not going to revert anything until we have a CI running for redox

@oech3

oech3 commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

I think we don't need to revert this since we were not running test(impossible?) for Redox on the CI previously.

@sylvestre sylvestre closed this Sep 20, 2026
@xtqqczze

Copy link
Copy Markdown
Collaborator Author

I think we should add a check-only job at the very least:

cargo check --all-targets --features feat_os_unix_redox --target x86_64-unknown-redox

We can set continue-on-error: true for now so that any existing errors don’t block CI, while still giving us visibility into Redox build issues.

@sylvestre

Copy link
Copy Markdown
Contributor

Sounds good

@xtqqczze

This comment was marked as outdated.

@oech3

oech3 commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Do we really need to hurry supporting test on redox? Most logic are shared with other platforms.

@xtqqczze xtqqczze reopened this Sep 28, 2026
@xtqqczze
xtqqczze marked this pull request as draft September 28, 2026 15:21
@xtqqczze
xtqqczze force-pushed the GH14664 branch 2 times, most recently from d2139df to e8df3ba Compare September 28, 2026 16:19
@xtqqczze xtqqczze self-assigned this Sep 28, 2026
@codspeed

codspeed Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 56.76%

⚠️ 64 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

⚡ 2 improved benchmarks
✅ 111 untouched benchmarks
⏩ 342 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ three_39_bit_primes 591.3 ms 260.7 ms ×2.3
⚡ thirteen_39_bit_primes 9.6 s 8.9 s +8.34%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing xtqqczze:GH14664 (8bfe21f) with main (8b27533)2

Open in CodSpeed

Footnotes

  1. 342 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (c5a3ce5) during the generation of this report, so 8b27533 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@xtqqczze xtqqczze closed this Sep 28, 2026
@xtqqczze xtqqczze reopened this Oct 11, 2026
@xtqqczze xtqqczze changed the title Revert "tests: replace rlimit dependency with rustix::process" refactor: replace rustix::process dependency with rlimit Oct 11, 2026
@xtqqczze
xtqqczze force-pushed the GH14664 branch 3 times, most recently from 5787bfb to 5489611 Compare October 11, 2026 16:48
@oech3

oech3 commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

If we replaced rustix with rlimit, we need large diff again to remove it after rustix supported rlimit on redox.

@xtqqczze
xtqqczze force-pushed the GH14664 branch 2 times, most recently from e3871ea to 17ede27 Compare October 11, 2026 19:49

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rustix does not support rlimit on Redox

3 participants