Performance Tuning
Overview
The Firedancer validator is composed of a handful of threads, each performing a distinct job. Some jobs only need one thread to do them, but certain jobs require many threads performing the same work in parallel.
Each thread is given a CPU core to run on, and threads take ownership of the core: never sleeping or letting the operating system use it for another purpose. The combination of a job, and the thread it runs on, and the CPU core it is assigned to is called a tile. The twenty-two kinds of tile are,
| Tile | Description |
|---|---|
net | Sends and receives network packets from the network device |
quic | Receives transactions from clients |
verify | Verifies cryptographic signatures on incoming transactions, filtering invalid ones |
dedup | Checks for and filters out duplicated incoming transactions |
resolv | Resolves address lookup tables (ALTs) before transactions are scheduled |
pack | Collects incoming transactions and schedules them for execution when we are leader |
execle | Executes transactions that have been scheduled during leader slots |
motor | Assembles blocks during leader slots |
shred | Distributes block data to the network when leader, and receives and retransmits block data when not leader |
replay | Manages forks and schedules transactions when replaying blocks produced by other nodes |
execrp | Executes transactions when replaying blocks produced by other nodes |
accdb | Runs account database background work such as writing cached accounts back to disk |
votor | Runs Alpenglow consensus, exchanges BLS votes and certificates |
gossip | Runs the gossip protocol for discovering peers |
gossvf | Verifies cryptographic signatures on incoming gossip messages |
repair | Consumes block data from the shred tile, issues repair requests for anything still missing, and reconstructs the block |
rserve | Serves block data to other peers via the repair protocol |
sign | Holds the validator private key, and receives and responds to signing requests from other tiles |
gui | Serves the web dashboard and WebSocket streaming API |
metric | Collects monitoring information about other tiles and serves it on an HTTP endpoint |
diag | Counts context switches and diagnostic information of other tiles |
netlnk | Synchronizes Linux network configuration |
These tiles communicate with each other via shared memory queues. The work each tile performs and how they communicate with each other is fixed, but the count of each tile kind and which CPU cores they are assigned to is set by your configuration, and this is the primary way to tune the performance of Firedancer.
Configuration
The default configuration provided if no options are specified is given in the default.toml file:
[layout]
affinity = "auto"
net_tile_count = 2
quic_tile_count = 1
verify_tile_count = 3
resolv_tile_count = 1
gossvf_tile_count = 1
execle_tile_count = 2
execrp_tile_count = 10
shred_tile_count = 1
sign_tile_count = 2Tile counts for net, quic, verify, resolv, gossvf, execle, execrp, shred, and sign are configurable. Optional tiles like gui and rpc can also be enabled or disabled.
The assignment of tiles to CPU cores is determined by the affinity string, which is documented fully in the default.toml file itself.
The following table shows the performance characteristics of the adjustable tiles, along with recommendations for mainnet:
| Tile | Default | Notes |
|---|---|---|
net | 2 | Handles >1M TPS per tile. Designed to scale out for future network conditions, but there is no need to run more than 1 net tile at the moment on mainnet-beta |
quic | 1 | Handles >1M TPS per tile. Designed to scale out for future network conditions, but there is no need to run more than 1 QUIC tile at the moment on mainnet-beta |
verify | 3 | Handles 20-40k TPS per tile. Recommend running many verify tiles, as signature verification is the primary bottleneck of the application |
execle | 2 | Handles 20-40k TPS per tile, with diminishing returns from adding more tiles. Designed to scale out for future network conditions, but 4 tiles is enough to handle current mainnet-beta conditions. Can be increased further when benchmarking to test future network performance |
shred | 1 | Throughput is mainly dependent on cluster size, 1 tile is enough to handle current mainnet-beta conditions. In benchmarking, if the cluster size is small, 1 tile can handle >1M TPS |
Testing
Firedancer includes a simple benchmarking tool for measuring the transaction throughput of the validator when it is leader, in transactions per second (TPS). In practice, the Solana network performance is limited by two factors that are unrelated to what this tool measures:
- The replay performance of the slowest nodes in the network, and if they can keep up
- The consensus limits on block size and data size
In particular, consensus limits on the Solana protocol limit the network strictly to around 81,000 TPS. But the tool can be useful for testing local affinity and layout configurations.
The benchmark runs on a single machine and performs the following:
- A new genesis is created, and set of accounts are pre-funded
- A set of CPU cores is assigned to generating and signing simple transactions using these accounts as fast as possible
- Another set of CPU cores is assigned to sending these transfers via QUIC over loopback to the locally running validator
- Around once a second, an RPC call is made to get the total count of transactions that have executed on the chain, and this information is printed to the console
The benchmark is currently quite synthetic, as it only measures single node performance, in an idealized case where all transactions are non-conflicting.
Running
The benchmark command is part of the firedancer-dev development binary, which can be built with make -j firedancer-dev. With the binary built, we can run our benchmark (here on a 64 physical core AMD EPYC 9555P):
$ lscpu
Architecture: x86_64
CPU(s): 128
On-line CPU(s) list: 0-127
Thread(s) per core: 2
Core(s) per socket: 64
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
Model name: AMD EPYC 9555P 64-Core Processor$ ./build/firedancer-dev bench$ ./build/firedancer-dev bench
NOTICE cpuset ... unconfigured ... `/sys/fs/cgroup/fdbench` does not exist
NOTICE cpuset ... configuring
NOTICE RUN: `echo "+cpuset" > /sys/fs/cgroup/cgroup.subtree_control`
[ ... snip ... ]
◈ node │ cluster unknown id 3uYXNz17iYDfQrCxh7jz2LhQ5wNfdfPzd7SV8mXWX4Jy vote 382TtMsxrs3mEMbf1i5NfxfjF3DCnH2uoR3WZaChsuP1 uptime 1m 15s shred 2685 genesis HGTLDv…NBqwtU[K
◎ bench │ tps 829.5 K benchg 99.2% 99.3% 99.3% 99.3% benchs 14.5% 14.6%[K
▶ replay │ slot 190 -01 cu/s 31.7 M tps 112.7 K sps 2.5 leader in now root dist 0 banks 6[KWe have not provided a configuration file to the bench command, so it is using the stock configuration from default.toml and reaching around 112,000 TPS.
Let's take a look at the performance with the monitor command and see if we can figure out what's going on.
$ ./build/firedancer-dev monitor
snapshot for 2026-10-20 17:12:39.642907318 GMT+00 | Use TAB to switch panes[0K
tile | tid | stale | heart | nivcsw | nvcsw | in backp | backp cnt | % hkeep | % wait | % backp | % finish[0K
---------+---------+------------+-------+---------------------+---------------------+----------+---------------------+----------+----------+----------+----------[0K
net | 2029150 | - | - | 14( +0) | 12( +0) | -( -) | 0( +0) | 0.697 | 97.613 | 0.000 | 1.690[0K
net | 2029151 | - | - | 47486( +0) | 15( +0) | -( -) | 0( +0) | 0.685 | 99.307 | 0.000 | 0.008[0K
quic | 2029174 | - | - | 12( +0) | 9( +0) | -( -) | 0( +0) | 0.006 | 91.411 | 0.000 | 8.582[0K
verify | 2029175 | - | - | 12( +0) | 1( +0) | -( -) | 0( +0) | 0.461 | 0.342 | 0.000 | 99.196[0K
verify | 2029176 | - | - | 12( +0) | 5( +0) | -( -) | 0( +0) | 0.354 | 0.333 | 0.000 | 99.313[0K
verify | 2029177 | - | - | 12( +0) | 4( +0) | -( -) | 0( +0) | 0.339 | 0.340 | 0.000 | 99.321[0K
[ ... snip ... ]If we narrow in on just the verify tiles we can see the problem: all of the verify tiles are completely busy processing incoming transactions, and so additional transactions are being dropped. Here % finish indicates the percentage of time the tile is occupied doing work, while overnp cnt indicates that the tile is being overrun by the quic tile and dropping transactions.
tile | tid | stale | heart | nivcsw | nvcsw | in backp | backp cnt | % hkeep | % wait | % backp | % finish[0K
---------+---------+------------+-------+---------------------+---------------------+----------+---------------------+----------+----------+----------+----------[0K
verify | 2059551 | - | - | 15( +0) | 1( +0) | -( -) | 0( +0) | 0.457 | 0.342 | 0.000 | 99.201[0K
verify | 2059552 | - | - | 17( +0) | 3( +0) | -( -) | 0( +0) | 0.350 | 0.331 | 0.000 | 99.319[0K
verify | 2059553 | - | - | 15( +0) | 8( +0) | -( -) | 0( +0) | 0.342 | 0.346 | 0.000 | 99.312[0K
link | tot TPS | tot bps | uniq TPS | uniq bps | ha tr% | uniq bw% | filt tr% | filt bw% | ovrnp cnt | ovrnr cnt | slow cnt | tx seq[0K
------------------+----------+----------+----------+----------+----------+----------+----------+----------+---------------------+---------------------+---------------------+-------------------[0K
quic->verify | 354.2K | 776.4M | 354.2K | 776.4M | 100.000 | 100.000 | 66.663 | 66.663 | 1603( +1) | 0( +0) | 0( +0) | 46244909( +27738)[0K
quic->verify | 372.6K | 816.7M | 372.6K | 816.7M | 100.000 | 100.000 | 66.667 | 66.667 | 1534( +0) | 5( +0) | 0( +0) | 46244909( +27738)[0K
quic->verify | 377.1K | 826.7M | 377.1K | 826.7M | 100.000 | 100.000 | 66.663 | 66.663 | 1511( +1) | 0( +0) | 0( +0) | 46244909( +27738)[0KThis configuration is not ideal. With some tuning to increase the number of verify tiles, and a few other changes we can try to achieve a higher TPS rate,
[layout]
# Dedicate more tiles to signature verification and leader execution
net_tile_count = 1
quic_tile_count = 1
resolv_tile_count = 1
verify_tile_count = 31
gossvf_tile_count = 1
execle_tile_count = 3
execrp_tile_count = 1
shred_tile_count = 1
sign_tile_count = 2
[development.genesis]
# Pre-fund more accounts so more transfers can be handled in parallel
fund_initial_accounts = 32768
[development.bench]
# Use more generator and sender tiles to test higher TPS
benchg_tile_count = 12
benchs_tile_count = 2
# Raise protocol consensus limits for testing
max_cost_per_block = 540000000
max_shreds_per_block = 131072
[tiles.shred]
max_pending_shred_sets = 16384
[tiles.pack]
schedule_strategy = "perf"Now run the benchmark with the tuned configuration:
$ ./build/firedancer-dev bench --config src/app/firedancer/config/bench-zen3-32core.toml$ ./build/firedancer-dev bench --config src/app/firedancer/config/bench-zen3-32core.toml
[ ... snip ... ]
◈ node │ cluster unknown id 3uYXNz17iYDfQrCxh7jz2LhQ5wNfdfPzd7SV8mXWX4Jy vote 382TtMsxrs3mEMbf1i5NfxfjF3DCnH2uoR3WZaChsuP1 uptime 1m 30s shred 49771 genesis CHGUKK…8NZtU1[K
◎ bench │ tps 2.3 M benchg 97.9% 97.9% 97.9% 97.8% 97.9% 97.9% 97.8% 97.8% 97.9% 97.8% 97.8% 97.8% benchs 90.3% 90.3%[K
▶ replay │ slot 249 -01 cu/s 114.6 M tps 389.5 K sps 3.0 leader in now root dist 0 banks 4[KCPU isolation
Because tiles take permanent ownership of their CPU cores, anything else the kernel runs on those cores — other processes, deferred kernel work, interrupt handlers, or the periodic scheduler tick — directly steals time from the validator and adds latency jitter. Several configure stages reduce this interference and are recommended for production deployments:
- irq-affinity and irq-balance steer device interrupts away from tile CPUs.
- kworkers steers deferred kernel work (writeback, filesystem maintenance) away from tile CPUs.
- cpuset places tile CPUs in an isolated or root cgroup partition so no other process can be scheduled onto them at all.
- console quiets periodic kernel console rendering (cursor blink, warning-level message drawing), which runs on the CPU that generated it and so cannot be steered away by the stages above.
Additionally, two kernel boot parameters remove the last sources of interruption. These cannot be set at runtime, and Firedancer will suggest them with the correct CPU list for your configuration when it starts:
nohz_full=<tile cpus>stops the periodic scheduler tick (typically 250 interruptions per second per core) on CPUs running a single task.rcu_nocbs=<tile cpus>moves RCU callback processing onto housekeeping cores.
The effect of interference on each tile is observable in the monitoring output: context switches, interrupt counts, and the time stolen by interrupt handlers are reported per tile.