Skip to content

Add eviction metrics in binary allocator#14432

Merged
OneSizeFitsQuorum merged 3 commits intoapache:masterfrom
MrQuansy:eviction_metric
Dec 17, 2024
Merged

Add eviction metrics in binary allocator#14432
OneSizeFitsQuorum merged 3 commits intoapache:masterfrom
MrQuansy:eviction_metric

Conversation

@MrQuansy
Copy link
Copy Markdown
Contributor

Description

This PR introduces new metrics to track memory eviction statistics in the Binary Allocator component. The allocator implements two distinct eviction strategies:

Sample-based eviction: Periodically samples memory regions to identify eviction candidates
GC-based eviction: Leverages garbage collection cycles to reclaim unused memory

The primary enhancement is the addition of metrics that monitor the cumulative size of evicted memory through both strategies. These metrics provide visibility into the allocator's memory reclamation behavior and efficiency.

Signed-off-by: OneSizeFitQuorum <tanxinyu@apache.org>
@OneSizeFitsQuorum OneSizeFitsQuorum merged commit b5fe66e into apache:master Dec 17, 2024
MrQuansy added a commit to MrQuansy/iotdb that referenced this pull request Dec 17, 2024
* add eviction metrics

* fix

* fix overflow

Signed-off-by: OneSizeFitQuorum <tanxinyu@apache.org>

---------

Signed-off-by: OneSizeFitQuorum <tanxinyu@apache.org>
Co-authored-by: OneSizeFitQuorum <tanxinyu@apache.org>
@OneSizeFitsQuorum OneSizeFitsQuorum deleted the eviction_metric branch December 17, 2024 07:48
OneSizeFitsQuorum added a commit that referenced this pull request Dec 17, 2024
* add eviction metrics

* fix

* fix overflow

---------

Signed-off-by: OneSizeFitQuorum <tanxinyu@apache.org>
Co-authored-by: OneSizeFitQuorum <tanxinyu@apache.org>
Caideyipi pushed a commit to Caideyipi/iotdb that referenced this pull request Mar 25, 2026
* add eviction metrics

* fix

* fix overflow

---------

Signed-off-by: OneSizeFitQuorum <tanxinyu@apache.org>
Co-authored-by: OneSizeFitQuorum <tanxinyu@apache.org>
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.

2 participants