Repository navigation
Conversation
aa7c9f7 to
3432de3
Compare
3432de3 to
b92be1e
Compare
a0ad4de to
c85098d
Compare
1b73029 to
5d43ac9
Compare
|
@zakr600 Can you please explain a usecase or a real architecture you have implemented using this concept? Server side shared memory with trusted/untrusted UDFs is a security risk. |
This can be useful for transferring large amounts of data. This implementation reduces the overhead of data transfer. |
|
Workflow [PR], commit [e8526db] Summary: ❌
|
5d43ac9 to
cc0d43a
Compare
cc0d43a to
e7a0e90
Compare
|
📊 Cloud Performance Report 🟢 AI verdict: This PR adds a shared-memory transport for executable UDFs and hardens BorrowedObjectPool. It also touches memory-worker accounting, docs and benchmark scripts, but none of these changes reach the scan, string-search or aggregation code that ClickBench and TPC-H run. ClickBench Q20 shows a large, work-backed improvement (-41.4%, with CPU time roughly halved). That result is locked by the trust rule, but nothing in this diff explains it, so the likely cause is a difference between the branch's merge base and the master baseline rather than this change. Q13 (+10.2%) was correctly suppressed: it is within master's current range, the PR runs were noisier than base, and the PR's ClickBench and TPC-H runs shared a node. The suppression matches both the diff and the data. clickbench🟢 1 improved · Flagged queries (2 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
e7a0e90 to
0c28d06
Compare
0c28d06 to
f2d85bf
Compare
Conflict resolution: - `ShellCommand`: adopt master's construction of the `ShellCommand` object before `vfork` (with `pid` assigned afterwards and the destructor returning early while it is `-1`), replacing this branch's kill-and-reap of the child when the constructor throws after `vfork`. The pid is assigned only after `checkChildSetupReport`, which reaps a child that failed to start. - `ShellCommandSource`: keep this branch's `BorrowedShellCommandHolder`, which already returns the pool slot on every path (master's fix for leaked `executable_pool` slots), and keep master's `LockMemoryExceptionInThread` in `cleanup`.
The `ShellCommand` object is now constructed before `vfork`, so its constructor can no longer throw with an orphaned child. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add an opt-in shared-memory transport for executable user-defined functions. The new mode reuses pooled regions across invocations, grows them on demand, and validates region integrity so a misbehaving command fails its own query instead of poisoning the pool.
Workflow [PR]
Sync PR [sync-upstream/pr/117704]