Skip to content

feat(net): count the title's socket calls and A/B two cuts - #12

Closed
broslife wants to merge 1 commit into
mainfrom
fewer-socket-calls
Closed

broslife wants to merge 1 commit into
mainfrom
fewer-socket-calls

Conversation

@broslife

@broslife broslife commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator

At stock clocks the system's core 3 runs near 90 percent during a stream, and every socket call is an IPC served there. This build measures where those calls go and tries two cuts behind marker files, so one build covers the whole A/B.

  • The link wraps poll, recvmmsg, recv, recvfrom, send and sendto (pf-nx-sys::rt). A stream logs one socket calls line every 10 s, with the switches it ran under.
  • despertador-leve: the mio leg's waker skips a wake already on its way and acks with one read.
  • espera-leitura, holding milliseconds: each batch read waits that long first, to take more of a frame's burst.

With neither file the title behaves as before, apart from the counting.

Not run on a console yet. The wait and the lean waker stay only if the A/B shows a gain; the markers go before this leaves draft.

The link wraps poll, recvmmsg, recv, recvfrom, send and sendto, and a
stream logs one `socket calls` line every 10 s. Two marker files turn
the cuts on: `despertador-leve` for a waker that skips a wake already
on its way, `espera-leitura` for a wait before each batch read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@broslife

broslife commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

Closed: the A/B showed no latency gain. The result is written up in docs/improvements.md. The code stays on this branch.

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