You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dmitry Konstantinov (Jira)" <ji...@apache.org> on 2026/05/23 15:41:00 UTC
[jira] [Updated] (CASSANDRA-21400) Replace LongAdder in metric-like logic with ThreadLocalCounter
[ https://issues.apache.org/jira/browse/CASSANDRA-21400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitry Konstantinov updated CASSANDRA-21400:
--------------------------------------------
Change Category: Performance
Complexity: Low Hanging Fruit
Component/s: Observability/Metrics
Status: Open (was: Triage Needed)
> Replace LongAdder in metric-like logic with ThreadLocalCounter
> --------------------------------------------------------------
>
> Key: CASSANDRA-21400
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21400
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Observability/Metrics
> Reporter: Dmitry Konstantinov
> Assignee: Dmitry Konstantinov
> Priority: Normal
> Attachments: image-2026-05-23-16-36-52-381.png
>
>
> There are several places where we use LongAdder for metric purposes, it is 0.9% CPU usage in total.
> We can replace it with ThreadLocalCounter to reduce overheads.
> Places:
> * org.apache.cassandra.io.sstable.keycache.KeyCache (hits and requests counters)
> * org.apache.cassandra.io.sstable.filter.BloomFilterTracker
> * org.apache.cassandra.utils.memory.BufferPool#memoryInUse
> * org.apache.cassandra.transport.ServerConnection#requests (used by Dispatcher on every request)
> !image-2026-05-23-16-36-52-381.png|width=600!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org