Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Configuration surface

Reference · Level 2: Building real applications

Every knob a project can state, with the one place to state it, the values it takes and its default. A knob is set in the image’s system.toml, under [image.<id>.knobs.<group>]; a board-scoped knob can also be set in a board’s nros-board.toml. nros knob list prints this list for your workspace, including the knobs of packages it depends on, and nros knob show <knob> prints one entry.

A knob has other spellings inside the build, such as an environment variable or a Kconfig symbol. Those carry the value between build layers. They are not places to set it, so this page does not list them.

120 knobs in 19 groups.

action

Knobs for action servers and clients.

KnobScopeDefaultWhat it is
action.inbox_bytesimage-1Action inbox slot size (bytes, -1 = derive)
action.inbox_depthimage4Action inbox ring depth

action.inbox_bytes

Action inbox slot size (bytes, -1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.action] inbox_bytes
  • Scope: image
  • Values: an integer
  • Default: -1

Bytes one request slot holds in the inbox ring of each action server queryable (send_goal, cancel_goal, get_result).

-1 means DERIVE it from this image’s declared pkg/action/Name_SendGoal_Request types – the largest of the three requests those queryables receive. A SEPARATE family from the service one above, so neither inherits the other’s worst case. Any other value is yours and WINS; when nothing derives, the crate falls through to the service family’s resolved size. Maps to action.inbox_bytes.

action.inbox_depth

Action inbox ring depth

  • Set it in: system.toml, [image.<id>.knobs.action] inbox_depth
  • Scope: image
  • Values: an integer
  • Default: 4

Requests one action server queryable holds before the newest is dropped: the family depth 4 was designed for, and the twin of the C shim’s ZPICO_MAX_PENDING_REPLIES (both 4). Must be >= 1. Maps to action.inbox_depth.

clock

Knobs for the wall clock and its sources.

KnobScopeDefaultWhat it is
clock.board_resync_interval_msimage0Re-ask the board’s wall clock every (ms), 0 for once at boot
clock.board_resync_stack_bytesimage8192Stack of the board wall-clock re-ask task (bytes)
clock.epoch_failureimageunstampedWhat boot does when no wall-clock source answers
clock.fallback_settle_msimage10000How long boot waits for each wall-clock source (ms)
clock.hlc_interval_msimage1000Re-take the epoch from zenoh sample timestamps every (ms)
clock.sntp_attemptsimage3SNTP queries per boot before the source gives up
clock.sntp_resync_interval_msimage0Re-query the SNTP server every (ms), 0 for once at boot
clock.sntp_resync_stack_bytesimage8192Stack of the SNTP re-sync thread (bytes)
clock.sourceimageplatformWall-clock source, or an ordered fallback list
clock.upgradeimageneverWhether a better source may replace the latched one later

clock.board_resync_interval_ms

Re-ask the board’s wall clock every (ms), 0 for once at boot

  • Set it in: system.toml, [image.<id>.knobs.clock] board_resync_interval_ms
  • Scope: image
  • Values: an integer from 0 to 86400000
  • Default: 0

For the board source: above 0, the image asks the board’s clock hook again on this interval and re-installs the wall-clock offset, so stamps follow a board clock that drifts or that its own time service later corrects. 0 asks once, at boot. An answer is installed under clock.upgrade, like every other source’s; a hook that does not answer keeps the installed offset. The re-ask runs on its own task, sized by clock.board_resync_stack_bytes, and only when board is a source the image’s clock policy admits.

The interval is measured on the image’s own monotonic clock: on a simulator, guest time. That is deliberate: the hook is the board’s own code, so a faster re-ask costs the image nothing but CPU, unlike the SNTP re-sync, which is paced on the server’s clock to keep the rate it asks a server at real.

clock.board_resync_stack_bytes

Stack of the board wall-clock re-ask task (bytes)

  • Set it in: system.toml, [image.<id>.knobs.clock] board_resync_stack_bytes
  • Scope: image
  • Values: an integer from 1024 to 1048576
  • Default: 8192

Bytes of stack for the task clock.board_resync_interval_ms starts. It runs the board’s clock hook, which is the board’s own code, so its depth is the board’s: state what the hook needs. It is a floor: a port whose own minimum task stack is larger raises it. The task exists only when the interval is above 0, so this costs nothing otherwise.

clock.epoch_failure

What boot does when no wall-clock source answers

  • Set it in: system.toml, [image.<id>.knobs.clock] epoch_failure
  • Scope: image
  • Values: one of: unstamped, halt
  • Default: unstamped

What the image does when every source in clock.source has been tried and none answered. unstamped boots on: the platform reports no wall clock and every stamp reads 0, ROS’s “unset” time, knowingly. halt stops at boot, for an image whose peers refuse a stamp that is not absolute. A list ending in platform reaches this policy on a port with no clock of its own (Zephyr, bare-metal FreeRTOS, ThreadX), because platform does not answer there.

clock.fallback_settle_ms

How long boot waits for each wall-clock source (ms)

  • Set it in: system.toml, [image.<id>.knobs.clock] fallback_settle_ms
  • Scope: image
  • Values: an integer from 0 to 600000
  • Default: 10000

How long boot waits for each source in clock.source to answer before trying the next one. 0 tries each once without waiting.

This wait is paid at boot, before the first spin: nothing runs until the clock is resolved. A zenoh-hlc source that hears no timestamped sample (no host publishing on a topic the image subscribes to) costs the whole of it before the next source is tried; an sntp source with no reachable server costs sntp_attempts x sntp.timeout_ms instead. Timers start counting when the wait ends, so it is never reported as a missed period.

A board source is asked every 10 ms within it. On a port that resolves on its first wall-clock read (POSIX, FreeRTOS), that read waits instead of boot.

clock.hlc_interval_ms

Re-take the epoch from zenoh sample timestamps every (ms)

  • Set it in: system.toml, [image.<id>.knobs.clock] hlc_interval_ms
  • Scope: image
  • Values: an integer from 10 to 3600000
  • Default: 1000

For the zenoh-hlc source: the window over which the least-delayed timestamped sample is kept before its offset replaces the installed one. Shorter tracks a drifting tick more closely; longer is more likely to hold one low-latency sample.

clock.sntp_attempts

SNTP queries per boot before the source gives up

  • Set it in: system.toml, [image.<id>.knobs.clock] sntp_attempts
  • Scope: image
  • Values: an integer from 1 to 100
  • Default: 3

For the sntp source: how many queries boot sends, each waiting up to sntp.timeout_ms, before the source counts as not answering.

clock.sntp_resync_interval_ms

Re-query the SNTP server every (ms), 0 for once at boot

  • Set it in: system.toml, [image.<id>.knobs.clock] sntp_resync_interval_ms
  • Scope: image
  • Values: an integer from 0 to 86400000
  • Default: 0

For the sntp source: above 0, the image queries sntp.server again on this interval and re-installs the wall-clock offset, so stamps follow a server whose time steps or a tick that drifts. 0 queries once, at boot. A query that fails keeps the installed offset. The re-query runs on its own thread (sized by clock.sntp_resync_stack_bytes) and only while sntp is a source the image’s clock policy admits.

The interval is measured on the image’s own monotonic clock. On hardware that is real time; on a simulator it is GUEST time, so a simulator that runs faster than real time (an FVP fast-forwarding through idle time, for one) re-queries correspondingly more often in real time, and one that runs slower less often.

clock.sntp_resync_stack_bytes

Stack of the SNTP re-sync thread (bytes)

  • Set it in: system.toml, [image.<id>.knobs.clock] sntp_resync_stack_bytes
  • Scope: image
  • Values: an integer from 1024 to 1048576
  • Default: 8192

Bytes of stack for the thread clock.sntp_resync_interval_ms starts. It runs Zephyr’s SNTP query (socket, DNS lookup and the exchange), whose depth is set by Zephyr’s network stack, not by nano-ros. Measured with Zephyr 3.7’s thread analyzer:

  • 32-bit (mps2-an385, Cortex-M3): 1,160 B with the server named by hostname (DNS lookup included), 888 B with a numeric address.
  • 64-bit Arm: 7,024 B in an equivalent re-sync thread of a consumer image, where 4,096 B overflowed. The default, 8,192 B, is the 64-bit peak plus the stack-floor margin (10 %, 7,727 B) rounded up to a power of two, so it holds on both. A 32-bit image may set it lower, down to its own measured peak plus 10 %. The build’s stack-floor walk checks this stack, and refuses one below a measured floor. The thread exists only when the interval is above 0, so this costs nothing otherwise.

clock.source

Wall-clock source, or an ordered fallback list

  • Set it in: system.toml, [image.<id>.knobs.clock] source
  • Scope: image
  • Values: an ordered list of distinct members, comma-separated, at least one, of: platform, sntp, zenoh-hlc, board
  • Default: platform

Where the image takes its wall-clock epoch from: one source, or an ordered fallback tried at boot, comma-separated (sntp,platform). The first source that answers is latched.

platform the platform’s own clock (an RTC, or a host’s clock). It answers only on a port that has one (a POSIX host); on Zephyr, FreeRTOS and ThreadX it never answers, so a list that ends in it falls through to clock.epoch_failure sntp an SNTP query to sntp.server zenoh-hlc the timestamps on zenoh samples the image receives board a source the board package provides

It is resolved once at boot, after every component has registered and before anything spins, so no message is stamped before it; see clock.fallback_settle_ms for what the wait costs.

clock.upgrade

Whether a better source may replace the latched one later

  • Set it in: system.toml, [image.<id>.knobs.clock] upgrade
  • Scope: image
  • Values: one of: never, monotonic
  • Default: never

never keeps the source boot latched. monotonic lets a source earlier in clock.source that answers later replace it, provided the wall clock does not step backwards.

cyclonedds

KnobScopeDefaultWhat it is
cyclonedds.max_descriptor_typesimagechosen by the build(no description yet)
cyclonedds.max_fieldsimagechosen by the build(no description yet)
cyclonedds.max_kindsimagechosen by the build(no description yet)
cyclonedds.max_nested_depthimagechosen by the build(no description yet)
cyclonedds.max_typesimagechosen by the build(no description yet)

cyclonedds.max_descriptor_types

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.cyclonedds] max_descriptor_types
  • Scope: image
  • Package: nros_rmw_cyclonedds
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

cyclonedds.max_fields

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.cyclonedds] max_fields
  • Scope: image
  • Package: nros_rmw_cyclonedds
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

cyclonedds.max_kinds

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.cyclonedds] max_kinds
  • Scope: image
  • Package: nros_rmw_cyclonedds
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

cyclonedds.max_nested_depth

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.cyclonedds] max_nested_depth
  • Scope: image
  • Package: nros_rmw_cyclonedds
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

cyclonedds.max_types

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.cyclonedds] max_types
  • Scope: image
  • Package: nros_rmw_cyclonedds
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

entity

Knobs for the image’s entity demand.

KnobScopeDefaultWhat it is
entity.max_large_subscribersimage-1Subscribers served from the large payload class (-1 = derive)
entity.max_livelinessimage-1Maximum concurrent liveliness tokens (-1 = derive)
entity.max_pending_getsimage4Maximum concurrent pending get operations
entity.max_publishersimage-1Maximum concurrent publishers (-1 = derive)
entity.max_queryablesimage-1Maximum concurrent queryables (-1 = derive)
entity.max_subscribersimage-1Maximum concurrent subscribers (-1 = derive)

entity.max_large_subscribers

Subscribers served from the large payload class (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.entity] max_large_subscribers
  • Scope: image
  • Values: an integer
  • Default: -1

Subscribers whose rx_buffer_hint exceeds SUBSCRIBER_SIZE_THRESHOLD and are therefore served from LARGE_PAYLOADS. Bounded separately from entity.max_subscribers so raising SUBSCRIBER_LARGE_SIZE for one image-scale topic does not multiply across every subscriber. This is the DEMAND (RMW-agnostic). The zenoh pool, zenoh.max_large_subscribers (zenoh.max_large_subscribers, the C macro zenoh.max_large_subscribers), is derived from it.

-1 means DERIVE it: how many types in the linked interface closure exceed the class split. Do not count it by reading generated C++ headers BY EYE: they state an ESTIMATE and not a bound, and a count made that way can give 2 where the derived answer is 0.

0 is a legal, meaningful value and NOT the same as -1: it claims that every type this image receives fits the small class, and the large pool becomes zero bytes instead of RING_DEPTH x LARGE_SIZE. A hint no class can hold is then refused at create_subscription rather than served a block too small for it.

Derived counts TYPES, not subscriptions – an upper bound, since the closure is what is linked, not what is subscribed. See subscriber.buffer_bytes for the rest of that caveat.

entity.max_liveliness

Maximum concurrent liveliness tokens (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.entity] max_liveliness
  • Scope: image
  • Values: an integer
  • Default: -1

Maximum number of liveliness tokens this image declares at once. This is the DEMAND (RMW-agnostic). The zenoh pool, zenoh.max_liveliness (zenoh.max_liveliness, the C macro zenoh.max_liveliness), is derived from it, floored at 1.

-1 DERIVES this from the image’s entity inventory, on the same ladder as entity.max_queryables. Stating a number here WINS.

Every token is declared by THIS session, never by a peer: one for the session’s own node, one per node name, and one per publisher, subscriber, service server and service client (three per action client, which the derivation multiplies). The graph cache’s own subscriber takes no slot. An image with no inventory (nothing declared) keeps the zpico default of 16.

Short is not a boot failure: the entity works and is invisible to ros2 node list, and the shim logs the exhaustion naming this knob. An image that BRIDGES (runtime-named nodes, declared nowhere) must state it.

entity.max_pending_gets

Maximum concurrent pending get operations

  • Set it in: system.toml, [image.<id>.knobs.entity] max_pending_gets
  • Scope: image
  • Values: an integer
  • Default: 4

Maximum number of concurrent pending get (service call) operations. This is the DEMAND (RMW-agnostic). The zenoh pool, zenoh.max_pending_gets (zenoh.max_pending_gets, the C macro zenoh.max_pending_gets), is derived from it.

entity.max_publishers

Maximum concurrent publishers (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.entity] max_publishers
  • Scope: image
  • Values: an integer
  • Default: -1

Maximum number of publishers this image opens at once. This is the DEMAND (RMW-agnostic). The zenoh pool, zenoh.max_publishers (zenoh.max_publishers, the C macro zenoh.max_publishers), is derived from it, floored at 1.

-1 DERIVES this from the image’s entity inventory (nano_ros_node_register(... ENTITIES ...)). Stating a number here WINS and suppresses the derivation, which is a fine thing to do deliberately and a silent cost otherwise.

The derived value counts what the SESSION opens, which is not what the author declares: a declared action server is one entity that costs three queryables and two publishers, and an action client one subscription. Those multipliers live beside the calls that decide them.

NOT counted, because a feature enables them and the inventory cannot see it: the parameter (6) and lifecycle (5) service families. An image carrying either must state this knob.

entity.max_queryables

Maximum concurrent queryables (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.entity] max_queryables
  • Scope: image
  • Values: an integer
  • Default: -1

Maximum number of queryables (service servers) this image opens at once. This is the DEMAND (RMW-agnostic). The zenoh pool, zenoh.max_queryables (zenoh.max_queryables, the C macro zenoh.max_queryables), is derived from it, floored at 1.

-1 DERIVES this from the image’s entity inventory (nano_ros_node_register(... ENTITIES ...)). Stating a number here WINS and suppresses the derivation, which is a fine thing to do deliberately and a silent cost otherwise.

The derived value counts what the SESSION opens, which is not what the author declares: a declared action server is one entity that costs three queryables and two publishers, and an action client one subscription. Those multipliers live beside the calls that decide them.

NOT counted, because a feature enables them and the inventory cannot see it: the parameter (6) and lifecycle (5) service families. An image carrying either must state this knob.

The PARAMETER family is per NODE. ros2 param list enumerates an image’s nodes, so one set of six services is registered under each node’s own fully-qualified name: an N-node image carrying [param_services] claims 6*N slots before the application declares anything, plus 5 for the lifecycle family, which is still one set on the executor. A value below that DERIVED floor is refused at BUILD time by nros-zpico-build and the refusal names this knob – it used to be a runtime ServiceServerCreationFailed with no explanation. Two nodes already need 12, which is over the historical default of 8.

entity.max_subscribers

Maximum concurrent subscribers (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.entity] max_subscribers
  • Scope: image
  • Values: an integer
  • Default: -1

Maximum number of subscriptions this image opens at once. This is the DEMAND (RMW-agnostic). The zenoh pool, zenoh.max_subscribers (zenoh.max_subscribers, the C macro zenoh.max_subscribers), is derived from it, floored at 1.

-1 DERIVES this from the image’s entity inventory (nano_ros_node_register(... ENTITIES ...)). Stating a number here WINS and suppresses the derivation, which is a fine thing to do deliberately and a silent cost otherwise.

The derived value counts what the SESSION opens, which is not what the author declares: a declared action server is one entity that costs three queryables and two publishers, and an action client one subscription. Those multipliers live beside the calls that decide them.

NOT counted, because a feature enables them and the inventory cannot see it: the parameter (6) and lifecycle (5) service families. An image carrying either must state this knob.

executor

Knobs for the executor and its callback slots.

KnobScopeDefaultWhat it is
executor.action_clientsimage-1Callback slots to budget at ActionClient size (-1 = derive)
executor.arena_bytesimage0Executor arena size in bytes (0 = derive)
executor.backing_bytesimage-1Executor backing reservation in 64-bit words (-1 = derive, 0 = none)
executor.extra_sessionsimage-1Extra-session slots per executor (-1 = derive)
executor.max_age_monitorsimage-1Contract-monitor age rows per executor (-1 = derive)
executor.max_cbsimage-1Maximum executor callback slots (-1 = derive)
executor.max_monitorsimage-1Contract-monitor rate/latency rows per executor (-1 = derive)
executor.max_nodesimage-1Maximum nodes per executor (-1 = derive)
executor.max_scimage-1Maximum scheduling-context slots per executor (-1 = derive)
executor.max_shutdown_cbsimage2Shutdown-hook slots per phase
executor.max_violationsimage8Contract-violation ring depth per executor
executor.param_service_buffer_bytesimage-1Parameter service request/reply buffer size (bytes) (-1 = derive)
executor.runtime_remapsimage-1Runtime remap-table slots per executor (-1 = derive)
executor.subscription_buffer_bytesimage-1Per-subscription receive buffer size in bytes (-1 = derive)

executor.action_clients

Callback slots to budget at ActionClient size (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.executor] action_clients
  • Or for a board: nros-board.toml, [knobs] executor.action_clients
  • Scope: image
  • Values: an integer
  • Default: -1

How many of executor.max_cbs slots the arena derivation budgets at ACTION CLIENT size (~18 KiB each) rather than pub/sub size (~3.5 KiB).

-1 DERIVES it from the image’s entity inventory, the same way MAX_CBS is derived: the count is the action clients AND action servers the image’s components declare. An image whose inventory refuses – any component that declared no ENTITIES – falls through to MAX_CBS, which reproduces the historical arithmetic exactly, so nothing built before this moves.

Action SERVERS count too, though the option is named for clients: the arena stores ActionServerArenaEntry, so a server image occupies the same heavy slots and zeroing this on one would trade the saving for a runtime BufferTooSmall.

Set it to 0 on an image with no action client: at the defaults that takes the arena from 74240 bytes to 16384. The arena is INLINE ON THE TASK STACK, not in .bss, so this is stack headroom – see the FreeRTOS “Invalid mbox” note in book-internals/src/platform/implementation-notes.md.

Too small fails at REGISTRATION with BufferTooSmall, not at link. The executor reports what it actually used on its first spin, so build once, read the advisory, then set this.

executor.arena_bytes

Executor arena size in bytes (0 = derive)

  • Set it in: system.toml, [image.<id>.knobs.executor] arena_bytes
  • Or for a board: nros-board.toml, [knobs] executor.arena_bytes
  • Scope: image
  • Values: an integer
  • Default: 0

Explicit executor arena size. 0 means let nros-node build.rs derive it, which budgets EVERY callback slot at action-client size (~18 KiB) – correct, but several times over for a pub/sub-only image, which needs about max_cbs * ((depth + 1) * (executor.subscription_buffer_bytes + 8) + 1024)

MIND THE DEPTH. A subscription’s arena claim scales with its QoS history: KEEP_LAST(N > 1) is a ring of N + 1 slots plus a length beside each, and the ROS default is KEEP_LAST(10), so one ordinary subscription at the default buffer size costs 12 KiB and not 3.5 KiB. This help said “3 * executor.subscription_buffer_bytes + 512” until the derivation itself did, and an image sized from that arithmetic dies at entity creation with NodeError::BufferTooSmall.

Set it only with that arithmetic in hand. On an image that DECLARES its entities (every NROS_ENTITY_COUNT_* reached the build), a value below what they are modelled to need does not build: nros-node refuses it at compile time, naming this option, both numbers and the shortfall (executor::arena_oracle). On an image that declares nothing the derivation is a worst-case budget, not a requirement, so a smaller value is accepted – and too small still fails at runtime, at the first registration that does not fit, not at link.

executor.backing_bytes

Executor backing reservation in 64-bit words (-1 = derive, 0 = none)

  • Set it in: system.toml, [image.<id>.knobs.executor] backing_bytes
  • Or for a board: nros-board.toml, [knobs] executor.backing_bytes
  • Scope: image
  • Values: an integer
  • Default: -1

How many 64-bit words nros-node reserves in .bss for the executor’s per-entry storage – the named static nros_node::executor::backing::EXECUTOR_BACKING. The reservation is exactly 8 x this many bytes, on every target.

-1 DERIVES it, from ExecutorSizing::DEFAULT: MAX_CBS, MAX_SC, MAX_NODES and the arena (and the parameter store, when the image builds one).

A STATED number covers the executor’s tables only: when the image builds a parameter store (NROS_CAPABILITY_PARAM_SERVICES or NROS_PARAMS_STORE), the store’s words are carved from the same static and added ON TOP, so the reservation is then 8 x (this + the store). Deriving is the right answer for an image that does not care which budget the bytes come out of.

STATE A NUMBER when the image lowers CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE to pay for the reservation. The Rust global allocator here is picolibc malloc, whose arena is ITSELF a fixed static, and the backing used to be a Box::leak out of it – so leaving that arena where it was reserves the same bytes twice. Lowering it by a number copied out of nm pairs them once and then drifts the next time an executor knob moves, in whichever direction, with nothing to say so.

Stating the size inverts that. The crate obeys this number, so the pairing is exact by construction and identical on every board – the DERIVED size is target-dependent (87,256 B on mps2_an385 against 88,328 B on native_sim/native/64 for one and the same conf, which is how a conf hand-paired on one board kept double-reserving 1,072 bytes on the other) and 8 x this is not. State it too SMALL and nros-node refuses to compile naming this knob, which is the direction that would otherwise silently re-create the double reservation.

THE PAIRING ABOVE IS RETIRED. Every Zephyr Rust allocation now goes to the nros heap (memory.heap_bytes), so no Rust byte reaches picolibc’s arena and there is nothing in it to lower; the six example confs that did so (a # nros-arena-base: marker, this knob and a lowered COMMON_LIBC_MALLOC_ARENA_SIZE) state none of the three now, and check-executor-backing-arena-pairing refuses the marker. Stating this knob is still how an image fixes the reservation at 8 x N bytes on every board. That a value is stated does not make it ENOUGH: the executor grows, the conf does not, and the image stops compiling. just check node-std-tests checks every stated value against the MEASURED default on each board the conf is built for, so restate it there.

0 declines the static entirely and restores the old Box::leak, for an image that would rather keep the bytes in the allocator arena than have the linker price them.

executor.extra_sessions

Extra-session slots per executor (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.executor] extra_sessions
  • Scope: image
  • Values: an integer
  • Default: -1

Slots for sessions a node opens on an RMW backend other than the primary’s (NodeBuilder::rmw, open_multi), per executor (per sched_task), at most one per node slot. A slot is the backend’s session (528 bytes on thumbv7em with zenoh) plus a 168-byte id.

-1 derives it from the image’s backend count (the sizing descriptor’s [image] backend_count, which also sizes the RMW backend registry): backends - 1, so 0 for a one-RMW image. With no backend count stated, one per node slot (the old size). State a count only for a second session on the SAME backend (another locator or domain, on a backend that allows it); a full table is NodeError::NodeTableFull.

executor.max_age_monitors

Contract-monitor age rows per executor (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.executor] max_age_monitors
  • Scope: image
  • Values: an integer
  • Default: -1

Age contract rows one executor watches (nros-node build.rs MAX_AGE_MONITORS): one per contracted subscription carrying max_age_ms. A separate knob from executor.max_monitors because it is a separate table, so an image with rate contracts and no age contracts pays for one table only. -1 derives it on the same terms, and a longer table is refused naming this knob.

executor.max_cbs

Maximum executor callback slots (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.executor] max_cbs
  • Or for a board: nros-board.toml, [knobs] executor.max_cbs
  • Scope: image
  • Values: an integer
  • Default: -1

Maximum number of callback slots in the executor (subscriptions + timers + services + service clients + action entities + guard conditions). Controls both Rust and C APIs. Arena size is derived automatically from this value and the subscription buffer size.

A PUBLISHER IS NOT ONE OF THEM. Every registration that claims a slot calls Executor::next_entry_slot(); create_publisher does not — it writes an RmwPublisher into caller-owned storage and there is no nros_executor_add_publisher on the C path. For example, an image with 19 slot-claiming entities and 14 publishers needs 19 here, not 33.

-1 means DERIVE it from this image’s ENTITY inventory: the sum of every nano_ros_node_register(... ENTITIES ...) declaration in the image, counted by kind. It is derived only when EVERY component declared; one that did not makes the whole image refuse, so a partial answer can never be published as a whole one. Any value other than -1 is yours and WINS; the crate default when nothing is stated and nothing is derivable is 4.

The derived value carries NO headroom, which makes the running image a checker of its own declaration: one entity past the table and registration returns ExecutorFull naming this knob, and the entry halts boot naming the node. Raise it deliberately if you want slack — the arena scales with it.

4 is the crate default in nros-node/build.rs. Zephyr C images once compiled that default whatever was configured here, because this option did not reach Cargo; the old Kconfig default of 16 had therefore never been built, and honouring it would have grown a native_sim listener’s .bss by 219 KB (+35%).

executor.max_monitors

Contract-monitor rate/latency rows per executor (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.executor] max_monitors
  • Scope: image
  • Values: an integer
  • Default: -1

Rate/latency contract rows one executor watches (nros-node build.rs MAX_MONITORS). One row per contracted publisher carrying min_rate_hz, plus latency-only rows from node paths carrying max_latency_ms.

-1 DERIVES this from the image’s entity inventory, which counts the rows from the same contract the entry bakes its table from. Without a contract the crate default of 8 stands. A stated number wins, in both directions. The rows are inline in the executor (24 bytes each on a 32-bit target), so a board file should never state a count the contract already determines. A table longer than this is REFUSED at install (nros_cpp_install_monitors logs this knob’s name and returns NROS_CPP_RET_FULL; a Rust entry fails to compile), never truncated.

executor.max_nodes

Maximum nodes per executor (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.executor] max_nodes
  • Or for a board: nros-board.toml, [knobs] executor.max_nodes
  • Scope: image
  • Values: an integer
  • Default: -1

Nodes attachable to one executor (nros-node build.rs MAX_NODES).

executor.max_sc

Maximum scheduling-context slots per executor (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.executor] max_sc
  • Or for a board: nros-board.toml, [knobs] executor.max_sc
  • Scope: image
  • Values: an integer
  • Default: -1

SchedContext slots per executor (nros-node build.rs MAX_SC).

-1 DERIVES this from the image’s entity inventory: slot 0 is the reserved default Fifo context (create_sched_context searches 1..MAX_SC), plus one per scheduling context the schedule can create. The Rust runtime creates NONE – apply_sched_task_sched_policy ends in set_default_sched_context, which mutates slot 0 – while the C/C++ entry pack creates one per sched_task. A stated number wins, in both directions. The old default was 8 for every image whatever it declared, worth 112 bytes a slot in the executor backing on thumbv7m-none-eabi. Too small is NodeError::NoSchedContextSlot at create_sched_context, which names this knob.

executor.max_shutdown_cbs

Shutdown-hook slots per phase

  • Set it in: system.toml, [image.<id>.knobs.executor] max_shutdown_cbs
  • Or for a board: nros-board.toml, [knobs] executor.max_shutdown_cbs
  • Scope: image
  • Values: an integer
  • Default: 2

How many shutdown hooks the executor can hold PER PHASE — one table this size for pre-shutdown hooks (run while the session is still open, so a node can publish a final state or park an actuator) and a second for on-shutdown hooks (run after the close). Read by nros-node/build.rs as executor.max_shutdown_cbs.

Deliberately small: the slots are static, so every image pays for them whether or not it registers a hook, as queryable slots do. Raise it only when an image genuinely has more things to park on the way down. Overflow is reported at registration (RCLC_RET_FULL), not silently dropped.

executor.max_violations

Contract-violation ring depth per executor

  • Set it in: system.toml, [image.<id>.knobs.executor] max_violations
  • Scope: image
  • Values: an integer from 1 to 256
  • Default: 8

How many contract violations one executor’s ring keeps for a drain (nros-node build.rs MAX_VIOLATIONS), and the slot count of the image-wide SWD record NROS_VIOLATION_RECORD (present with CONFIG_NROS_BOOT_REPORT).

The ring keeps the LATEST entries: a violation into a full ring evicts the oldest and counts it (Executor::violations_dropped). It used to keep the FIRST entries, so a board whose start-up filled it stored nothing after. A slot costs 24 bytes in the ring and 28 in the record on a 32-bit target; 8 is 192 B per executor plus 264 B for the record. Raise it only when a burst must be kept whole.

executor.param_service_buffer_bytes

Parameter service request/reply buffer size (bytes) (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.executor] param_service_buffer_bytes
  • Or for a board: nros-board.toml, [knobs] executor.param_service_buffer_bytes
  • Scope: image
  • Values: an integer
  • Default: -1

Each half of the one request/reply buffer pair an executor’s parameter services share (nros-node build.rs PARAM_SERVICE_BUFFER_SIZE).

-1 DERIVES it: when the contract’s params: declare every node’s parameters, nros-node sizes the buffer for the largest message those names and types can produce at the store’s capacities (params.max_string_value_bytes, params.max_array_len, params.max_byte_array_bytes, params.max_description_bytes). Without a declaration the crate default of 4096 stands. Stating a number here WINS; a request or reply past it is dropped and logged once per service.

executor.runtime_remaps

Runtime remap-table slots per executor (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.executor] runtime_remaps
  • Scope: image
  • Values: an integer
  • Default: -1

Slots of one executor’s RUNTIME remap table (nros-node build.rs RUNTIME_REMAPS): --ros-args -r rules and rules hand-written code declares with nros_cpp_declare_remap / Executor::declare_remap. The launch file’s rules are NOT here: the generated entry emits them as one const table in flash that every executor reads (nros_cpp_set_launch_remaps).

-1 derives it: 16 on a target with process arguments (Linux, NuttX), 0 on bare metal (Zephyr, FreeRTOS, ThreadX), which has no argv. A rule costs 404 bytes on a 32-bit target, per executor (per sched_task). At 0, declare_remap is refused by name (RemapRefused::NoRuntimeTable, NROS_CPP_RET_FULL); state a count here to restore runtime slots.

executor.subscription_buffer_bytes

Per-subscription receive buffer size in bytes (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.executor] subscription_buffer_bytes
  • Or for a board: nros-board.toml, [knobs] executor.subscription_buffer_bytes
  • Scope: image
  • Values: an integer
  • Default: -1

Serialized-sample capacity of every executor arena subscription (nros-node build.rs DEFAULT_RX_BUF_SIZE). A sample larger than this is dropped at take with BUFFER_TOO_SMALL — for the C++ arena dispatch path that drop is silent, so an undersized buffer looks like a subscription that never fires. Size it to the largest serialized message the image subscribes to (e.g. an Autoware /planning trajectory runs 9-14 KiB). The executor arena is derived from this value times the callback-slot count — raise it deliberately.

-1 means DERIVE it from this image’s message-bound inventory: the largest derived bound in the LINKED interface closure, which is an UPPER BOUND on what the image needs and never an under-estimate. “Size it to the largest serialized message the image subscribes to” is exactly the instruction nobody could follow by hand – for example, a board conf can reason its way to ~718 B for nav_msgs/Odometry and write 512, where the derived bound is 880. Any value other than -1 is yours and WINS; the crate default when nothing is stated and nothing is derivable is 1024.

COUPLED TO THE ARENA: each subscription’s receive region holds (depth + 1) x (this + 8) bytes at a KEEP_LAST depth above 1, the ROS default being 10 (3 x this at depth 1), and an image that declares no entities budgets every callback slot at action-client size, which also grows by 3 x this. So raising this raises the arena; executor.arena_bytes gives the whole arithmetic. An image that also PINS executor.arena_bytes must move the two together; leaving both to derive is the shape that cannot disagree.

freertos

KnobScopeDefaultWhat it is
freertos.task_stack_guardboardchosen by the build0 builds a FreeRTOS kernel that does not reprogram the board’s task stack

freertos.task_stack_guard

0 builds a FreeRTOS kernel that does not reprogram the board’s task stack

  • Set it in: system.toml, [image.<id>.knobs.freertos] task_stack_guard
  • Scope: board
  • Package: nros_platform_freertos
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

0 builds a FreeRTOS kernel that does not reprogram the board’s task stack guard on a context switch, so a task that overflows its stack is no longer stopped by the MPU. 1 keeps the guard. Unset keeps the board’s own default: on for a board that has a guard (MPS2-AN385 guards the lowest 256 bytes of each task stack), off for one that does not.

log

Knobs for logging.

KnobScopeDefaultWhat it is
log.buffer_bytesimage256nros-log per-call formatting buffer (bytes)
log.dynamic_loggersimage16Loggers nros-log may create at run time
log.early_recordsimage4nros-log records held for delivery
log.max_levelimage0nros-log compile-time severity ceiling
log.rosout_recordsimage16nros-log /rosout queue depth

log.buffer_bytes

nros-log per-call formatting buffer (bytes)

  • Set it in: system.toml, [image.<id>.knobs.log] buffer_bytes
  • Or for a board: nros-board.toml, [knobs] log.buffer_bytes
  • Scope: image
  • Values: an integer from 128 to 4096
  • Default: 256

Bytes of the buffer one Rust log call formats into, and of the message held in each early-record and /rosout slot (nros-log build.rs, as log.buffer_bytes). Longer messages are truncated with an ellipsis. The C/C++ NROS_LOG_* printf front-end keeps its own 256-byte frame (<rclc/log.h>), so a C record is bounded by the smaller of the two. Bigger costs stack on every logging task. Replaces the deprecated buffer-size- cargo features.

log.dynamic_loggers

Loggers nros-log may create at run time

  • Set it in: system.toml, [image.<id>.knobs.log] dynamic_loggers
  • Or for a board: nros-board.toml, [knobs] log.dynamic_loggers
  • Scope: image
  • Values: an integer from 0 to 1024
  • Default: 16

How many loggers nros_log::get_or_create_logger may CREATE at run time (nros-log build.rs, as log.dynamic_loggers): a node’s own logger, every distinct get_logger(“x”) and every distinct child name each take one slot. Each slot costs a Logger plus 24 bytes of name arena in .bss.

0 declines the arenas entirely – no runtime loggers, lookup only – which is right for an image whose loggers are all static. A creation past the capacity falls back to the parent logger and warns once.

Size it from a measurement: the boot report records the slots in use against this capacity, and a static-memory report of the image prices the arenas. A board states its own default in [knobs.log] dynamic_loggers; this Kconfig value outranks it, and the environment outranks both.

log.early_records

nros-log records held for delivery

  • Set it in: system.toml, [image.<id>.knobs.log] early_records
  • Or for a board: nros-board.toml, [knobs] log.early_records
  • Scope: image
  • Values: an integer from 0 to 256
  • Default: 4

How many records nros_log::early holds until a sink can take them: before init installs the sinks, or while another thread is inside a sink. nros-log build.rs reads it as log.early_records. 0 declines the queue: such records are dropped and only counted, and the count is logged. Each slot is a formatting buffer plus a logger name in .bss. Replaces the deprecated early-records- cargo features.

log.max_level

nros-log compile-time severity ceiling

  • Set it in: system.toml, [image.<id>.knobs.log] max_level
  • Or for a board: nros-board.toml, [knobs] log.max_level
  • Scope: image
  • Values: an integer from 0 to 6, or one of: trace, debug, info, warn, error, fatal, off
  • Default: 0

The least severe record the image can emit at all (nros-log build.rs, as log.max_level): 0 trace, 1 debug, 2 info, 3 warn, 4 error, 5 fatal, 6 off. A number, as Zephyr’s own LOG_MAX_LEVEL is.

Rust nros_! call sites below the ceiling compile to nothing; C and C++ records below it are refused at the facade (the same check nros_log_is_enabled answers). It is a BOUND, not the runtime level: rclc_logger_set_level / set_level still move each logger’s threshold beneath it. Replaces the retired max-level- cargo features.

log.rosout_records

nros-log /rosout queue depth

  • Set it in: system.toml, [image.<id>.knobs.log] rosout_records
  • Or for a board: nros-board.toml, [knobs] log.rosout_records
  • Scope: image
  • Values: an integer from 1 to 1024
  • Default: 16

Records the /rosout queue holds between pumps, and the KEEP_LAST depth of the /rosout publisher (nros-log build.rs, as log.rosout_records). Only paid when nros-node’s rosout feature is on. Replaces the deprecated rosout-records- cargo features.

memory

Knobs for stacks and heaps, per image.

KnobScopeDefaultWhat it is
memory.app_stack_bytesboardper platformBytes of the application task’s stack: the task that runs registration,
memory.heap_bytesboard65536 (varies)Application heap arena size (bytes)

memory.app_stack_bytes

Bytes of the application task’s stack: the task that runs registration,

  • Set it in: system.toml, [image.<id>.knobs.memory] app_stack_bytes
  • Or for a board: nros-board.toml, [knobs] memory.app_stack_bytes
  • Scope: board
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

Bytes of the application task’s stack: the task that runs registration, Executor::open and the spin loop. One knob on every platform that sizes it (FreeRTOS, ThreadX, and bare-metal mps2-an385, where the application runs on the main stack); each platform’s build converts it to the unit its RTOS configuration takes, in the one place that writes that configuration. Unset, the board’s own default applies (FreeRTOS: 128 KiB on the cargo road, 64 KiB on the cmake road; ThreadX rv-virt: 512 KiB; mps2-an385 bare metal: 256 KiB, a whole number of KiB so the MPU guard below it stays aligned), raised to the measured stack floor where the build walks one.

memory.heap_bytes

Application heap arena size (bytes)

  • Set it in: system.toml, [image.<id>.knobs.memory] heap_bytes
  • Or for a board: nros-board.toml, [knobs] memory.heap_bytes
  • Scope: board
  • Values: an integer
  • Default: the first that applies:
    • 1048576 if the image uses Cyclone DDS
    • -1 if the image has lifecycle nodes (-1: derived from its state machines and nodes)
    • -1 if the image has parameter services (-1: derived from the nodes serving them)
    • 114688 if the image seeds a parameter store
    • 131072 if the image has Rust code
    • 65536 otherwise

Bytes of the application heap. On FreeRTOS it is heap_4’s arena (configTOTAL_HEAP_SIZE; the board build converts it to the KiB its FreeRTOSConfig.h takes, and derives it when unset). On Zephyr it is the nros heap arena, with the defaults below. ThreadX’s byte pool is its own knob, threadx.byte_pool_bytes. On bare metal (mps2-an385, stm32f4) it is the platform crate’s static free-list heap, read at compile time (defaults 128 KiB and 32 KiB).

A PARAM_SERVICES image, one whose launch seeds a parameter (NROS_PARAMS_STORE), and a LIFECYCLE one get 192 KiB: those capabilities allocate their services’ buffers from this arena, and nothing sized it from the declaration, so such an image LINKED and then halted at boot.

The PARAMETER STORE is NOT in this arena any more. Those two symbols are exactly what makes nros-params carve the store out of the executor’s .bss backing (nros_params::IMPLIED_STORE_SLOTS), so the store’s ~8.5 KiB a slot – 285,696 bytes at the default 32 slots, the HEAP EXHAUSTED (TOO SMALL): request 285696 such an image used to halt with – moved to the linker and out of this default. It was 512 KiB for param_services until 2026-10-09; MEASURED after the move, zephyr_cpp_params (both axes) boots at 192 KiB, prints parameter store: 32 slots (285696 B) carved from the executor backing and reads its launch-seeded 250 back. A store only application code reaches is invisible to the build, stays on this heap, and is refused at run time with its size.

MEASURED on native_sim/native/64 (boot record, live router, read-boot-report.py --heap-headroom), on features’ images that declare BOTH axes: zephyr_cpp_params peaks at 111,360 without the store (46,848 with param_services alone, so lifecycle costs ~64.5 KiB – five services, each owning a 2 x 4,096-byte buffer pair); the Rust params image at 114,144 without it, and the lifecycle and qos images’ peaks less the store at 113,904 and 120,896. Worst + the 24,576-byte floor is 145,472, hence 192 KiB for LIFECYCLE.

An image with param_services (or a seeded store) and no lifecycle gets 112 KiB, Rust included: the 64 KiB default plus the 46,848-byte param_services peak above. A Rust image used to get 192 KiB here, because its 114,144 peak was taken on the both-axes image and not split. MEASURED split since: features’ zephyr_rust_params on native_sim/native/64, which declares the lifecycle capability but runs no managed node, peaks at 45,840 B. And 192 KiB is what stopped a stock Rust action server linking on nucleo_f767zi (384 KiB SRAM): RAM overflowed by 77,504 B, and the 81,920 B this saves is what fits it. Since the stock node interfaces are on in every image, 192 KiB there put 128 KiB of unused heap on every C/C++ zenoh image, and a nucleo_f767zi serial talker no longer fit. That 46,848 is the ONE-NODE case: zephyr_cpp_params serves the parameter services on one node. The cost is per NODE, since each of a node’s six parameter services owns a 2 x PARAM_SERVICE_BUFFER_SIZE buffer pair. So an image serving them on several nodes does not fit 112 KiB: the four-node derived-sched-tasks image ran it dry at boot. The same holds for the 192 KiB lifecycle arm, which was measured when a lifecycle state machine owned five such pairs; its servers’ buffers are now sized for the lifecycle messages, 1,744 B per machine. So on Zephyr the param_services and lifecycle arms are the -1 derive sentinel. The configure starts from the arm the image had (112 KiB for param_services, 192 KiB for lifecycle) and adds (nodes - 1) x (12 x PARAM_SERVICE_BUFFER_SIZE) and (machines - 1) x 1,744 B of lifecycle buffers, each plus a measured remainder, from the counts in the image’s entity inventory (zephyr/cmake/nros_heap_floor.cmake). One node and one machine derive exactly the arm; with no inventory to count from, the image keeps the arm. A value stated here, in the environment, or in the image’s [image.<id>.knobs.memory] heap_bytes still wins, and one below the derived floor is warned about at configure. An image that only seeds a store, without the services, keeps its flat arm.

A CYCLONE image gets 1 MiB: ddsrt’s whole heap lands here since the Zephyr road compiles the platform funnel (heap/nros/heap.c), where it used to be picolibc’s 16 MiB arena. MEASURED on native_sim/native/64, c/talker cyclonedds: 840 nros_platform_alloc calls and a 153,072-byte peak by the first dds_write (gdb); 1 MiB is ~6.8x that, for discovery and samples in flight a peerless run does not reach. A Rust Cyclone image’s Rust allocations share it.

A RUST application gets twice the default: its Rust alloc goes through this arena too – it used to land in a second, unpriced heap (zephyr-lang-rust’s CONFIG_RUST_ALLOC over libc malloc). MEASURED one-heap peaks on native_sim/native/64 (boot record, 10 s against a live peer): rust/talker xrce 46,256; rust/listener zenoh 42,304; rust/action-server zenoh 58,288 – which leaves 7,760 bytes of a 64 KiB arena and is refused by read-boot-report.py --heap-headroom. 128 KiB keeps the 24,576-byte floor over the worst of them.

A C or C++ zenoh image keeps 64 KiB. MEASURED peaks (boot record, 20-40 s against a live peer, Zephyr 3.7): talker 13,472 on mps2_an385 (C and C++), 11,664 on nucleo_f767zi (serial, Renode twin), 16,544 on native_sim/native/64; and on native_sim, listener 15,984, service server 16,816, service client 20,496, action server 33,648, action client 33,568 (C and C++ alike). The action images set the default: 33,648 + the 24,576-byte floor is 58,224. A C image that declares no action could take 48 KiB; nothing in Kconfig knows what an image declares, so that image states it.

Size of the rlsf arena in nros-platform’s zephyr_heap, which backs BOTH z_malloc and __rust_alloc since the allocation funnel moved off Zephyr’s kernel heap.

CONFIG_HEAP_MEM_POOL_SIZE does NOT govern application allocation any more; this does. An application that outgrows the arena does not fault or log – it stops, so size this to what the application actually needs rather than leaving the default in place and inferring from a hang.

An memory.heap_bytes environment variable overrides this value.

The boot record’s capacity word reads this value + 512: zpico-alloc carves an 8 x 64 B slab beside the arena, so a configured 102400 reads 102912. Size from a dump with read-boot-report.py --heap-headroom, which judges the RUNNING peak (as of the dump) against a 24,576-byte floor and names the knob (peak + floor - 512); take the dump after the host graph has joined, not at boot.

PERMANENTLY OPERATOR-STATED beyond those defaults. The arena’s peak is a RUNTIME property: it moves with what the peers send (discovery, the graph, samples in flight), which nothing in the image declares, so no build can derive it. The defaults above are floors per declared capability; the measured peak, read off the boot record by read-boot-report.py --heap-headroom, is how an image is sized past them, and it names the value to state.

net

Knobs for the network stack.

KnobScopeDefaultWhat it is
net.buffer_bytesboardper platform(no description yet)
net.connect_timeout_msboardper platform(no description yet)
net.max_socketsboardper platform(no description yet)
net.max_udp_socketsboardper platform(no description yet)
net.socket_timeout_msboardper platform(no description yet)

net.buffer_bytes

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.net] buffer_bytes
  • Or for a board: nros-board.toml, [knobs] net.buffer_bytes
  • Scope: board
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

net.connect_timeout_ms

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.net] connect_timeout_ms
  • Or for a board: nros-board.toml, [knobs] net.connect_timeout_ms
  • Scope: board
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

net.max_sockets

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.net] max_sockets
  • Or for a board: nros-board.toml, [knobs] net.max_sockets
  • Scope: board
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

net.max_udp_sockets

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.net] max_udp_sockets
  • Or for a board: nros-board.toml, [knobs] net.max_udp_sockets
  • Scope: board
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

net.socket_timeout_ms

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.net] socket_timeout_ms
  • Or for a board: nros-board.toml, [knobs] net.socket_timeout_ms
  • Scope: board
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

params

Knobs for parameters and their services.

KnobScopeDefaultWhat it is
params.events_depthimage1/parameter_events publisher history depth
params.max_array_lenimage-1Array parameter capacity in elements (-1 = derive)
params.max_byte_array_bytesimage-1Byte-array parameter capacity in bytes (-1 = derive)
params.max_constraints_bytesimage0Parameter additional_constraints capacity in bytes
params.max_description_bytesimage256Parameter description capacity in bytes
params.max_name_bytesimage-1Longest parameter name in bytes (-1 = derive)
params.max_parametersimage-1Maximum declared parameters per image (-1 = derive)
params.max_string_array_lenimage-1String-array parameter capacity in elements (-1 = derive)
params.max_string_value_bytesimage-1String parameter capacity in bytes (-1 = derive)
params.service_inbox_bytesimage-1Parameter/lifecycle service inbox slot size (bytes, -1 = derive)
params.service_inbox_depthimage1Parameter/lifecycle service inbox ring depth

params.events_depth

/parameter_events publisher history depth

  • Set it in: system.toml, [image.<id>.knobs.params] events_depth
  • Or for a board: nros-board.toml, [knobs] params.events_depth
  • Scope: image
  • Values: an integer from 1 to 1000
  • Default: 1

History depth of each node’s /parameter_events publisher, read by nros-params build.rs. Upstream’s parameter_events profile is KEEP_LAST(1000); a reliable DDS writer reserves that history, so an RTOS image defaults to 1. Depth is not a QoS matching criterion, so a subscriber with upstream’s profile still matches.

params.max_array_len

Array parameter capacity in elements (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.params] max_array_len
  • Or for a board: nros-board.toml, [knobs] params.max_array_len
  • Scope: image
  • Values: an integer
  • Default: -1

Elements a bool_array, integer_array or double_array parameter can hold (nros-params build.rs). A string_array has its own element bound, MAX_STRING_ARRAY_LEN.

-1 DERIVES 0 when the contract’s params: declare none of those types. When one is declared, state a number here; the build refuses, naming the parameter and this knob, if nothing does. Without a declaration the crate default of 32 stands.

params.max_byte_array_bytes

Byte-array parameter capacity in bytes (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.params] max_byte_array_bytes
  • Or for a board: nros-board.toml, [knobs] params.max_byte_array_bytes
  • Scope: image
  • Values: an integer
  • Default: -1

Bytes a byte_array parameter can hold (nros-params build.rs).

-1 DERIVES 0 when the contract’s params: declare no byte_array. When one is declared, state a number here; the build refuses, naming the parameter and this knob, if nothing does. Without a declaration the crate default of 256 stands.

params.max_constraints_bytes

Parameter additional_constraints capacity in bytes

  • Set it in: system.toml, [image.<id>.knobs.params] max_constraints_bytes
  • Or for a board: nros-board.toml, [knobs] params.max_constraints_bytes
  • Scope: image
  • Values: an integer from 0 to 256
  • Default: 0

Longest additional_constraints a parameter’s descriptor can hold (nros-params build.rs) – the free text ros2 param describe prints and rclc’s rclc_add_parameter_description takes as its fourth argument. Paid once per store slot whatever the slot holds.

A board fact, never derived, exactly like params.max_description_bytes beside it. It has its OWN knob rather than sharing that one, and the DEFAULT IS 0: the describe reply’s derived buffer prices CAPACITY, not use, so sharing would have cost every image 256 bytes per parameter for a field it never sets – 2,048 bytes on an eight-parameter image, taking its reply past the 4,096 fallback. State a number here to use the field. Longer text is truncated at a character boundary and logged once per parameter, naming this knob.

params.max_description_bytes

Parameter description capacity in bytes

  • Set it in: system.toml, [image.<id>.knobs.params] max_description_bytes
  • Or for a board: nros-board.toml, [knobs] params.max_description_bytes
  • Scope: image
  • Values: an integer from 0 to 256
  • Default: 256

Longest DESCRIPTION a parameter’s descriptor can hold (nros-params build.rs). Paid once per store slot whatever the slot holds, like the other per-slot limits.

A board fact, never derived: the contract states a parameter’s name and type, not its description. 0 is a real choice meaning “no descriptions”. A longer description is truncated at a character boundary and logged once per parameter, naming this knob. 256 is the most an rcl_interfaces describe reply carries.

params.max_name_bytes

Longest parameter name in bytes (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.params] max_name_bytes
  • Or for a board: nros-board.toml, [knobs] params.max_name_bytes
  • Scope: image
  • Values: an integer
  • Default: -1

Per-slot name capacity of the parameter store (nros-params build.rs).

-1 DERIVES it from the contract’s params: – the longest declared name, and never shorter than use_sim_time. Without a declaration the crate default of 64 stands.

params.max_parameters

Maximum declared parameters per image (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.params] max_parameters
  • Or for a board: nros-board.toml, [knobs] params.max_parameters
  • Scope: image
  • Values: an integer
  • Default: -1

Static parameter-store pool size (nros-params build.rs). A node declaring more parameters than this is refused at boot: the runtime logs the node, the parameter and this knob, and the declaration fails (C++ stops the boot with Full, -6). The Autoware trajectory follower declares ~150.

-1 DERIVES it from the contract’s params:: every declared parameter plus one use_sim_time per node, which nano-ros declares on every node. An image whose contract declares no parameters (or declares them on only some nodes) falls through to the crate default of 32. Stating a number here WINS.

params.max_string_array_len

String-array parameter capacity in elements (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.params] max_string_array_len
  • Or for a board: nros-board.toml, [knobs] params.max_string_array_len
  • Scope: image
  • Values: an integer
  • Default: -1

Elements a string_array parameter can hold (nros-params build.rs); each element is bounded by MAX_STRING_VALUE_LEN. A string array is the largest value a slot can hold (elements x string length), and every slot is as large as the largest value, so this bound is kept apart from MAX_ARRAY_LEN: an image with a string and a double_array but no string_array pays for neither product.

-1 DERIVES 0 when the contract’s params: declare no string_array. When one is declared, state a number here; the build refuses, naming the parameter and this knob, if nothing does. Without a declaration the crate default of 32 stands.

params.max_string_value_bytes

String parameter capacity in bytes (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.params] max_string_value_bytes
  • Or for a board: nros-board.toml, [knobs] params.max_string_value_bytes
  • Scope: image
  • Values: an integer
  • Default: -1

Longest string a string or string_array parameter can hold, and the capacity of a parameter DESCRIPTION (nros-params build.rs). Every store slot is as large as the largest value the limits allow, so this is paid once per slot whatever the slot holds.

-1 DERIVES 0 when the contract’s params: declare no string, which is what takes a scalar-only image’s slot from ~8.9 KiB to 168 bytes; at 0 no parameter can carry a description either. When a node DOES declare a string the contract cannot say how long it may be – that is a fact about the board – so state a number here, and the build refuses, naming the parameter and this knob, if nothing does. Without a declaration the crate default of 256 stands.

params.service_inbox_bytes

Parameter/lifecycle service inbox slot size (bytes, -1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.params] service_inbox_bytes
  • Scope: image
  • Values: an integer
  • Default: -1

Bytes one request slot holds in the inbox ring of each ROS parameter service queryable (six per node) and each REP-2002 lifecycle service queryable (five per node).

-1 means DERIVE it, which is what almost every image wants: nros-node and nros-rmw-zenoh then size the slot from the contract’s declared parameters, as the largest request a set_parameters over the worst-declared node can produce, against the parameter store’s resolved capacities. For example, a largest set_parameters of 1015 bytes gives a 1016-byte slot (rounded to the slot alignment).

Any other value STATES the size and wins over the derivation. A stated size smaller than the declarations can produce FAILS THE BUILD naming this symbol, rather than dropping a well-formed request at run time. 0 is not a size and is refused: it used to be this symbol’s derive sentinel, and the readers took it literally. On XRCE the same number is XRCE_PARAM_REQUEST_BYTES, which raises xrce.service_request_buffer_bytes to fit it.

Not under NROS_RMW_ZENOH, unlike PARAMS_SERVICE_INBOX_DEPTH (whose ring only a caller-inbox backend allocates): nros-node and the XRCE backend read this size too, so an XRCE image must be able to state it. Under the zenoh if it was undeclared there, while XRCE’s own refusal told the user to set it. Maps to params.service_inbox_bytes.

params.service_inbox_depth

Parameter/lifecycle service inbox ring depth

  • Set it in: system.toml, [image.<id>.knobs.params] service_inbox_depth
  • Scope: image
  • Values: an integer
  • Default: 1

Requests one parameter or lifecycle service queryable holds before the newest is dropped.

One, because this traffic is one request and one reply from a client that waits: ros2 param and rclcpp’s SyncParametersClient block on each call, and a node’s six services are polled serially in one spin. Two clients hitting the SAME service of the SAME node inside one spin period is the only case depth 1 loses, and the loser sees a timeout and retries. Raise it to 2 for an image that serves a parameter dashboard. Must be >= 1. Maps to params.service_inbox_depth.

pubsub

Knobs for publishers and subscriptions.

KnobScopeDefaultWhat it is
pubsub.qos_depthimage10QoS history depth the arena budgets per subscription

pubsub.qos_depth

QoS history depth the arena budgets per subscription

  • Set it in: system.toml, [image.<id>.knobs.pubsub] qos_depth
  • Scope: image
  • Values: an integer
  • Default: 10

How deep a history the executor arena reserves for each pub/sub callback slot. 10 is ROS 2’s own default – rmw_qos_profile_default is KEEP_LAST(10), which is what a subscription created with no QoS argument actually gets – so an image that says nothing here is sized the way ROS would size it.

STATE 1 IF YOUR SUBSCRIPTIONS ARE KEEP_LAST(1), and the saving is large rather than marginal. The buffer shape is a step function, not a slope: depth 1 is a TripleBuffer of 3 slots and anything deeper is an SpscRing of depth+1, so the default budgets 11 slots where 3 would do. For example, an image with 11 subscriptions, 4 timers and 2 service servers measured 144,584 bytes of arena at 10, 53,504 at 1.

This is the IMAGE-WIDE number. A per-endpoint answer is derived instead from <stem>.contract.yaml’s qos.depth when EVERY endpoint states one; that is finer, needs no knob, and this value still wins over it – env > Kconfig/board > derived > default, the ladder every derivable knob follows.

TOO SMALL IS NOT A SMALLER BUFFER. The arena is sized from this, and an arena that does not fit halts during entity creation, before the first spin – so raise it, or state the depths, rather than trimming it to fit.

rmw

Knobs for the RMW layer, backend-independent.

KnobScopeDefaultWhat it is
rmw.local_queryableimage-1Same-session query delivery (-1 = derive, 0 = off, 1 = on)
rmw.max_backendsimageper platform(no description yet)
rmw.max_nodesimageper platform(no description yet)
rmw.message_info_slotsimageper platform(no description yet)
rmw.subscriber_slot_bytesimageper platform(no description yet)
rmw.subscriber_slotsimage-1Static subscription-handle slots (no_std targets) (-1 = derive)

rmw.local_queryable

Same-session query delivery (-1 = derive, 0 = off, 1 = on)

  • Set it in: system.toml, [image.<id>.knobs.rmw] local_queryable
  • Scope: image
  • Values: an integer from -1 to 1
  • Default: -1

Maps to Z_FEATURE_LOCAL_QUERYABLE, zenoh-pico’s same-session query path. Every node of a Zephyr image shares ONE zenoh session, and neither zenoh-pico nor the router sends a query back to the session it came from. So a service client and a service server in the SAME image never meet without this: the call goes out, no server answers, and nothing reports it (for example, a request from one node never reaches the server node beside it in the same image).

-1 DERIVES it from the image’s entity inventory: on when the image declares at least one service client (an action client counts, it opens three) AND at least one service server (an action server counts, three queryables), off otherwise. An image with only one side of a service pays nothing for a path it cannot use. The sibling for topics, Z_FEATURE_LOCAL_SUBSCRIBER, is always on.

Stating 0 or 1 WINS over the derivation, as for every derivable knob. Where the inventory cannot answer (a component that declares nothing), the knob keeps zenoh-pico’s own default, 0, and the configure says so.

The name is the RMW’s, not zenoh’s, because the boot record in nros-node carries the resolved value and its rung, and a core crate names no backend. Only the zenoh backend consumes it.

rmw.max_backends

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.rmw] max_backends
  • Or for a board: nros-board.toml, [knobs] rmw.max_backends
  • Scope: image
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

rmw.max_nodes

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.rmw] max_nodes
  • Or for a board: nros-board.toml, [knobs] rmw.max_nodes
  • Scope: image
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

rmw.message_info_slots

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.rmw] message_info_slots
  • Or for a board: nros-board.toml, [knobs] rmw.message_info_slots
  • Scope: image
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

rmw.subscriber_slot_bytes

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.rmw] subscriber_slot_bytes
  • Or for a board: nros-board.toml, [knobs] rmw.subscriber_slot_bytes
  • Scope: image
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

rmw.subscriber_slots

Static subscription-handle slots (no_std targets) (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.rmw] subscriber_slots
  • Scope: image
  • Values: an integer
  • Default: -1

nros-rmw-cffi keeps subscription handles in a static slot pool on no_std targets, since there is no allocator to Box them into. The Nth+1 create_subscription returns BAD_ALLOC and the executor surfaces it as an opaque SubscriberCreationFailed, so this must be at least the number of subscriptions the image creates. Pool size is this x 1024 bytes. Read by nros-rmw-cffi build.rs.

-1 DERIVES this from the image’s entity inventory (nano_ros_node_register(... ENTITIES ...)). Stating a number here WINS and suppresses the derivation, which is a fine thing to do deliberately and a silent cost otherwise.

The derived value counts what the SESSION opens, which is not what the author declares: a declared action server is one entity that costs three queryables and two publishers, and an action client one subscription. Those multipliers live beside the calls that decide them.

NOT counted, because a feature enables them and the inventory cannot see it: the parameter (6) and lifecycle (5) service families. An image carrying either must state this knob.

runtime

Knobs for the component runtime.

KnobScopeDefaultWhat it is
runtime.component_slot_bytesimageper platform(no description yet)
runtime.max_cell_entitiesimageper platform(no description yet)
runtime.max_class_instancesimageper platform(no description yet)
runtime.max_componentsimageper platform(no description yet)

runtime.component_slot_bytes

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.runtime] component_slot_bytes
  • Or for a board: nros-board.toml, [knobs] runtime.component_slot_bytes
  • Scope: image
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

runtime.max_cell_entities

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.runtime] max_cell_entities
  • Or for a board: nros-board.toml, [knobs] runtime.max_cell_entities
  • Scope: image
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

runtime.max_class_instances

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.runtime] max_class_instances
  • Or for a board: nros-board.toml, [knobs] runtime.max_class_instances
  • Scope: image
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

runtime.max_components

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.runtime] max_components
  • Or for a board: nros-board.toml, [knobs] runtime.max_components
  • Scope: image
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

service

Knobs for service servers and clients.

KnobScopeDefaultWhat it is
service.inbox_bytesimage-1Service inbox slot size (bytes, -1 = derive)
service.inbox_depthimage4Service inbox ring depth
service.timeout_msimageper platform(no description yet)

service.inbox_bytes

Service inbox slot size (bytes, -1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.service] inbox_bytes
  • Scope: image
  • Values: an integer
  • Default: -1

Bytes one request slot holds in the inbox ring of every USER service server (a zenoh queryable). The parameter and lifecycle services do not share it: they bring their own ring, sized by nros-node from the contract’s declared parameters. Maps to service.inbox_bytes in nros-rmw-zenoh’s build script. A request larger than this is dropped with TransportError::MessageTooLarge.

-1 means DERIVE it: the largest bound among the pkg/srv/Name_Request types this image’s declared service servers and clients carry, which codegen prices and the entity inventory joins. Any other value is yours and WINS. If NOTHING derives – no contract, or one request type with no static bound – the crate falls through to NROS_SERVICE_BUFFER_SIZE (1024), and the configure says which.

The derivation outranks the DEPRECATED alias NROS_SERVICE_BUFFER_SIZE and nothing else: to pin a size, state THIS symbol.

Per queryable the ring costs service.inbox_depth x (service.inbox_bytes + 12) plus a fixed header; a static-memory report of the image prices it exactly.

service.inbox_depth

Service inbox ring depth

  • Set it in: system.toml, [image.<id>.knobs.service] inbox_depth
  • Scope: image
  • Values: an integer
  • Default: 4

Requests one USER service server holds before the newest is dropped. 4 was chosen for the action path (a burst of queries in one read-task batch) and every family paid it; the parameter family’s own depth is 1, on its own ring. Must be >= 1. Maps to service.inbox_depth.

service.timeout_ms

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.service] timeout_ms
  • Or for a board: nros-board.toml, [knobs] service.timeout_ms
  • Scope: image
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

sntp

Knobs for SNTP time.

KnobScopeDefaultWhat it is
sntp.serverimage10.0.2.2SNTP server (host or IP)
sntp.timeout_msimage3000SNTP reply timeout (ms)

sntp.server

SNTP server (host or IP)

  • Set it in: system.toml, [image.<id>.knobs.sntp] server
  • Scope: image
  • Values: a string
  • Default: 10.0.2.2

The server the sntp clock source queries. The default is the QEMU/slirp host address, where an emulated board reaches a host-side time source.

sntp.timeout_ms

SNTP reply timeout (ms)

  • Set it in: system.toml, [image.<id>.knobs.sntp] timeout_ms
  • Scope: image
  • Values: an integer from 100 to 60000
  • Default: 3000

How long one SNTP query waits for its reply. clock.sntp_attempts says how many queries boot sends.

subscriber

Knobs for subscriber buffers.

KnobScopeDefaultWhat it is
subscriber.buffer_bytesimage-1Per-subscriber static buffer size (-1 = derive)

subscriber.buffer_bytes

Per-subscriber static buffer size (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.subscriber] buffer_bytes
  • Scope: image
  • Values: an integer
  • Default: -1

Size of the static buffer for each subscriber slot (bytes) – the SMALL zenoh payload class. Maps to subscriber.buffer_bytes (one name: the executor arena reads it too).

-1 means DERIVE it from this image’s message-bound inventory: the largest derived bound at or under the small/large class split (zenoh.subscriber_large_threshold_bytes, 2048 by default; it has no Kconfig row). Any other value is yours and WINS.

READ THIS BEFORE TRUSTING THE DERIVED NUMBER. The inventory holds every type in the LINKED interface closure, not only the ones you subscribe to, so the derived size is an UPPER BOUND: too big, never too small. For example, an image can derive 1496 B, set by std_msgs/Float64MultiArray, against 880 B for the largest type it actually receives – the difference is the price of deriving from linked types rather than from the entities the image declares. The configure prints which type set the number; if it is one you do not receive, state your own value here.

If ANY type in the closure has no derived bound, NOTHING is derived and the crate default (1024) applies – the configure says so and names the types. Deriving over the bounded subset would publish a maximum a real sample can exceed, which is a SILENT drop on the C++ arena path.

xrce

KnobScopeDefaultWhat it is
xrce.buffer_bytesimage1024Per-slot static buffer size
xrce.builtin_service_request_buffer_bytesimagechosen by the build(no description yet)
xrce.builtin_service_serversimagechosen by the build(no description yet)
xrce.custom_transport_mtuboardNROS_XRCE_TRANSPORT_MTUXRCE custom-transport MTU
xrce.graph_resync_msimage5000Graph re-sync period (ms)
xrce.max_service_clientsimage-1Maximum concurrent service clients
xrce.max_service_serversimage-1Maximum concurrent service servers
xrce.max_subscribersimage-1Maximum concurrent subscribers
xrce.service_reply_buffer_bytesimage-1Service-client reply slot size
xrce.service_request_buffer_bytesimage-1Service-server request ring entry size
xrce.stream_historyimage16Reliable stream history depth
xrce.subscriber_buffer_bytesimage-1Subscriber ring entry size
xrce.subscriber_ring_depthimage32Queued samples per subscriber
xrce.transport_mtuboard512XRCE transport MTU

xrce.buffer_bytes

Per-slot static buffer size

  • Set it in: system.toml, [image.<id>.knobs.xrce] buffer_bytes
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer
  • Default: 1024

Size of the static buffer for each subscriber/service slot (bytes). Maps to XRCE_BUFFER_SIZE.

This is the DEFAULT of the three per-family sizes (xrce.subscriber_buffer_bytes, xrce.service_request_buffer_bytes, xrce.service_reply_buffer_bytes), not an array size of its own. It stays the one lever that moves every receive buffer at once; state a family option instead when only one of them needs the room.

xrce.builtin_service_request_buffer_bytes

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.xrce] builtin_service_request_buffer_bytes
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

xrce.builtin_service_servers

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.xrce] builtin_service_servers
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

xrce.custom_transport_mtu

XRCE custom-transport MTU

  • Set it in: system.toml, [image.<id>.knobs.xrce] custom_transport_mtu
  • Or for a board: nros-board.toml, [knobs] xrce.custom_transport_mtu
  • Scope: board
  • Package: nros_rmw_xrce
  • Values: an integer from 128 to 65535
  • Default: NROS_XRCE_TRANSPORT_MTU

MTU of the CUSTOM transport, which on Zephyr is the ONLY transport compiled in (see xrce.transport_mtu for why). It sizes the two per-session reliable stream buffers, so the session struct carries 2 x this x xrce.stream_history bytes. Maps to UCLIENT_CUSTOM_TRANSPORT_MTU.

Defaults to xrce.transport_mtu so an image states ONE MTU and gets it on whichever transport it actually links. Set this separately only when an image links both an IP transport and a custom one and they need different frame budgets.

xrce.graph_resync_ms

Graph re-sync period (ms)

  • Set it in: system.toml, [image.<id>.knobs.xrce] graph_resync_ms
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer from 0 to 3600000
  • Default: 5000

How often an XRCE session re-reads the ROS 2 graph, in milliseconds. 0 turns the re-sync off. Maps to XRCE_GRAPH_RESYNC_MS.

XRCE carries data samples only, never DDS discovery, so a participant that leaves is seen through the last ros_discovery_info sample it publishes. When that sample never reaches the session (the Agent loses it, or the participant crashes), the re-sync is what notices: every period the session re-creates its ros_discovery_info reader, and a participant that does not re-announce itself to the new reader is dropped from the graph and the graph-change event fires. A departure is then seen within 2 x this period, plus the DDS lease (20 s by Fast-DDS default) for a crash.

It runs only once the session reads the graph (a node-name query or a graph-change registration). Each period costs one reader re-create and one re-delivered sample per live DDS participant on the link; an image that never reads the graph pays nothing.

xrce.max_service_clients

Maximum concurrent service clients

  • Set it in: system.toml, [image.<id>.knobs.xrce] max_service_clients
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer
  • Default: -1

Maximum number of concurrent XRCE service clients. Maps to XRCE_MAX_SERVICE_CLIENTS.

-1 means DERIVE: the XRCE build reads the image’s sizing descriptor and takes its declared service clients plus three per action client (send_goal, cancel_goal, get_result). Zero is a legitimate derived answer. With no descriptor, or one that does not state both counts, the crate default of 4 stands. Stating a number wins.

xrce.max_service_servers

Maximum concurrent service servers

  • Set it in: system.toml, [image.<id>.knobs.xrce] max_service_servers
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer
  • Default: -1

Maximum number of concurrent XRCE service servers. Maps to XRCE_MAX_SERVICE_SERVERS.

-1 means DERIVE, on every road from the image’s sizing descriptor: the application’s service servers, three per action server, six per node serving the parameter services and five per managed node, one slot each. It is not the zenoh queryable count: zenoh shares one queryable among a managed node’s five lifecycle servers, and an XRCE server takes a slot of its own. Zero is a legitimate derived answer here. Stating a number wins.

xrce.max_subscribers

Maximum concurrent subscribers

  • Set it in: system.toml, [image.<id>.knobs.xrce] max_subscribers
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer
  • Default: -1

Maximum number of concurrent XRCE subscribers. Maps to XRCE_MAX_SUBSCRIBERS.

-1 means DERIVE: take the count from the image’s entity inventory (nano_ros_node_register(... ENTITIES ...)), the same NROS_DERIVED_MAX_SUBSCRIBERS the zenoh pools use, so an action-carrying image gets its action-client subscriptions counted too.

An image whose inventory refuses – any component that declared no ENTITIES – falls through to the crate default of 8. Stating a number here still wins over both.

This is worth deriving: a slot is XRCE_SUBSCRIBER_RING_DEPTH x XRCE_BUFFER_SIZE (32 x 1024) plus bookkeeping, so eight of them are 266,368 bytes of the session struct – 86% of it on a one-subscriber image, allocated from the Zephyr heap in a single request.

xrce.service_reply_buffer_bytes

Service-client reply slot size

  • Set it in: system.toml, [image.<id>.knobs.xrce] service_reply_buffer_bytes
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer
  • Default: -1

Size of one service-client reply inbox (bytes). Maps to XRCE_SERVICE_REPLY_BUFFER_SIZE.

-1 DERIVES it: the largest reply any declared client receives (the sizing descriptor’s reply_bound_bytes, over an action client’s three responses) plus the 4-byte CDR header. A reply above xrce.buffer_bytes now RAISES the slot rather than being dropped on arrival. One unpriced reply keeps xrce.buffer_bytes, and the build says which. Stating a number wins.

xrce.service_request_buffer_bytes

Service-server request ring entry size

  • Set it in: system.toml, [image.<id>.knobs.xrce] service_request_buffer_bytes
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer
  • Default: -1

Size of one service-server request inbox entry (bytes). Maps to XRCE_SERVICE_REQUEST_BUFFER_SIZE.

-1 DERIVES it, from the APPLICATION’s declared servers: their largest request (wire_bound_bytes, over an action server’s three) plus the 4-byte CDR header. That is sound because the parameter (6 per node) and lifecycle (5) services, which no [[endpoint]] row itemises, have slots of their own: the cargo lane derives xrce.builtin_service_servers beside the server total, and those slots take xrce.buffer_bytes raised to the parameter family’s largest request (params.service_inbox_bytes, or derived from the contract’s params:). The derivation abstains, and says so, when a server row is unpriced or the rows do not account for every application server, and when xrce.max_service_servers is stated (the split is then not derived and every server shares one buffer, raised and refused as before). A value too large for the reliable stream’s reassembly window (xrce.stream_history fragments of the transport MTU) fails the build.

xrce.stream_history

Reliable stream history depth

  • Set it in: system.toml, [image.<id>.knobs.xrce] stream_history
  • Or for a board: nros-board.toml, [knobs] xrce.stream_history
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer from 2 to 16
  • Default: 16

Reliable stream history depth for XRCE-DDS. Must be >= 2. Maps to XRCE_STREAM_HISTORY.

Defaults to 16 to match XRCE_STREAM_HISTORY in packages/rmw/xrce/nros-rmw-xrce/src/internal.h. This option was once inert (exported under a name nothing read), so the C default of 16 is what Zephyr XRCE images have always compiled; a default of 4 here would have shrunk every reliable stream buffer 4x the moment the knob started working. Raise or lower deliberately, not as a side effect.

xrce.subscriber_buffer_bytes

Subscriber ring entry size

  • Set it in: system.toml, [image.<id>.knobs.xrce] subscriber_buffer_bytes
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer
  • Default: -1

Size of one subscriber ring entry (bytes). Maps to XRCE_SUBSCRIBER_BUFFER_SIZE.

The biggest of the three families by a wide margin: a slot is xrce.subscriber_ring_depth entries and the image holds xrce.max_subscribers slots, so 32 x 8 copies of this number against 4 and 1 for the two service families. Sharing one size with them meant every subscriber entry paid for the largest type a SERVICE carries, and the other way round.

-1 is the DERIVE sentinel: the build takes the largest wire bound over the subscriptions this image declares, plus the 4-byte CDR header, and falls back to xrce.buffer_bytes when the declaration does not price every one of them. It moves together with the ring depth or not at all — see XRCE_SUBSCRIBER_RING_DEPTH in nros-rmw-xrce/src/internal.h for why one of the two alone can make the pool LARGER.

xrce.subscriber_ring_depth

Queued samples per subscriber

  • Set it in: system.toml, [image.<id>.knobs.xrce] subscriber_ring_depth
  • Scope: image
  • Package: nros_rmw_xrce
  • Values: an integer from 1 to 1024
  • Default: 32

How many samples one subscriber slot buffers before the topic callback drops the newest. Maps to XRCE_SUBSCRIBER_RING_DEPTH.

This is the OTHER multiplier of a subscriber slot: a slot costs xrce.subscriber_ring_depth x xrce.buffer_bytes (32 x 1024 by default) plus bookkeeping. The slot COUNT is derived from the image’s declared entities (xrce.max_subscribers); this is the per-slot DEPTH, and it is deliberately NOT derivable – no inventory knows how deep a burst a subscriber must survive. It is a policy, so it is stated.

On Zephyr this option is the only way to change the depth: a Zephyr cargo build sees ONLY the knobs the _nros_resolve_knob resolver forwards, and shell exports do not survive it. 32 is the value every Zephyr XRCE image has always compiled; this option makes it reachable without moving it.

Depth 32 exists because the Agent batches a whole publish burst onto the input stream inside one uxr_run_session_time call, so the listener cannot drain between callbacks – see the comment on XRCE_SUBSCRIBER_RING_DEPTH in nros-rmw-xrce/src/internal.h before lowering it. A node that publishes only, or reads a slow topic, can drop it to 1 and save 31/32 of every subscriber slot.

xrce.transport_mtu

XRCE transport MTU

  • Set it in: system.toml, [image.<id>.knobs.xrce] transport_mtu
  • Scope: board
  • Package: nros_rmw_xrce
  • Values: an integer
  • Default: 512

MTU of the IP transports, and the value xrce.custom_transport_mtu defaults to. Also sizes the two per-session reliable stream buffers (MTU x xrce.stream_history each). Maps to UCLIENT_UDP_TRANSPORT_MTU, UCLIENT_TCP_TRANSPORT_MTU.

On Zephyr this option reaches the transport only through xrce.custom_transport_mtu. Both macros it maps to are declared inside #ifdef UCLIENT_PROFILE_UDP and NO Zephyr image defines that profile: the Zephyr transport is transport_nros_udp.c registered as a CUSTOM transport (xrce-config.txt binds UCLIENT_PROFILE_UDP to the posix_ip condition). Without that default, UCLIENT_CUSTOM_TRANSPORT_MTU would be 4096 — 2 x 4096 x 16 = 131,072 bytes of stream buffer, twice the whole 65,536-byte platform heap, before a single entity slot.

zenoh

KnobScopeDefaultWhat it is
zenoh.batch_multicast_bytesboardper platform(no description yet)
zenoh.batch_unicast_bytesboard1024Maximum unicast batch size
zenoh.connect_foreverimageper platform(no description yet)
zenoh.connect_timeout_msimageper platform(no description yet)
zenoh.frag_max_bytesboard2048Maximum reassembled message size
zenoh.get_poll_interval_msimage10Get poll interval (ms)
zenoh.get_reply_buffer_bytesimage4096Get reply buffer size
zenoh.graph_cache_bytesimage65536Graph liveliness cache size
zenoh.graph_discoveryimagetrue (varies)Keep a graph cache (liveliness subscriber on the whole domain)
zenoh.graph_max_entitiesimage0Entities you expect on this ROS 2 domain (0 = state the bytes instead)
zenoh.keyexpr_string_bytesimageper platform(no description yet)
zenoh.max_sessionsimagechosen by the build(no description yet)
zenoh.max_tl_publishersimagechosen by the build(no description yet)
zenoh.multicast_transportimagechosen by the build1 compiles zenoh-pico’s multicast transport, scouting and multicast
zenoh.publisher_tx_buffer_bytesimagechosen by the build(no description yet)
zenoh.read_priorityimage200zenoh-pico read task priority (normalised band, 0-255)
zenoh.rx_task_budget_framesimage-1zenoh read task frame budget (-1 = derive, else unbounded)
zenoh.rx_task_budget_rest_usimage-1zenoh read task rest after a full budget (us, -1 = derive)
zenoh.socket_timeout_msimage100zenoh-pico socket recv timeout (ms)
zenoh.subscriber_large_bytesimage-1Large-class payload buffer size (-1 = derive)
zenoh.subscriber_large_threshold_bytesimagechosen by the build(no description yet)
zenoh.subscriber_ring_depthimage4Receive ring depth per subscriber
zenoh.tl_retain_bytesimagechosen by the build(no description yet)
zenoh.tl_retain_depthimagechosen by the build(no description yet)
zenoh.tx_batchimagetruezenoh-pico tx batching (one send per executor spin)
zenoh.tx_batch_flush_msimage50zenoh-pico tx batch flush cadence (ms)
zenoh.tx_split_lockimagetruezenoh-pico split tx locking (append while sending)

zenoh.batch_multicast_bytes

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] batch_multicast_bytes
  • Or for a board: nros-board.toml, [knobs] zenoh.batch_multicast_bytes
  • Scope: board
  • Package: nros_rmw_zenoh
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

zenoh.batch_unicast_bytes

Maximum unicast batch size

  • Set it in: system.toml, [image.<id>.knobs.zenoh] batch_unicast_bytes
  • Or for a board: nros-board.toml, [knobs] zenoh.batch_unicast_bytes
  • Scope: board
  • Package: nros_rmw_zenoh
  • Values: an integer
  • Default: 1024

Maximum unicast batch size before fragmentation (bytes). Maps to zenoh.batch_unicast_bytes.

zenoh.connect_forever

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] connect_forever
  • Or for a board: nros-board.toml, [knobs] zenoh.connect_forever
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

zenoh.connect_timeout_ms

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] connect_timeout_ms
  • Or for a board: nros-board.toml, [knobs] zenoh.connect_timeout_ms
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

zenoh.frag_max_bytes

Maximum reassembled message size

  • Set it in: system.toml, [image.<id>.knobs.zenoh] frag_max_bytes
  • Or for a board: nros-board.toml, [knobs] zenoh.frag_max_bytes
  • Scope: board
  • Package: nros_rmw_zenoh
  • Values: an integer
  • Default: 2048

Maximum reassembled message size after defragmentation (bytes). Maps to zenoh.frag_max_bytes.

zenoh.get_poll_interval_ms

Get poll interval (ms)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] get_poll_interval_ms
  • Or for a board: nros-board.toml, [knobs] zenoh.get_poll_interval_ms
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer
  • Default: 10

Polling interval for pending get operations (milliseconds). Maps to zenoh.get_poll_interval_ms.

zenoh.get_reply_buffer_bytes

Get reply buffer size

  • Set it in: system.toml, [image.<id>.knobs.zenoh] get_reply_buffer_bytes
  • Or for a board: nros-board.toml, [knobs] zenoh.get_reply_buffer_bytes
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer
  • Default: 4096

Size of the buffer for get (service call) reply payloads (bytes). Maps to zenoh.get_reply_buffer_bytes.

zenoh.graph_cache_bytes

Graph liveliness cache size

  • Set it in: system.toml, [image.<id>.knobs.zenoh] graph_cache_bytes
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer
  • Default: 65536

Bytes of NUL-separated liveliness keyexprs the graph cache holds. Maps to zenoh.graph_cache_bytes.

The 65536 default is sized for a HOST-scale domain: upstream measured a box running one stock talker plus the ROS 2 daemon carrying 222 tokens, about 31 KB, at roughly 140 bytes per keyexpr.

It lands in .bss (inside g_sessions) whether or not the graph is ever queried, on every image with an IP link: g_sessions measured 82,752 B over TCP on mps2_an385 against 17,176 B on the serial nucleo_f767zi image, which derives zenoh.graph_discovery off and compiles the cache out. On a 256 KiB part it is a quarter of SRAM.

Nothing about this image can derive it: the cache holds the whole DOMAIN’s liveliness tokens, remote ones included. What can follow the target is a STATED count: zenoh.graph_max_entities (141 bytes an entity), set by the image or by a small board in its descriptor’s [knobs.zenoh] graph_max_entities. 8192 still holds ~58 tokens. Overflow is counted and reported by zpico_graph_cache_copy, never silently truncated, so a value that is too small shows up as a drop count rather than as a wrong answer.

zenoh.graph_discovery

Keep a graph cache (liveliness subscriber on the whole domain)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] graph_discovery
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: true or false
  • Default: the first that applies:
    • false if every zenoh link the image builds is serial or CAN
    • true otherwise

Maps to zenoh.graph_discovery (env zenoh.graph_discovery=0/1 wins over this for one build).

y: the session declares one liveliness SUBSCRIBER with history on @ros2_lv//** the first time a service client or a graph query needs it, and keeps every token of every node on the domain in a NROS_GRAPH_CACHE_SIZE-byte cache. service_is_ready, count_publishers, get_node_names and the other rcl graph queries answer from it.

y costs RAM: the cache is zenoh.graph_cache_bytes (65536 by default) of .bss in each zenoh session, compiled in only when this is y. On a part with little RAM to spare, size it to the domain with that knob: on a nucleo_f767zi Zephyr talker, y with an 8192-byte cache added 8,232 B. An image that then fails to link with “region ‘RAM’ overflowed” needs a smaller cache or that much RAM freed elsewhere.

n: no subscriber, no cache (the array is compiled out). The image still DECLARES its own node and entity tokens, so a host’s ros2 node list and ros2 topic info see it exactly as before; what goes is the reverse direction. Graph queries answer Unsupported. A service call is a z_get on the service key expression, matched by the router, so it works unchanged – only service_is_ready stops being able to say yes.

Why the default follows the link: a host running Autoware carries about 136 nodes, and joining it replays all of their tokens toward the image at once. Measured on one embedded image: over a 921,600-baud UART the burst overran the receive ring and stopped the read task; over TCP (QEMU, LAN9118) it exhausted a 1 MiB heap 2.3 s after joining. On a serial or CAN link the cache costs the link and buys nothing an image that makes no graph query of its own can use. An image that also compiles an IP link keeps the old default.

zenoh.graph_max_entities

Entities you expect on this ROS 2 domain (0 = state the bytes instead)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] graph_max_entities
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer
  • Default: 0

A DECLARED CAPABILITY, not a derivation. The graph cache holds one liveliness keyexpr for every entity of every node on the domain — remote nodes included — so nothing about this image can answer it. What an operator does know is roughly how many nodes and endpoints share the domain, and this takes that count.

The bytes follow from a measurement, not a model: a ROS 2 liveliness keyexpr runs ~140 bytes and the cache stores them NUL-separated with no index, so one entity costs 141 bytes. Upstream measured a host running one stock talker plus the ROS 2 daemon carrying 222 tokens.

0 means “I am stating the bytes instead” — NROS_GRAPH_CACHE_SIZE outranks this and keeps its own default, so nothing that already sets it changes.

UNDER-STATING IS NOT A SMALLER CACHE. Overflow is counted, never truncated, and a non-zero dropped count makes service_is_ready answer “cannot say”, which every caller reads as keep waiting; the node and topic list verbs discard the count entirely and simply under-report. Being generous costs .bss; being short costs a hang and a wrong graph answer.

zenoh.keyexpr_string_bytes

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] keyexpr_string_bytes
  • Or for a board: nros-board.toml, [knobs] zenoh.keyexpr_string_bytes
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer of 0 or more
  • Default: set per platform and board; nros knob list --platform <p> shows the value one platform gets, and which rung set it

zenoh.max_sessions

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] max_sessions
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

zenoh.max_tl_publishers

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] max_tl_publishers
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

zenoh.multicast_transport

1 compiles zenoh-pico’s multicast transport, scouting and multicast

  • Set it in: system.toml, [image.<id>.knobs.zenoh] multicast_transport
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

1 compiles zenoh-pico’s multicast transport, scouting and multicast declarations in, so a session opened in peer mode (NROS_SESSION_MODE=peer) needs no router. Off by default for size; a peer-mode session on a build without it is refused at open, naming this knob. Read by nros-zpico-build, which emits the C defines and the Rust ZPICO_PEER_MODE_SUPPORTED const from the one value. State it as [image.<id>.knobs.zenoh] multicast_transport = true.

zenoh.publisher_tx_buffer_bytes

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] publisher_tx_buffer_bytes
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

zenoh.read_priority

zenoh-pico read task priority (normalised band, 0-255)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] read_priority
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer
  • Default: 200

Scheduling priority of the zenoh-pico READ task, on the platform ABI’s normalised band: 0 = least urgent, NROS_PLATFORM_PRIORITY_MAX (255) = most urgent. nros_zephyr_native_priority maps it onto whatever sched_get_priority_min/max report for SCHED_RR in THIS image, which depends on CONFIG_NUM_PREEMPT_PRIORITIES.

THE SCALE CHANGED, AND THE OLD VALUES DO NOT CARRY OVER. This was documented “normalized 0-31” with a default of 16, and mapped by a second, private conversion (zpico_posix_set_priority) that wrote into a pthread_attr_t nothing on this platform ever read. With two normalised bands meeting in one scheduler, a 16 authored against 0-31 is (16*14)/255 = 0 through the real map — the LEAST urgent slot, which is exactly where every Zephyr transport task has been running. The private scale and its conversion are deleted; this band is the only one left.

Why 200: on a CONFIG_NUM_PREEMPT_PRIORITIES=15 image it maps to SCHED_RR 10, i.e. k_thread 4 — ABOVE the sched_task pool ([8,14] in [board.priority_plan]). That ordering is CHOSEN, not inherited: it is what the board’s priority plan already declares, and what FreeRTOS ships (app 3 / transport 4). The reverse starves the RX drain and stalls publishers on retransmission timeouts. Both orderings are legitimate; choose one on purpose.

The number is IMAGE-DERIVED: re-resolve it against your own .config rather than assuming k_thread 4.

The main thread is the other half of the pair. Zephyr’s default CONFIG_MAIN_THREAD_PRIORITY is 0, above this task, so while main creates entities the read task waits. Over a network that costs little; over a SERIAL link the UART receive ring fills meanwhile, and a board that joins a domain whose peers already send loses the router’s replies. A serial image therefore needs main BELOW this task: CONFIG_MAIN_THREAD_PRIORITY=5 against the default 200 on 15 preempt priorities. The configure refuses a serial image whose main thread is not below it and names the number, and CONFIG_NROS_ZENOH_SERIAL_RX_RING_BYTES is the ring to raise if joins still drop frames.

Raising it above your RT sched_tasks means transport preempts control; lowering it below means a busy sched_task can starve the RX drain, which stalls publishers on retransmission timeouts. Both are real failure modes with real cost.

zenoh.rx_task_budget_frames

zenoh read task frame budget (-1 = derive, else unbounded)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] rx_task_budget_frames
  • Or for a board: nros-board.toml, [knobs] zenoh.rx_task_budget_frames
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer from -1 to 65535
  • Default: -1

The most frames the zenoh-pico read task processes back to back before it rests zenoh.rx_task_budget_rest_us. Bounds the task’s contiguous CPU occupancy at FRAMES x per-frame cost (~0.94 ms a frame measured on FreeRTOS mps2-an385), so a flood cannot stall the sched_tasks below the transport band. It defers rather than drops: unread bytes stay in the socket and TCP backpressures the sender.

-1 (and unset) states nothing: the budget derived from the contract’s declared subscriber arrival curve applies (FRAMES = burst of the subscriber with the largest rate_hz x burst), and with no arrival curve declared the read task is unbounded, as before. 0 is REFUSED – a budget of zero frames is not “unlimited”. Too large a budget is worse than none on stall COUNT (128 frames: 12.5 stalls/run against 9.1 unbounded), so size it so FRAMES x cost fits the tightest sched_task’s slack. Maps to Z_RX_TASK_BUDGET_FRAMES.

zenoh.rx_task_budget_rest_us

zenoh read task rest after a full budget (us, -1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] rx_task_budget_rest_us
  • Or for a board: nros-board.toml, [knobs] zenoh.rx_task_budget_rest_us
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer from -1 to 1000000
  • Default: -1

How long the zenoh-pico read task rests after zenoh.rx_task_budget_frames frames. Read only when the frame budget is in force.

On zenoh-pico 1.10 the read task is an executor future, so it yields for the rest instead of sleeping, rounded up to whole milliseconds and never less than 2 ms: the executor does not wait for a wake-up 1 ms or less away.

-1 states nothing: the value derived from the contract’s declared subscriber arrival curve applies (burst x 10^6 / rate_hz of the subscriber with the largest rate_hz x burst), else the builtin 1000. Maps to Z_RX_TASK_BUDGET_REST_US.

zenoh.socket_timeout_ms

zenoh-pico socket recv timeout (ms)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] socket_timeout_ms
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer
  • Default: 100

SO_RCVTIMEO for the zenoh-pico session socket (Z_CONFIG_SOCKET_TIMEOUT). Zephyr’s zsock layer serializes send/recv on a per-fd mutex, so the blocking read task holds the socket for a full recv window between inbound packets and EVERY tx (declare, keepalive, publish, reply) waits for that window — total tx throughput is capped at roughly one send per window. The 100 ms default suits ~1-10 Hz demo lanes; high-rate publishers (e.g. RT-tier systems at 100 Hz) must lower this (5 ms => ~200 tx windows/s) at the cost of more read-task wakeups.

zenoh.subscriber_large_bytes

Large-class payload buffer size (-1 = derive)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] subscriber_large_bytes
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer
  • Default: -1

Per-sample capacity in the large payload class (bytes). The crate default is 16384, sized for image-scale messages; an image whose largest subscribed type is a few hundred bytes pays 2 x 4 x 16384 = 128 KiB for nothing. Maps to zenoh.subscriber_large_bytes.

-1 means DERIVE it: the largest derived bound above the class split. When NO type is above the split the size is deliberately NOT derived – with zero blocks the pool is zero bytes whatever size it names, and naming one for a class that does not exist would be inventing a number. The crate default then applies and costs nothing.

zenoh.subscriber_large_threshold_bytes

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] subscriber_large_threshold_bytes
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

zenoh.subscriber_ring_depth

Receive ring depth per subscriber

  • Set it in: system.toml, [image.<id>.knobs.zenoh] subscriber_ring_depth
  • Or for a board: nros-board.toml, [knobs] zenoh.subscriber_ring_depth
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer
  • Default: 4

Samples held per subscriber before the ring drops the oldest. This is the receive queue depth, so lowering it is a QoS reduction, not slack. It multiplies BOTH zenoh payload classes: SMALL_PAYLOADS = zenoh.max_subscribers x DEPTH x SUBSCRIBER_BUFFER_SIZE LARGE_PAYLOADS = MAX_LARGE_SUBSCRIBERS x DEPTH x SUBSCRIBER_LARGE_SIZE Maps to zenoh.subscriber_ring_depth.

zenoh.tl_retain_bytes

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] tl_retain_bytes
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

zenoh.tl_retain_depth

(no description yet)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] tl_retain_depth
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer (not checked before the build)
  • Default: chosen by the build

zenoh.tx_batch

zenoh-pico tx batching (one send per executor spin)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] tx_batch
  • Or for a board: nros-board.toml, [knobs] zenoh.tx_batch
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: true or false
  • Default: true

Tx batching (zenoh.tx_batch). Publishes queue in the transport write buffer and ship as ONE socket send per executor spin (zpico_spin_once flush), so total tx throughput scales with messages-per-flush instead of being capped at ~1 send per socket recv window (the zsock per-fd-mutex ceiling above). Adds up to FLUSH_MS of publish latency; service/query requests and replies bypass the batch (express), as do publishers declared express (tx_express QoS). DEFAULT ON for Zephyr, the only platform with the per-fd tx ceiling, where it measured 15-20x streaming. Requires the zenoh-pico fork’s fix that makes declarations bypass the batch (otherwise a server’s readiness banner outruns its still-batched queryable declares and immediately-fired queries miss). This default MUST mirror config/zephyr/nros-platform.toml [knobs.zenoh] tx_* — the kconfig_platform_default_drift test asserts the mirror.

zenoh.tx_batch_flush_ms

zenoh-pico tx batch flush cadence (ms)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] tx_batch_flush_ms
  • Or for a board: nros-board.toml, [knobs] zenoh.tx_batch_flush_ms
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: an integer
  • Default: 50

Period of the dedicated tx-flush thread (and the rate limit of the spin-driven fallback flush) when TX_BATCH is on. Bounds the extra publish latency batching adds: a batched sample waits at most this long before it ships (express publishers bypass the batch entirely). Lower = less added latency, more (smaller) socket sends. Forwards to zpico.c’s zenoh.tx_batch_flush_ms.

zenoh.tx_split_lock

zenoh-pico split tx locking (append while sending)

  • Set it in: system.toml, [image.<id>.knobs.zenoh] tx_split_lock
  • Or for a board: nros-board.toml, [knobs] zenoh.tx_split_lock
  • Scope: image
  • Package: nros_rmw_zenoh
  • Values: true or false
  • Default: true

The batch flush steals the pending write buffer under the tx mutex and performs the socket write under a separate link-write mutex, so publishers keep appending to the fresh batch while the (up to one recv-window) send is in flight. Wire order still equals SN order. Requires TX_BATCH. Costs a second wbuf (Z_BATCH_UNICAST_SIZE) of RAM per session. DEFAULT ON for Zephyr; mirrors config/zephyr/nros-platform.toml (drift-tested).

zephyr

KnobScopeDefaultWhat it is
zephyr.log_sink_buffersimage2 (varies)Log sink buffers (records formatted at once)

zephyr.log_sink_buffers

Log sink buffers (records formatted at once)

  • Set it in: system.toml, [image.<id>.knobs.zephyr] log_sink_buffers
  • Scope: image
  • Package: nros_platform_zephyr
  • Values: an integer from 0 to 32
  • Default: the first that applies:
    • 16 if the image runs on 8 or more CPUs
    • 8 if the image runs on 4 or more CPUs
    • 4 if the image runs on 2 or more CPUs
    • 2 otherwise

How many nros_log records the Zephyr log sink can format at the same time. Each buffer is 1280 bytes of .bss, owned by the sink and claimed with one atomic bit, so a thread or an ISR on any CPU can take one without a lock. A buffer is held for one format and one LOG_* call.

The default is two per CPU (CONFIG_MP_MAX_NUM_CPUS, rounded down to a power of two): one thread-context record and one ISR-context record in flight on each CPU. The sink is re-entrant, so nros_log hands it every record in the context that raised it, with no process-wide lock, and concurrent loggers can be inside it at once. Raise it for an image with many threads logging at the same moment; lower it to 1 to save 1280 bytes a buffer where logging is rare. When every buffer is in use, a record is formatted into a 160-byte stack buffer instead, truncated and marked “…”, and the sink says once that the pool ran dry. A record is never dropped for want of a buffer.

0 formats every record in a 1280-byte buffer on the stack of the thread that logged, as the sink did before this knob. A thread whose stack is sized for its own work (1-2 KiB) then overflows the first time it logs.