parthchandra commented on PR #7696: URL: https://github.com/apache/datafusion-comet/pull/7696#issuecomment-7147484232
@sunchao Thanks. I made the config opt-in, and here are paired Spark stage timings, flag off vs on (sort stage median, alternating runs in one application): | Workload | Spill | Runs | Sort stage (s) | Change | | --- | --- | --- | --- | --- | | #5686's case: 1 M rows, 128 x 128 | none | 5 | 1.30 -> 1.22 | none measurable | | 40 M wide rows, 2000 x 400: past the gate, in memory | none | 5 | 16.51 -> 19.09 | +16% | | 80 M wide rows, 4000 x 100, ~200-row blocks, 512m | ~4.6 GB | 9 | 15.85 -> 14.84 | -6% (5 of 9 pairs faster) | | 40 M wide rows, 8000 x 100, ~50-row blocks, 256m | ~2.3 GB | 7 | 24.96 -> 22.81 | -9% (6 of 7 pairs faster) | Below the gate there's no measurable cost. Past the gate, a single-key sort that stays in memory pays for the extra copy, since DataFusion combines its runs anyway. That's another reason to keep this opt-in until something like apache/datafusion#26931 lands. With spilling, the gain grows as blocks shrink. The failed tasks in the spilling runs were `ExternalSorterMerge` allocation failures under the small pools, with the flag off and on alike. -- 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]
