bpattarkine commented on issue #1431:
URL: https://github.com/apache/flink-agents/issues/1431#issuecomment-7354412587

   I ran a local benchmark to measure the processing-key change in #1503 and 
look for a serialization bottleneck worth investigating under #1431.
   
   The Java operator harness ran the repository's `MigrationTestAgent`, which 
reads and writes a per-key running total in short-term memory and emits a typed 
value. Each trial sent 16,384 records through one operator over 64 Long keys, 
in batches of 64. Every eighth batch took a synchronous harness checkpoint 
before draining in-flight work. Both builds used Flink 2.3.0, JDK 21.0.13.1, an 
Apple M3 Max, and generic types enabled. Each build had one warm-up trial and 
five measured trials. Throughput includes those checkpoints and JFR sampling 
overhead. Sizes are for the entire managed operator state handle, excluding 
keyed state.
   
   | Revision | Median records/sec (trial range) | Median of trial p50 
checkpoint times | Managed operator-state bytes/checkpoint | JFR Kryo stack 
samples |
   | --- | ---: | ---: | ---: | ---: |
   | `b3eb6ff0` (main) | 60,544 (48,532–65,797) | 945 µs | 928 | 1 / 82 |
   | `fb0dc556` (#1503) | 58,293 (49,617–62,287) | 948 µs | 914 | 4 / 81 |
   
   Raw throughput trials, in run order: main 48,532 / 57,828 / 60,544 / 65,797 
/ 65,113. PR 49,617 / 57,013 / 58,293 / 58,680 / 62,287. The corresponding 
checkpoint p50 values in microseconds were main 1,642 / 1,201 / 945 / 705 / 732 
and PR 1,579 / 1,054 / 948 / 774 / 784. A JFR sample counts as Kryo when a 
sampled stack contains a Kryo or Flink KryoSerializer frame. This includes 
activity outside processing-key state.
   
   The PR reduced managed operator-state size by 14 bytes per checkpoint in 
this fixture. Throughput ranges overlap, checkpoint medians are close, and the 
JFR sample counts are too small to estimate Kryo's CPU share reliably. This run 
establishes neither a throughput gain nor a case for a broad redesign. The 
harness omits PyFlink, durable stores, networked model and tool calls, and 
cluster checkpoint I/O. A longer cluster profile with Java and PyFlink 
workloads and durable replay is needed to establish where serialization matters.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to