You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(readme): ask for an AMD Zen 5 benchmark host - #701
The README asks for an AMD Zen 5 benchmark host: some speed gaps against C zstd appear only on AMD cores, and hosted runners give no hardware counters to profile them.
Changes
README.md: a "Wanted: an AMD Zen 5 benchmark host" subsection under Performance with the host requirements (Linux, user-space PMU counters, branch-stack sampling, exclusive use, remote access) and a link to open an issue.
Testing
Documentation only; the README is embedded in the crate docs, so the rustdoc and doctest jobs cover it.
The README now lists the requirements for an AMD Zen 5 benchmark host, including Linux or a VM with PMU passthrough, readable performance counters, branch-stack sampling, exclusive measurement access, and remote access for an automated runner.
It also directs potential providers to open an issue.
Some speed gaps against C zstd appear only on AMD cores and cannot be
profiled on hosted runners. List what a donated host needs: Linux with
user-space PMU counters, branch-stack sampling, exclusive use.
Closes#700
Reviewing files that changed from the base of the PR and between 11a53cd and 3b99ea4.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The README requests an AMD Zen 5 benchmark host. It lists hardware, performance-counter, measurement-access, and remote-access requirements, and asks potential providers to open an issue.
Changes: Benchmark host request
Layer / File(s)
Summary
Document benchmark host requirements README.md
The Performance section requests an AMD Zen 5 host and specifies Linux, PMU, perf, branch-stack sampling, exclusive measurement access, and remote access requirements.
This adds a README section asking for an AMD Zen 5 benchmark host and tells providers to open an issue. It does not change runtime behavior and is safe to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "docs(readme): ask for an AMD Zen 5 benchmark host" matches the main change. The PR adds a README subsection that requests an AMD Zen 5 benchmark host and describes the required host propert…
Linked Issues check
Issue #700 is the only active directly linked issue. Its acceptance criterion asks that the README Performance section carry the AMD Zen 5 benchmark host request, its requirements, and a way to respon…
Out of Scope Changes check
The whole-PR change set (merge base 479e41c to head 01efe76) is limited to README.md, with about +15 lines and no declaration changes. The added subsection matches the requested README content for #70…
Full details: Title check
Explanation
The title "docs(readme): ask for an AMD Zen 5 benchmark host" matches the main change. The PR adds a README subsection that requests an AMD Zen 5 benchmark host and describes the required host properties and how to respond. The title names the documentation scope, the request, and the hardware, so it is specific and accurate for the changeset. No search was needed for this check.
Full details: Linked Issues check
Explanation
Issue #700 is the only active directly linked issue. Its acceptance criterion asks that the README Performance section carry the AMD Zen 5 benchmark host request, its requirements, and a way to respond. This is a documentation requirement, so no coding requirements apply. The PR description and the AI-generated summary both state that a 'Wanted: an AMD Zen 5 benchmark host' subsection under Performance was added with the required host properties (Linux or PMU passthrough, user-space PMU counters, branch-stack sampling, exclusive use, remote access) and a link to open an issue. The README at the reviewed head could not be read in full: the file read was truncated before the Performance section, and the diff read was unavailable. The check therefore relies on the PR description and summary for the section's content, not on direct inspection of the head blob.
Full details: Out of Scope Changes check
Explanation
The whole-PR change set (merge base 479e41c to head 01efe76) is limited to README.md, with about +15 lines and no declaration changes. The added subsection matches the requested README content for #700. No unrelated code, configuration, or test changes are reported. The PR description states that the README is embedded in the crate docs, so the existing rustdoc and doctest jobs cover the edit. No out-of-scope changes were identified from the available evidence.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Reviewing files that changed from the base of the PR and between 08dd69e and 01efe76.
Files selected for processing: 1
README.md
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
zstd 1.6.0 takes ZDICT_tryMerge's included-entry length difference
(MAX(elt.length - table[u].length, 1)) in unsigned 32-bit arithmetic
where 1.5.7 cast both to int, so an entry longer than the new element
adds a wrapped length to its savings, and the product is size_t. The
trainer now does the same at pointer width; against 1.5.7's rule it
chose different content on the unit-file fixture (4091 bytes against the
reference's 3941), which failed legacy_trainer_ffi on every test job.
ffi-bench now requires zstd-sys 2.2 (zstd 1.6.0): the benchmarks and
interop tests resolve the newest release anyway, the floor makes the
reference they run against a requirement rather than an accident of
resolution.
Part of #705
The reference moves to zstd 1.6.0 everywhere it was pinned to 1.5.7:
the vendored zstd.h (zdict.h and zstd_errors.h are unchanged), the
version the C ABI and pkg-config report (10600, "1.6.0"), the release
the conformance scripts and the c-abi job build, and the command line
the CLI follows.
Following 1.6.0's API changes:
- ZSTD_isDeterministicBuild() is exported. It returns 0: this encoder's
frames are its own, so it does not belong to the builds whose output
matches libzstd 1.6.0 byte for byte.
- ZSTD_copyCCtx() and ZSTD_copyDCtx(), removed upstream, are removed
here with the state kept only for them.
- v0.5-v0.7 frames are no longer read by default, as libzstd stopped
building that support by default (ZSTD_LEGACY_SUPPORT=0). The codec's
`legacy` feature leaves `default`; the C ABI gains a `legacy` feature
forwarding it, and without it such a frame is not a frame
(ZSTD_isFrame 0, prefix_unknown), which a test pins. CI runs the
decoder and command-line tests, the C ABI tests and the decode_legacy
fuzz target with the feature on; the decoder step now builds the
command line too, which its filter named but never compiled.
BREAKING CHANGE: the default build no longer decodes v0.5-v0.7 frames;
enable the `legacy` feature to keep reading them. The C ABI no longer
exports ZSTD_copyCCtx and ZSTD_copyDCtx.
Part of #705
Upstream 1.6.0's own suites (tests/playTests.sh and every case of
tests/cli-tests the conformance script runs) pass against the command
line. What they required:
- --filelist keeps a CR before the newline as part of the name except on
native Windows, where CRLF ends a line.
- -f replaces a symbolic link standing at the output name with a regular
file, never writing through it; without -f such an output is refused.
- -l says "reached end of file with incomplete (skippable) frame" for an
empty file or a header cut short, and "seeked to position N, which is
beyond file size of M" for a skippable frame whose payload runs past
the end.
- --output-dir-flat refuses any two inputs that would share an output,
with or without --rm, before anything is written: each shared name,
then "no files were processed".
- -M bounds the decode window at any value, as ZSTD_DCtx_setMaxWindowSize
does upstream: a lower limit refuses the frames that pass it when they
are decoded instead of refusing the limit itself. A plain decode's
-D dictionary is weighed alone against it; benchmarks and training keep
their accounting. The value is a 32-bit field, so 4 GiB overflows, and
the numeric error lists the G suffixes.
- Training refuses more samples than an int count and a size_t length
table hold, with status 14, before any sample is read.
- Help text, the too-few-samples advice and the refusal of an output that
is an input take 1.6.0's wording; -vvV says the build is
non-deterministic (its frames are not libzstd's byte for byte) and
-vV lists legacy support when it is built in.
Part of #705
`frame_header_size`'s doc linked `LegacyVersion::header_size`, which
exists only with `legacy`; with the feature out of `default` the docs
build (RUSTDOCFLAGS=-D warnings) failed on the broken link. The method is
named without a link, and `legacy` joins the docs.rs feature set and the
CI rustdoc run that mirrors it, so the public docs keep the type; the
private-items run stays without it and covers the other configuration.
Part of #705
cltools/zstdless.sh exercises the reference's two-line zstdless script,
which this project does not ship, through the host's less, and expects
the exit status of an older less: less 710 exits 1 on a missing file, so
the case fails on such hosts with the reference binary as well. It
checks nothing this command decides.
Part of #705
The zstdless case runs again. Its bad-path step ran under set -e and so
asserted the exit status of less, which zstdless execs: less 668 exits 0
on a missing file, less 710 exits 1, with the reference binary too. The
conformance script lets that one step fail; the case still compares
stdout and stderr, including this command's "can't stat" message, and
the good-path steps keep set -e. The script stops if the step changes
shape upstream.
Part of #705
Bash 5.2 expands an unquoted & in a ${var/pat/rep} replacement to the
matched text, so the adjusted step's >&2 became a bad descriptor. Both
sides of the replacement are quoted now.
Part of #705
The ${var/pat/rep} replacement kept its inner quotes literally under the
bash 3.2 that macOS runs, turning the adjusted step into one quoted word
and failing with "command not found". The test is rewritten line by
line now, which behaves the same under bash 3.2 and 5.2.
Part of #705
- A set of dictionaries (`reset_with_dict_handles`,
`decode_all_with_dict_handles`, the C ABI's ZSTD_d_refMultipleDDicts)
gives a frame naming a nonzero ID that entry and fails with
DictNotProvided without one; a frame naming none or ID 0 takes the
entry of ID 0, or no dictionary. It took the last entry instead, so a
frame naming no dictionary decoded with an unrelated one (upstream
1.6.0 `ZSTD_DCtx_getFrameDDict`). One dictionary handed in alone
(`*_with_dict_handle`, the C ABI's loaded, single referenced and prefix
dictionaries) still applies to a frame naming none.
- The C ABI's raw-content decode dictionary has ID 0, as upstream's
raw-content DDict has, so it is the set entry such a frame takes.
- Turning ZSTD_d_refMultipleDDicts off drops the set, as upstream clears
its DDict set; its entries were still used.
- A skippable frame read through ZSTD_decompressStream spends a
referenced prefix, as upstream resolves the frame's dictionary before
telling a skippable header apart; the prefix outlived it.
- `-l`'s skippable-frame end is computed with the bound it relies on
asserted in debug builds; the `-D` check under `-M` and `--version`
get tests; the README feature table shows `legacy` off by default.
Regression tests: dict_set_takes_the_id_zero_entry_for_a_frame_naming_none,
single_ddict_decodes_a_frame_naming_no_dictionary,
disabling_multiple_ddicts_releases_the_set,
a_skippable_frame_spends_the_prefix,
a_decode_dictionary_fits_a_limit_covering_both_copies.
BREAKING CHANGE: reset_with_dict_handles and decode_all_with_dict_handles
no longer apply the last dictionary to a frame naming none; they take the
entry of ID 0, or decode without a dictionary, and a frame naming an ID the
set lacks fails with DictNotProvided instead of DictIdMismatch.
Part of #705
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
README.md: a "Wanted: an AMD Zen 5 benchmark host" subsection under Performance with the host requirements (Linux, user-space PMU counters, branch-stack sampling, exclusive use, remote access) and a link to open an issue.Testing
Documentation only; the README is embedded in the crate docs, so the rustdoc and doctest jobs cover it.
Closes #700
Summary by CodeRabbit