Skip to content

Relax memory constraint on independent counters - #275

Merged
zhengyu123 merged 6 commits into
mainfrom
zgu/relaxing_counters
Sep 19, 2025
Merged

Relax memory constraint on independent counters#275
zhengyu123 merged 6 commits into
mainfrom
zgu/relaxing_counters

Conversation

@zhengyu123

@zhengyu123zhengyu123 commented Sep 15, 2025

Copy link
Copy Markdown
Contributor

What does this PR do?:
Relax memory constraints on independent counters.

Motivation:
Independent counter only requires atomic guarantee, stronger memory constraints can result unnecessary performance degradation.

Additional Notes:

How to test the change?:

  • Regular unit tests
  • Stress tests
  • Benchmarks

For Datadog employees:

  • If this PR touches code that signs or publishes builds or packages, or handles
    credentials of any kind, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.
  • JIRA: PROF-12559

Unsure? Have a question? Request a review!

@pr-commenter

pr-commenterBot commented Sep 15, 2025

Copy link
Copy Markdown

Benchmarks [x86_64 cpu]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
allocoffoff
cpuonon
iterations55
java"11.0.28""11.0.28"
memleakoffoff
modescpucpu
walloffoff

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 15 metrics, 23 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 15, 2025

Copy link
Copy Markdown

Benchmarks [x86_64 alloc]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
alloconon
cpuoffoff
iterations55
java"11.0.28""11.0.28"
memleakoffoff
modesallocalloc
walloffoff

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 15 metrics, 23 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 15, 2025

Copy link
Copy Markdown

Benchmarks [x86_64 memleak,alloc]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
alloconon
cpuoffoff
iterations55
java"11.0.28""11.0.28"
memleakonon
modesmemleak,allocmemleak,alloc
walloffoff

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 15 metrics, 23 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 15, 2025

Copy link
Copy Markdown

Benchmarks [aarch64 alloc]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
alloconon
cpuoffoff
iterations55
java"11.0.28""11.0.28"
memleakoffoff
modesallocalloc
walloffoff

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 17 metrics, 21 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 15, 2025

Copy link
Copy Markdown

Benchmarks [x86_64 cpu,wall]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
allocoffoff
cpuonon
iterations55
java"11.0.28""11.0.28"
memleakoffoff
modescpu,wallcpu,wall
wallonon

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 16 metrics, 22 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 15, 2025

Copy link
Copy Markdown

Benchmarks [aarch64 wall]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
allocoffoff
cpuoffoff
iterations55
java"11.0.28""11.0.28"
memleakoffoff
modeswallwall
wallonon

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 17 metrics, 21 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 15, 2025

Copy link
Copy Markdown

Benchmarks [aarch64 memleak]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
allocoffoff
cpuoffoff
iterations55
java"11.0.28""11.0.28"
memleakonon
modesmemleakmemleak
walloffoff

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 17 metrics, 21 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 15, 2025

Copy link
Copy Markdown

Benchmarks [aarch64 cpu,wall]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
allocoffoff
cpuonon
iterations55
java"11.0.28""11.0.28"
memleakoffoff
modescpu,wallcpu,wall
wallonon

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 16 metrics, 22 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 16, 2025

Copy link
Copy Markdown

Benchmarks [x86_64 wall]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
allocoffoff
cpuoffoff
iterations55
java"11.0.28""11.0.28"
memleakoffoff
modeswallwall
wallonon

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 16 metrics, 22 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 16, 2025

Copy link
Copy Markdown

Benchmarks [x86_64 memleak]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
allocoffoff
cpuoffoff
iterations55
java"11.0.28""11.0.28"
memleakonon
modesmemleakmemleak
walloffoff

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 14 metrics, 24 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 16, 2025

Copy link
Copy Markdown

Benchmarks [aarch64 memleak,alloc]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
alloconon
cpuoffoff
iterations55
java"11.0.28""11.0.28"
memleakonon
modesmemleak,allocmemleak,alloc
walloffoff

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 17 metrics, 21 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 16, 2025

Copy link
Copy Markdown

Benchmarks [x86_64 cpu,wall,alloc,memleak]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
alloconon
cpuonon
iterations55
java"11.0.28""11.0.28"
memleakonon
modescpu,wall,alloc,memleakcpu,wall,alloc,memleak
wallonon

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 15 metrics, 23 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 16, 2025

Copy link
Copy Markdown

Benchmarks [aarch64 cpu]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
allocoffoff
cpuonon
iterations55
java"11.0.28""11.0.28"
memleakoffoff
modescpucpu
walloffoff

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 18 metrics, 20 unstable metrics.

@pr-commenter

pr-commenterBot commented Sep 16, 2025

Copy link
Copy Markdown

Benchmarks [aarch64 cpu,wall,alloc,memleak]

Parameters

BaselineCandidate
configbaselinecandidate
ddprof1.31.01.32.0-zgu_relaxing_counters-SNAPSHOT
See matching parameters
BaselineCandidate
alloconon
cpuonon
iterations55
java"11.0.28""11.0.28"
memleakonon
modescpu,wall,alloc,memleakcpu,wall,alloc,memleak
wallonon

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 17 metrics, 21 unstable metrics.

@zhengyu123zhengyu123 changed the title Relax memory constraint on counterRelax memory constraint on countersSep 17, 2025
@zhengyu123zhengyu123 changed the title Relax memory constraint on countersRelax memory constraint on independent countersSep 17, 2025
@zhengyu123
zhengyu123 marked this pull request as ready for review September 17, 2025 16:45
@jbachorik

Copy link
Copy Markdown
Collaborator

What would be the definition of Independent counter ?

@zhengyu123

Copy link
Copy Markdown
ContributorAuthor

What would be the definition of Independent counter ?

It means that no memory access depends on the counter value.

@zhengyu123
zhengyu123 merged commit 7de6b47 into mainSep 19, 2025
183 of 184 checks passed
@zhengyu123
zhengyu123 deleted the zgu/relaxing_counters branch September 19, 2025 12:30
@github-actionsgithub-actionsBot added this to the 1.32.0 milestone Sep 19, 2025
Sign up for freeto 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.

2 participants

@zhengyu123@jbachorik