Skip to content

Defer uring task work and post operations on registered files - #216

Draft
resetius wants to merge 1 commit into
uring-defer-taskrun-v2from
uring-defer-fixed
Draft

resetius wants to merge 1 commit into
uring-defer-taskrun-v2from
uring-defer-fixed

Conversation

@resetius

Copy link
Copy Markdown
Owner

The combination of the TUring write-path experiments (draft, for measurement; the owner decides). It is stacked on #214, so the diff here is #215 (fixed files) on top of the deferred task work. Depends on #214.

Why this combination and not #214 + #213:

Change

A/B (rpi5)

rpi5 (Cortex-A76, Linux 7.3.0-1003-raspi, liburing 2.15, GCC 15.3), Release, examples/bench on taskset -c 3, with run_ab.sh. Heads alternate in each repetition. Median (min-max) of 7 repetitions for single N=1024 and of 5 for N=16 and chain100. Cycles/hop = cycles:u + cycles:k of -w 100000 minus -w 100.

shape uring master #214 #215 this PR (#214 + #215) epoll master this PR / epoll master
single N=1024, cycles/hop 5078 (5015-5163) 4737 (0.933) 5022 (0.989) 4732 (0.932) 3992 1.185
single N=1024, µs/hop 2.114 1.972 2.090 1.964 1.661
single N=16, cycles/hop 3297 (3281-3357) 2978 (0.903) 3165 (0.960) 2889 (0.876) 2926 0.987
single N=16, µs/hop 1.372 1.241 1.316 1.205 1.219
chain100, cycles/hop 4203 (4112-4290) 4130 (0.983) 3933 (0.936) 3936 (0.937) 3415 1.153
chain100, µs/hop 1.719 1.726 1.625 1.649 1.414
  • On single N=16, uring with this PR uses fewer cycles per hop than epoll: 2889 against 2926.
  • epoll with this PR (the same epoll code): 4036 / 2954 / 3494 cycles/hop, 1.011 / 1.009 / 1.023. That is binary layout; the other heads show 1.00-1.01.
  • Local actor bench (4 nodes, inflight 1024, 10M, 5 repetitions): uring master 3.14M msg/s (2.83-3.16M), this PR 3.12M (2.88-3.19M), no hangs. epoll 2.64M against 2.61M.

Regression of the readiness pollers (their code does not change):

  • kqueue on the Mac, M5 Pro, 7 repetitions: 0.624 / 0.614 / 0.463 µs/hop against master 0.622 / 0.615 / 0.463 (1.003 / 0.997 / 1.001).
  • poll and select on rpi5, N=256 single and -a 16, 1-2 repetitions: 0.998-1.008.

Checks

  • rpi5, Debug + ASan as in CI: ctest 4/4; test_uring* 23/23.
  • macOS, Debug + ASan: ctest 4/4.

@resetius resetius changed the title Defer uring task work and use a registered file table (stacked on #214) Defer uring task work and post operations on registered files Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant