Skip to content

Conversation

netudima
Copy link
Contributor

@netudima netudima commented Oct 8, 2025

  • Reduce contention by replacing of CAS loop in MemtablePool.SubPool#tryAllocate with allocatedUpdater.addAndGet(this, size)
  • Reduce contention by switching MemtableAllocator.SubAllocator#owns from updates via AtomicLongFieldUpdater to LongAdder usage
  • Estimate memory required to allocate for applying a partition update into a memtable and allocate this memory in one shot, then use it as a request-local SLAB

Patch by Dmitry Konstantinov; reviewed by TBD for CASSANDRA-20226

…yAllocate with allocatedUpdater.addAndGet(this, size)

Patch by Dmitry Konstantinov; reviewed by TBD for CASSANDRA-20226
…om updates via AtomicLongFieldUpdater to LongAdder usage.

MemtableAllocator.SubAllocator#acquired(..) method updates "owns" value but does not use the updated result.

Patch by Dmitry Konstantinov; reviewed by TBD for CASSANDRA-20226
…into a memtable and allocate this memory in one shot, then use it as a request-local SLAB

Patch by Dmitry Konstantinov; reviewed by TBD for CASSANDRA-20226
@netudima netudima force-pushed the CASSANDRA-20226-trunk branch from a6953c3 to 3412a51 Compare October 10, 2025 15:13
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.

1 participant