Hi Yuan, Thank you for the suggestion to run NexMark. I ran it using two builds of 2.4, one with and one without the changes in question. This was run on two identical machines. Ran NexMark in its default setup (8 TMs, parallelism 8, RocksDB backend, etc). I used q1 and q15 as control queries since the changes in question should not affect them.
The results for my runs where the change had caused a slowdown are as follows: q20: slowdown of about 5% (between 4.3% and 6.5%) q20 with changelog on saw a slowdown of about 1.5% q9: about 3% (2.6% - 3.9%) q4: about 2% (1.6% - 2.7%) Since q20 shows the largest slowdown, I ran it once per build with a profiler attached to measure CPU time and memory allocation per record, and countered the iterators opened per record, which showed that the slowdown comes from per-iterator overhead. In terms of real world workload performance, we haven't noticed the slowdown and have actually seen performance benefits that the original changes were intended to address. Aleskandr's benchmarking of the performance increase of the change when tombstones are involved is significant [0] with checking a cleared map is empty being 1844x faster and timer service start up being 20-297x faster. Since NexMark starts with an empty state and deletes very little, it seems like it only shows the cost and not the benefits. Kind regards, Mika ---- [0]: https://issues.apache.org/jira/browse/FLINK-41519?focusedId=18149441&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-18149441 > On 26. Nov 2026, at 04:06, Yuan Mei <[email protected]> wrote: > > The regression looks small, but the per-call overhead warrants closer > scrutiny, as these costs could add up and be amplified in production. > > It would also be helpful to run NexMark and test this on real-world jobs to > assess the impact on actual workloads. Until we have those results, I’d be > cautious about including this change in an official release. > > Best > Yuan > > On Wed, Nov 25, 2026 at 9:07 PM Mika Naylor via private > <[email protected] <mailto:[email protected]>> wrote: >> Hi all, >> >> The 2.4 release team need some guidance for PMC members familiar with the >> area around RocksDB performance. As this thread[0] in the dev mailing list >> explains, we encountered some regressions in RocksDB performance caused by a >> change that could potentially be in 2.4.0. We would need PMC members >> familiar with this to confirm whether this regression is acceptable in Flink >> 2.4.0 (I believe Aleksandr is working on a fix, both to address this and to >> add more benchmarks to capture the performance improvement of the change >> itself around tombstones). If this regression isn't acceptable, we would >> need some guidance on what the next steps should be. >> >> Thank you! >> Mika >> >> [0]: https://lists.apache.org/thread.html/3do2xbhrho5xyt3m3fxdk1p4nwgdss5s
