Skip to content

feat(net): log the title's socket calls every ten seconds - #16

Draft
broslife wants to merge 1 commit into
mainfrom
perf/receive-timings
Draft

broslife wants to merge 1 commit into
mainfrom
perf/receive-timings

Conversation

@broslife

@broslife broslife commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

The docked limit follows the CPU clock, and Enrico asked for timings of each step, docked and handheld. The log's network term still holds the whole console receive path, so this splits out the socket read.

  • The link wraps poll, recvmmsg, recv, recvfrom, send and sendto (pf-nx-sys::rt), as in the closed feat(net): count the title's socket calls and A/B two cuts #12, without its A/B switches.
  • A stream logs one socket calls line every 10 s: call rates, datagrams per read, microseconds a datagram, and the share of the window spent in recvmmsg.
  • The stream behaves as before, apart from the counting.

Checked

  • Linux (host image): cargo fmt --check, clippy -D warnings, cargo test --workspace.
  • Console: cargo-nx.sh check -p pf-nx -p pf-nx-probe on the older local image, before a last fix to the line's text. This build is the first on the current image.

Not proven: the console run

  1. Handheld, 720p, Automatic, stock clocks.
  2. Docked, 1080p, Automatic, stock clocks, app opened already docked.
  3. Docked, 1080p, fixed 40 Mb/s, CPU 1785.

Each run comes with a Status Monitor photo for core 3's load. Decrypt, FEC, reassembly and queue wait stay inside network: splitting them needs a change in core.

The stream's network term holds the console's whole receive path, and
core 3 runs near 90 percent at stock clocks. The docked limit follows the
CPU clock, so the next change needs the read's own numbers.

The link wraps poll, recvmmsg, recv, recvfrom, send and sendto, as in the
closed PR 12 but without its A/B switches. A stream logs one line every
ten seconds with the rates, datagrams per read, microseconds a datagram
and the window's share spent in recvmmsg.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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