Repository navigation
Align TCP scheduling, diagnostics and metrics with TENT v0.3.14 - #151
Merged
Merged
Conversation
feichai0017
marked this pull request as ready for review
November 4, 2026 06:26
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
R1d implements the six remaining Port rows in the v0.3.14 delta. Together with #149 (six RDMA rows) and #150 (seven storage and CUDA rows), all 19 have source implementations and regression controls.
MC_DISABLE_GPU_DIRECT_RDMAandMC_LOG_RDMA_SLICE_AFFINITY. Both accept case-insensitive true/false, yes/no, on/off and 1/0. Invalid inputs preserve the typed value. Slice logs contain NIC names and length.tent diagnostics version [--json]. The CLI, Rust diagnostics API and native header share the schema, renderer and build metadata. The CLI uses the standard argument iterator and the existing serde_json dependency. Free-text redaction uses regex-lite. Linked C and C++ clients exercise version, output failure, invalid input, redaction and snapshot exit status. The install gate compares the actual archive commit and CLI output in an isolated target directory and traces the CLI for socket or worker syscalls.Upstream test correspondence
HighPerformanceTcpTransportTest.LaneLoadReturnsToZeroOnRejectedSubmitsrejected_hp_submissions_leave_no_lane_loadchecks byte admission, a later invalid range and a completed transfer.least_loaded_lane_bypasses_a_delayed_ack_and_releases_after_completionholds the rotating choice busy while a second lane completes a READ and the next WRITE.HighPerformanceTcpLaneDistributionTest.InterleavedPeersUseEveryConfiguredLaneperiodic_fanout_rotates_lanes_independently_per_peerandstatic_ipv4_pairing_balances_uneven_reads_rotates_small_requests_and_never_stripes_writesTcpTransportCapabilityTest.CpuPlatformCanSelectPeerGpucpu_platform_can_select_peer_gpucovers all five local/remote/export cases.peer_gpu_tcp_stages_both_directions_for_a_host_requesterexercises the CPU-only child, plus the shim source’s CUDA copy and guard checks.LegacyBoolEnvAcceptsNumericValues,LegacyRdmaSliceAffinityLogEnvLoadsIntoTentConfiglegacy_bool_env_accepts_numeric_values_at_rdma_installchecks all spellings, invalid fallback, and two child environments with opposite switches through the real install entry point.PrometheusMetricFamilyContract,JsonEndpointValid,HealthEndpointOkprometheus_metric_family_contractchecks all 34 frozen families.exporter_health_survives_pause_and_failed_serialization,real_tcp_merged_owner_exposes_one_transfer_and_scrapes_both_formats, the existing histogram controls, andtests/metrics/scrape.pywith the reference Prometheus parserSelfMetricsRemainVisibleWhenRuntimeDisabled,FailedSerializationIsVisibleOnTheNextSuccessfulScrapeexporter_health_survives_pause_and_failed_serializationchecks HTTP 500, each format's attempt/failure/freshness, recovery, health and construction-time disableTentMetricsHttpServer.DegradesToLogOnlyWhenConfiguredPortBusy, bothDisabledAtCompileTimecontrolsbusy_port_degrades_to_log_only_and_drop_joins_bounded_http_workersverifies startup failure and rebind. The installed default CLI reports metrics compiled out. The feature matrix and S10 benchmark exercise the three build/runtime modes.CompletedTransferRecordsBytesAndLatency,RecoveredFailoverRecordsDistinctAttemptsreal_tcp_merged_owner_exposes_one_transfer_and_scrapes_both_formats,metrics_attribute_each_retry_and_one_merged_outcome_to_the_real_transportand the guarded multi-chunk staging controlrequester_reuses_bounded_slots_at_negotiated_chunk_size_including_tailsAccountingPairsSurviveRuntimeEnableToggle,AccountingUsesBoundedTerminalOutcomes,InflightGaugeSurvivesEnableTogglepairs_follow_the_start_and_only_emit_bounded_outcomes,gauges_survive_toggles_failures_keep_the_first_stage_and_quarantine_counts_once, and the allocation-counted recording pathAllocateSubBatchFailureSettlesRequestAndDoesNotBlockBatch,CanceledUnroutableRequestRemainsCanceledAcrossPollsrejected_preflight_records_no_start_and_a_failed_prefix_settles_its_suffixchecks that boundary and accepted skipped work.queued_cancellation_timeout_and_oversize_have_no_io_and_partial_cancel_keeps_prefixchecks reuse after rejection, repeated cancel observation, two public outcomes and no transport starts.cli_test.py(all 11 argument cases)packaged_cli_contract_and_compiled_feature_flagschecks stdout/stderr, usage and exit codes, plus the installed default binary and native callers on both toolchains.DiagnosticSchemaTest(2),DiagnosticRendererTest(2),DiagnosticExitCodeTest(2),DiagnosticVersionTest(1)version_schema_renderers_and_exit_precedencecovers the stable schema/outcome strings, unavailable evidence, text/JSON check facts, non-pass evidence, warning rules, collector/internal precedence and offline features.DiagnosticRedactionTest(8)secret_fields_and_text_are_redacted_in_every_modeandstrict_pseudonyms_match_fields_whole_words_and_address_shapescover field and text secrets, per-snapshot identifiers, word boundaries, IPv4/IPv6/GID/MAC/GUID, lookalikes and non-strict deployment strings.S10 benchmark comparison
Linux 6.12.76 arm64, 12 vCPUs, Rust 1.99.1, release, real loopback, guarded single-operation READ/WRITE. Each cell is the median of nine trials in µs, before → after, using the same runner and
python3 tests/metrics/benchmark.pyat base and on the R1d implementation. One operation at a time measures local overhead. The delayed-ACK test exercises lane imbalance independently.Handoff
4f02d16fae65ad5921a8848d536e9a54556f494f, based on4608f1ab36ca724e1f4d42aa052811b3bbf34450. Scope B01/B02, F01, F12, F14, F17 and F20. Status Implemented.e1ea5d31bb5e46ff2df9f90e7c2fbaf52fcdee8c. Followedtent/src/transport/{hp_tcp/hp_tcp_transport,tcp/tcp_transport,rdma/rdma_transport,rdma/workers}.cpp,src/common/config.cpp,src/metrics/tent_metrics.cpp,include/tent/metrics/{cached_metric,tent_metrics}.h,src/runtime/transfer_engine_impl.cpp,cli/main.cpp,src/diagnostics/diagnostic.cppandinclude/tent/diagnostics/diagnostic.h.cargo fmt --check, locked check, Clippy with--all-targets -- -D warnings, test, publish dry-run, CPU traces and the installed consumer controls. The R1d job repeated all 12 controls 50/50 with four x86 Linux test threads, including the separate CPU-only requester. CI matrix · R1d stability jobtests/cli_test.py(11/11 per toolchain).stracesaw no networking or worker creation on the version path. C and C++ consumers linked the packaged header and produced the same JSON as the binary. The gate uses a fresh target for each same-version extraction because Cargo's normalized archive timestamps can otherwise leave an older binary in a shared target directory.python3 tests/hardware/build_installed.py --consumer peer-gpu-source --output "$ART/source"andpython3 tests/hardware/build_installed.py --consumer peer-gpu-requester --output "$ART/requester", then runpython3 "$ART/source/peer_gpu_tcp_run.py" --source "$ART/source/installed/bin/orbitte-peer-gpu-source" --requester "$ART/requester/installed/bin/orbitte-peer-gpu-requester" --gpu "$GPU_UUID". Physical GPU TCP and multi-rail performance remain unqualified. S17 owns general configuration loading.