Repository navigation
Open
Description
This issue tracks which findings from the Presto GPU cloud spike should land in KvikIO and curl. The resulting PRs will benefit remote I/O performance in general and improve TPC-H benchmarks for both Polars and Presto GPU.
Upstream PRs/branches
Velox
- https://github.com/kingcrimsontianyu/velox/tree/wxd-upstream. This branch depends on:
- feat(cache): Add CacheEntrySizePolicy to reuse shorter cache entries as prefixes facebookincubator/velox#19126
- feat(cudf): Serve KvikIO reads through AsyncDataCache facebookincubator/velox#18941
- feat(ucx-exchange): Register the UCX transport and enable its build facebookincubator/velox#18695 by Daniel from IBM
Presto
- feat(scheduler): Add deterministic bounded cache-affinity placement prestodb/presto#28622. This PR depends on:
Velox-testing
Results
TPC-H SF1K (tpch_sf1k_v2_float_s3), g7e.48xlarge, 8x RTX PRO 6000, one worker per GPU,
fresh cluster, 3 iterations, no warmup. Seconds.
it1 = sum over Q1-Q22 of iteration 1
hot = sum over Q1-Q22 of min(iterations 2..3)
Kyle ref, Kyle ref 2 : Kyle Hubert's WXD-launch matrix runs (KvikIO cases)
WXD-launch : Kyle's images (worker 6c657690bd6b, coordinator 6917e7f28626) and harness
(velox-testing d8f6a61); KvikIO direct receive REQUIRE, PER_CHUNK dispatch
wxd-upstream : images tialiu-wxdup-1016 built from the wxd-upstream branches
(Velox 4b2b5e092, Presto 563e7787ee, velox-testing 99a1e35), run right after
WXD-launch; UCX 1.22.0, UCX exchange, SHARED_QUEUE dispatch,
run_tpch_g7e_48xlarge.sh
Date = start of the run, UTC
Kyle ref Kyle ref 2 WXD-launch wxd-upstream
Date (UTC) 2026-09-22 2026-10-05 2026-10-16 2026-10-16
01:30 23:41 15:08 15:20
Cache ON, cold it1 56.580 67.007 63.722 69.628
hot 21.371 21.246 21.230 21.667
Cache ON, lukewarm it1 36.062 41.494 39.462 40.145
hot 21.352 21.431 21.408 21.622
Cache OFF it1 60.208 64.722 64.689 59.156
hot 55.596 56.399 57.538 52.196
KvikIO
Features to upstream
- Adjustable receive buffer size. Remote I/O egress controls and retryable transport failures #1052 adds a new KvikIO knob
KVIKIO_REMOTE_IO_BUFFER_SIZE. - Non-temporal copy. Remote I/O egress controls and retryable transport failures #1052. The initial implementation was non-portable and did not actually take effect due to lack of proper compile options. This has been fixed in the
HEADof this PR. A new KvikIO knobKVIKIO_REMOTE_IO_NONTEMPORAL_COPYhas been added. - Data discard for benchmarking purpose. Remote I/O egress controls and retryable transport failures #1052 adds a new KvikIO knob
KVIKIO_REMOTE_IO_DISCARD_DATA. - Retry transport-level failures. Remote I/O egress controls and retryable transport failures #1052 adds 6 more retry candidates
CURLE_COULDNT_RESOLVE_HOSTCURLE_COULDNT_CONNECTCURLE_RECV_ERRORCURLE_SEND_ERRORCURLE_PARTIAL_FILECURLE_GOT_NOTHING
- Direct receive for
MULTI_POLLbackend. libcurl receives straight into the caller's buffer, with strict RX kTLS over HTTPS. Needs the curl changes described below. - Share DNS cache. Share DNS caches among easy handles to prevent DNS storm #1051
- New SHARED_QUEUE dispatch option for multi-poll backend.
- Nsys plugin for NIC bandwidth measurement Develop an Nsight System plugin to profile network bandwidth #999
- [Tracking] Batched remote read API #1074
- MULTI_POLL as default backend. Make MULTI_POLL the default remote I/O backend #1104
Features in need of evaluation
- Refreshable EC2 instance-profile credentials via IMDSv2.
- S3 endpoint fixes: prefer
AWS_REGION, accepts3://inS3PublicEndpoint, send the session token for any key. - Device I/O failure safety: fence and quarantine buffers on CUDA errors.
-
cuda_memcpy_batch_asyncfixes: legacy default stream, missing-symbol fallback, zero-size entries. - Hide bundled libcurl symbols in static builds
- Adaptive TCP MSS, preferring jumbo-frame paths.
- Connection pool pre-warming before the first read (velox-testing#406).
Features to drop
- DNS shuffle
- kTLS options.
- New performance bug in libcurl CA store caching. With curl >= 8.21, every TLS connection re-parses the CA bundle, degrading performance. Fix: Build the bundled libcurl without default CA paths to keep the CA store cached #1080. This PR has been reverted by Revert "Build the bundled libcurl without default CA paths to keep the CA store cached" #1081.
curl
- Curl CA store cache disabling issue: Since 8.21.0 (commit 5df33efa),
CURLOPT_CAPATH=NULLrestores the build-time CA directory instead of disabling it, which turns off the CA store cache. This contradicts the documentation, and causes performance regression (lower bandwidth for small read size and longer TLS time).- Benchmark result and workaround: Update cURL pin #1083 (comment)
- Fix (done by curl dev): Revert 'setopt: claer the "custom" CA booleans when set to NULL' curl/curl#23202
- Propose caller-owned receive buffers and strict TLS 1.3 RX kTLS. Required by KvikIO direct receive.
- Propose the connection-reuse callback (
CURLOPT_CONN_REUSEFUNCTION), only if adaptive MSS proves useful.
Outside the scope of KvikIO
- ENA large RX page driver patch (velox-testing#406): out-of-tree kernel module.
- Jumbo-MTU path to S3 via a regional S3 gateway endpoint, and NIC/IRQ/NUMA pinning.
Velox
- feat(cache): Add CacheEntrySizePolicy to reuse shorter cache entries as prefixes facebookincubator/velox#19126
- feat(cudf): Serve KvikIO reads through AsyncDataCache facebookincubator/velox#18941
Velox-testing
Reference branches and PRs
KvikIO
- Remote I/O egress controls and retryable transport failures #1052: remote I/O egress controls and retries
- https://github.com/kjmph/kvikio/tree/research/s3_perf
curl
velox-testing
- Add an S3-to-GPU kTLS reference implementation velox-testing#406: S3 kTLS-to-CUDA reference implementation
- https://github.com/kjmph/velox-testing/tree/WXD-launch
sirius
Metadata
Metadata
Assignees
Labels
No labels
Activity