Repository navigation
Call the footprint estimate allocator accounting, not RSS - #973
Merged
Merged
Conversation
Contributor
Scan-Build Report
Bug Summary
Filter Results by FileReports
|
|||||||||||||||||||||||||||||||||||||||||||||||||
jbachorik
force-pushed
the
a3-estimator-wording
branch
from
November 10, 2026 20:52
cc37a6a to
454e733
Compare
jbachorik
force-pushed
the
a2-paired-estimator
branch
from
November 10, 2026 21:00
70bdc1c to
454e733
Compare
Contributor
CI Test ResultsRun: #42899567272 | Commit:
Status Overview
Legend: ✅ passed | ❌ failed | ⚪ skipped | 🚫 cancelled Summary: Total: 32 | Passed: 32 | Failed: 0 Updated: 2026-11-10 21:16:19 UTC |
❌ ErrorsYour PR has failed checks. Please review the issues below and take necessary action before merging. 🚦 5 Pipeline jobs failed
Useful? React with 👍 / 👎 This comment will be updated automatically if new data arrives.🔗 Commit SHA: 454e733 | Docs | View more details | Give us feedback! |
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.
Summary
Correct wording that equates the per-object allocation estimate with resident memory. Tracker: PROF-16568. Stacked on #972. Wording only — no behavior change.
The
MallocFootprint/NativeMemcomments call the per-object estimate the "real resident cost" and "what RSS actually pays". That is refuted by measurement: with the same estimate, measured residency differs by 2× at 8192 B between glibc and musl — the estimate is allocator accounting (usable size plus the probed header), blind to occupancy. Anyone reading those comments as an RSS budget will be wrong by factors.What changed
mallocFootprint.h: class andoverheadOfcomments now describe per-object allocator accounting.nativeMem.h:_overheadandrecordAlloccomments likewise.ProfilerMemoryRequirements.md,ProfilingEngines.md: one sentence each describingchunk_overhead(native_mem_chunk_overhead_bytes.) the same way.mallocArenaStats_ut.cpp(InterleavedSurvivorsStrandFreeChunksBeyondTrim): the comment, the[TRIM]printf and theEXPECT_GTmessage no longer claimmalloc_trim"reclaims" memory —mallinfo2().fordblksis free-held accounting and cannot see anmadviserelease. The assertion conditions are byte-identical.Not changed
No computation, counter name (
native_mem_chunk_overhead_bytes.), or assertion condition. The gtest was verified green in a glibc container on this candidate (gtestDebug_mallocArenaStats_ut, 3/3 passed, reworded printf visible).spotlessCheck+qualityChecksgreen; agentic review (sphinx, quick) clean — 0 findings across all 8 regions.