Skip to content

Commit

Permalink
config: add configuration for solana labs poh core
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcgee-jump committed Dec 8, 2023
1 parent ba88bc4 commit 753ba6b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/fdctl/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ static int parse_key_value( config_t * config,
ENTRY_STR ( ., snapshots, path );

ENTRY_STR ( ., layout, affinity );
ENTRY_UINT ( ., layout, poh_core );
ENTRY_UINT ( ., layout, net_tile_count );
ENTRY_UINT ( ., layout, verify_tile_count );
ENTRY_UINT ( ., layout, bank_tile_count );
Expand Down
1 change: 1 addition & 0 deletions src/app/fdctl/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ typedef struct {

struct {
char affinity[ AFFINITY_SZ ];
uint poh_core;
uint net_tile_count;
uint verify_tile_count;
uint bank_tile_count;
Expand Down
5 changes: 5 additions & 0 deletions src/app/fdctl/config/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,11 @@ dynamic_port_range = "8900-9000"
# that the Solana network can run as fast as possible.
affinity = "0-16"

# Which CPU core to use for the POH service. This is a special core
# because it's the only one pinned by the Solana Labs. This should
# not overlap with the affinity specified above.
poh_core = 17

# How many net tiles to run. Each networking tile will service
# exactly one queue from a network device being listened to. If
# there are less net tiles than queues, some queues will not get
Expand Down
2 changes: 2 additions & 0 deletions src/app/fdctl/run/run_solana.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ solana_labs_main( void * args ) {
ADDU( "--firedancer-tpu-port", config->tiles.quic.regular_transaction_listen_port );
ADDU( "--firedancer-tvu-port", config->tiles.shred.shred_listen_port );

ADDU( "--experimental-poh-pinned-cpu-core", config->layout.poh_core );

/* consensus */
ADD( "--identity", config->consensus.identity_path );
if( strcmp( config->consensus.vote_account_path, "" ) )
Expand Down

0 comments on commit 753ba6b

Please sign in to comment.