Skip to content

Bump silk to the latest clickhouse-public - #113796

Merged
mstetsyuk merged 1 commit into
masterfrom
robot/bump-silk
Aug 12, 2026
Merged

mstetsyuk merged 1 commit into
masterfrom
robot/bump-silk

Conversation

@clickhouse-gh

@clickhouse-gh clickhouse-gh Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Automated bump of contrib/silk from 52d2039c428 to 78aab9d603d, the tip of clickhouse-public in ClickHouse/silk.

Changes in silk (compare):

78aab9d Remove all submodules from contrib
c095ed0 Revert "Migrate to bundled fcontext code"
fe1144b Revert "Migrate to bundled cxxopts library"
f561e7c Rebuild `clickhouse-public` automatically after `main` passes
ea5b51e pageSize should be retrieved via ::sysconf(_SC_PAGESIZE), not compiled into the binary
47057a9 Force migrate fibers under sanitizers
6c1e8f2 Add mmap accounting hooks
3e5eb01 Fix fiber-list RUNNING detection on aarch64
b7d0594 Install gdb in runner images (#113)
8f517ec Add waitCycles to waitForMultiple and waitWithTimeout
21b21aa Isolate the blocking-queue futexes on their own cache lines
c24c9c5 Move values through BoundedQueue slots
3dd82b7 Add FiberSequencer::reset
10a9c99 Patch vendored Poco Format.cpp to resolve std::format ambiguity
c879caa Remove nodiscard requirement from FiberSequencer::advance
2d33bc9 Cut the sequencer litmus iteration count under TSan
e9f2261 Add a benchmark for injection from a reserved core
dcdf454 Test the scheduler active CPU set
50fcb5b Restrict the scheduler to an active CPU set
d041773 Size per-CPU state by the configured processor count
55d697e Add claude.md

This pull request self-updates until it is merged.

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Version info

  • Merged into: 26.8.1.1277 (included in 26.8 and later)

@clickhouse-gh

clickhouse-gh Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Workflow [PR], commit [ab48b51]

Summary: ✅


AI Review

Summary

This bump pulls in silk changes for active CPU-set scheduling, runtime page-size handling, mmap accounting hooks, and vendoring cleanups. I do not think it is mergeable as-is: the raw-CPU-id bound is still unresolved in the current code, the clickhouse-public rebuild helper still feeds a destructive command through shell expansion, and the page-size fix still does not enforce its own "runtime only" contract.

Findings
❌ Blockers
  • [contrib/silk/include/silk/util/platform.h:116-119, contrib/silk/src/fibers/fiber.cpp:1203-1255,1453-1455, contrib/silk/src/util/sharded-stack.cpp:21-22,49-50,122-123, contrib/silk/include/silk/util/perf.h:222-224,261-263, contrib/silk/src/fibers/tests/fiber-cpuset-test.cpp:279-289] [dismissed by author -- https://github.com/Bump silk to the latest clickhouse-public #113796#discussion_r3742166607] _SC_NPROCESSORS_CONF is still only a count, but the scheduler, ShardedStackBase, and Perf still subscript arrays with raw CPU ids from getCurrentProcessor / rseq_cpu_start. The new cpuset test also only enumerates CPUs < getProcessorCount(), so it cannot validate sparse logical CPU ids or CPU hot-add after initialize. Upstream commit d0417739 already documents those cases as "remain uncovered", so this is still an out-of-bounds condition, not a disproven hypothetical.
    Suggested fix: derive a real CPU-id upper bound (for example from /sys/devices/system/cpu/possible / nr_cpu_ids) or build one dense-id map and use it consistently in FiberScheduler, ShardedStackBase, and Perf, then add a focused test that can drive non-dense ids.

  • [contrib/silk/ci/jobs/rebuild_clickhouse_public.py:14-18] [dismissed by author -- https://github.com/Bump silk to the latest clickhouse-public #113796#discussion_r3747335843] REMOVE_SUBMODULES still runs git rm -r -q $(...). That expands submodule paths in the shell before git rm sees them, so a future path containing whitespace or glob characters would be split or wildcard-expanded on a destructive command. This job then force-pushes the rebuilt branch, so the failure mode is "delete the wrong path" rather than "cleanly fail".
    Suggested fix: read .gitmodules in Python and pass an argv list to git rm, or use a zero-delimited pipeline such as git config -z ... | xargs -0 git rm --.

  • [contrib/silk/include/silk/util/platform.h:43-51] getPageSize still prefers the compile-time PAGE_SIZE macro whenever that macro is visible. That means the commit titled pageSize should be retrieved via ::sysconf(_SC_PAGESIZE), not compiled into the binary still does not actually enforce that invariant: any TU or downstream consumer that sees PAGE_SIZE before platform.h will bake the build-time constant back into stack/guard-page and memory-pool sizing.
    Suggested fix: remove the #if defined(PAGE_SIZE) branch and always read or cache _SC_PAGESIZE.

Tests
  • ⚠️ [contrib/silk/include/silk/fibers/fiber.h:177-178, contrib/silk/src/fibers/fiber.cpp:311-319,344-359,705-762] The new MemoryMapCallback API still has no focused proof that accountMemoryMapped and accountMemoryUnmapped stay balanced across the two tricky lifetime edges here: fiber stacks are mapped on first Fiber::initialize and unmapped only in Fiber::~Fiber, and io_uring ring accounting is split between per-CPU init and destroy. A small regression test should install both callbacks, run scheduler init plus at least one fiber allocation/reuse cycle, destroy the scheduler, and assert the exact mapped/unmapped pairs.
Final Verdict

❌ Block
Minimum required actions:

  • Fix or formally close the raw-CPU-id bound gap across FiberScheduler, ShardedStackBase, and Perf.
  • Make the clickhouse-public rebuild helper stop feeding git rm through shell expansion.
  • Make getPageSize unconditionally use the runtime page size.
  • Add a focused callback-balance test for MemoryMapCallback.

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog submodule changed At least one submodule changed in this PR. labels Aug 7, 2026
@mstetsyuk mstetsyuk self-assigned this Aug 7, 2026
Comment thread contrib/silk Resolved
@clickhouse-gh
clickhouse-gh Bot force-pushed the robot/bump-silk branch 4 times, most recently from 571595b to 914ba64 Compare August 8, 2026 06:32
Comment thread contrib/silk Resolved
@clickhouse-gh

clickhouse-gh Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Build profile diff (arm_release)

No arm_release build profile data for commit ab48b51 - the build was skipped, reused from cache, or predates profile upload.

Comment thread contrib/silk Resolved
@clickhouse-gh
clickhouse-gh Bot force-pushed the robot/bump-silk branch 3 times, most recently from 0366f47 to d4e9e28 Compare August 9, 2026 18:32
@nikitamikhaylov
nikitamikhaylov added this pull request to the merge queue Aug 9, 2026
@alexey-milovidov
alexey-milovidov removed this pull request from the merge queue due to a manual request Aug 9, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member

@nikitamikhaylov, do not rush. It is red and it didn't pass review: #113796 (comment)

@alexey-milovidov

Copy link
Copy Markdown
Member

Moreover, it was not approved by the reviewer, and you aren't assigned to this PR.

@alexey-milovidov
alexey-milovidov marked this pull request as draft August 9, 2026 23:15
@alexey-milovidov

Copy link
Copy Markdown
Member

Sanitizer (STID: 3671-3a9b)

Every sanitizer issue is a blocker.

You may argue that it is not related, and yes, please argue and investigate it before merging.

@alexey-milovidov

Copy link
Copy Markdown
Member

The review states that the library is broken:

#113796 (comment)

@clickhouse-gh
clickhouse-gh Bot force-pushed the robot/bump-silk branch 2 times, most recently from 62f8732 to 83ddab4 Compare August 10, 2026 06:48
Comment thread contrib/silk Resolved
@nikitamikhaylov

Copy link
Copy Markdown
Member

Thanks!
Somehow it was not visible to me.

@clickhouse-gh
clickhouse-gh Bot force-pushed the robot/bump-silk branch 2 times, most recently from 0ef9243 to 90f2dde Compare August 10, 2026 18:37
@alexey-milovidov
alexey-milovidov marked this pull request as ready for review August 10, 2026 19:06
Comment thread contrib/silk Resolved
@clickhouse-gh
clickhouse-gh Bot force-pushed the robot/bump-silk branch 2 times, most recently from 16f1762 to 1c619f2 Compare August 11, 2026 12:33
Comment thread contrib/silk Resolved
Comment thread contrib/silk Resolved
@mstetsyuk
mstetsyuk added this pull request to the merge queue Aug 12, 2026
Merged via the queue into master with commit 0264662 Aug 12, 2026
181 checks passed
@mstetsyuk
mstetsyuk deleted the robot/bump-silk branch August 12, 2026 19:40
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo submodule changed At least one submodule changed in this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants