Skip to content

perf(core): add a setting to run network workers on the network card's CPU socket - #8718

Open
mtopolnik wants to merge 2 commits into
masterfrom
mt_pool-tune
Open

mtopolnik wants to merge 2 commits into
masterfrom
mt_pool-tune

Conversation

@mtopolnik

Copy link
Copy Markdown
Contributor
  • New network.worker.groups.nic.local setting keeps network workers on the network card's CPU socket
  • Network-bound work, such as many small requests or ingestion, avoids cross-socket packet handoff
  • Opt-in, because confined workers lose the other sockets' CPUs, memory bandwidth and caches
  • Groups still spread over the sockets when QuestDB can't prove the card's socket

When the workers of all split network pools fit one socket's allowed CPUs, NicLocality reads /sys and /proc to prove that every network card the split pools' servers listen on sits on that socket's NUMA node, takes all its interrupts and RPS work on that socket's CPUs, and runs no threaded NAPI. When the proof holds, all groups of all split pools run on that socket; otherwise they spread over the sockets as before, and an advisory names the reason.

🤖 Generated with Claude Code

mtopolnik and others added 2 commits December 2, 2026 15:11
Add opt-in network.worker.groups.nic.local. When /sys and /proc prove
that the network cards and their interrupt and RPS CPUs all sit on one
CPU socket, and the split pools' workers fit there, the groups run on
that socket instead of spreading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mtopolnik mtopolnik added New feature Feature requests Performance Performance improvements Core Related to storage, data type, etc. labels Dec 2, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
1 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ideoma

ideoma commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

[PR Coverage check]

😍 pass : 319 / 319 (100.00%)

file detail

path covered line new line coverage
🔵 io/questdb/network/NicLocality.java 227 227 100.00%
🔵 io/questdb/std/CpuTopology.java 3 3 100.00%
🔵 io/questdb/PropertyKey.java 1 1 100.00%
🔵 io/questdb/PropServerConfiguration.java 88 88 100.00%

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core Related to storage, data type, etc. New feature Feature requests Performance Performance improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants