xiangfu0 commented on PR #20344: URL: https://github.com/apache/pinot/pull/20344#issuecomment-7085853945
### Server CPU with broadcast join fusion on real S3 At `ede33d157d`, enabling `fuseBroadcastJoins` reduced Pinot server CPU per 1,000 correct queries by **31.25% with a verified S3 read on every query** and **22.14% with warm index pages**. Both settings met the same end-to-end P90 target of 1,000 ms at matched achieved QPS. Values below are fusion off → on. | Index state | Correct queries per setting | Achieved QPS | P90 (ms) | Server CPU-seconds per 1,000 correct queries | |---|---:|---:|---:|---:| | Cold before each query | 128 | 1.000 → 1.000 | 301.03 → 291.58 | 230.00 → 158.13 | | Warm throughout | 11,520 | 63.978 → 63.971 | 46.84 → 47.54 | 172.78 → 134.53 | The query joined 524,288 fact rows to two broadcast dimensions. Fusion removed an intermediate mailbox send that carried 524,288 rows and 3,337,620 serialized bytes in the unfused trace. Server CPU fell in all four paired runs in each regime. Warm P90 rose by 0.70 ms even as total CPU fell. The counters establish which exchange disappeared. They do not isolate the cause of that small latency difference. Both settings reused the same two EC2 `m7i.2xlarge` Pinot servers. The broker, controller and load generator shared a separate `m7i.xlarge` in the same availability zone. Modeled fixed infrastructure cost was $1.0631/hour for either setting, before S3 charges. CPU is the sum of user and system time for the two server JVMs through the last response. The metric excludes the broker. Separate storage-reader CPU was 88.05 → 87.34 CPU-seconds per 1,000 cold queries. Query-result caching was off. All 23,296 scored responses matched the expected counts and sums in all 128 groups. The native Pinot indexes occupied 2,300,120 bytes and were served by a read-only, benchmark-specific adapter backed by signed Amazon S3 range requests. Every cold query issued 34 GETs for exactly those bytes. Both warm settings issued zero GETs while measured. The cold rate was limited by how quickly the driver could evict and verify the pages before the next query. These are measurements for one join shape at two matched loads. Maximum throughput and Iceberg/Parquet performance remain separate questions. [Measurements, per-request samples, executed plans and reproduction instructions](https://github.com/xiangfu0/pinot/tree/676316b7f37957ec1bcc995f991dcb24c071b840/pinot-perf/experiments/broadcast-join-evaluation/real-s3) -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
