Skip to content

Commit 0f8c79b

Browse files
committed
port changes
1 parent cc449ea commit 0f8c79b

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

src/app/firedancer-dev/commands/repair_stress.c

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,37 @@ repair_stress_topo( config_t * config ) {
6060

6161
/* Workspaces */
6262
fd_topob_wksp( topo, "net_repair" );
63+
fd_topob_wksp( topo, "net_shred" );
64+
fd_topob_wksp( topo, "net_quic" );
6365

6466
/* Links - repair_net is an input link to net tiles */
6567
fd_topob_link( topo, "repair_net", "net_repair", config->net.ingress_buffer_size, FD_NET_MTU, 1UL );
6668
for( ulong i=0UL; i<net_tile_cnt; i++ ) fd_topos_net_rx_link( topo, "net_repair", i, config->net.ingress_buffer_size );
6769
for( ulong i=0UL; i<net_tile_cnt; i++ ) fd_topos_tile_in_net( topo, "metric_in", "repair_net", i, FD_TOPOB_UNRELIABLE, FD_TOPOB_POLLED ); /* No reliable consumers of networking fragments, may be dropped or overrun */
68-
//for( ulong i=0UL; i<net_tile_cnt; i++ ) fd_topob_tile_in( topo, "repair", 0UL, "metric_in", "net_repair", i, FD_TOPOB_UNRELIABLE, FD_TOPOB_POLLED ); /* No reliable consumers of networking fragments, may be dropped or overrun */
6970

71+
fd_topob_link( topo, "shred_net", "net_shred", config->net.ingress_buffer_size, FD_NET_MTU, 1UL );
72+
for( ulong i=0UL; i<net_tile_cnt; i++ ) fd_topos_net_rx_link( topo, "net_shred", i, config->net.ingress_buffer_size );
73+
for( ulong i=0UL; i<net_tile_cnt; i++ ) fd_topos_tile_in_net( topo, "metric_in", "shred_net", i, FD_TOPOB_UNRELIABLE, FD_TOPOB_POLLED ); /* No reliable consumers of networking fragments, may be dropped or overrun */
74+
75+
fd_topob_link( topo, "quic_net", "net_quic", config->net.ingress_buffer_size, FD_NET_MTU, 1UL );
76+
for( ulong i=0UL; i<net_tile_cnt; i++ ) fd_topos_net_rx_link( topo, "net_quic", i, config->net.ingress_buffer_size );
77+
for( ulong i=0UL; i<net_tile_cnt; i++ ) fd_topos_tile_in_net( topo, "metric_in", "quic_net", i, FD_TOPOB_UNRELIABLE, FD_TOPOB_POLLED ); /* No reliable consumers of networking fragments, may be dropped or overrun */
7078

7179
/* No repair tile needed - we'll inject directly */
7280

7381
FD_TEST( fd_link_permit_no_producers( topo, "repair_net" ) == 1UL );
7482
FD_TEST( fd_link_permit_no_consumers( topo, "net_repair" ) == net_tile_cnt );
7583

76-
config->tiles.send.send_src_port = 0; /* disable send */
77-
config->tiles.shred.shred_listen_port = 0; /* disable shred listen */
78-
config->tiles.quic.quic_transaction_listen_port = 0; /* disable quic listen */
84+
FD_TEST( fd_link_permit_no_producers( topo, "shred_net" ) == 1 );
85+
FD_TEST( fd_link_permit_no_consumers( topo, "net_shred" ) == net_tile_cnt );
86+
87+
FD_TEST( fd_link_permit_no_producers( topo, "quic_net" ) == 1 );
88+
FD_TEST( fd_link_permit_no_consumers( topo, "net_quic" ) == net_tile_cnt );
89+
90+
config->tiles.send.send_src_port = 0; /* disable send */
7991
config->tiles.quic.regular_transaction_listen_port = 0; /* disable regular listen */
80-
config->gossip.port = 0; /* disable gossip */
81-
config->tiles.repair.repair_serve_listen_port = 0; /* disable repair intake listen */
92+
config->gossip.port = 0; /* disable gossip */
93+
config->tiles.repair.repair_serve_listen_port = 0; /* disable repair intake listen */
8294

8395
for( ulong i=0UL; i<net_tile_cnt; i++ ) fd_topos_net_tile_finish( topo, i );
8496

src/app/firedancer/config/default.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ user = ""
982982
# "auto" (default)
983983
# Attempts to run in "dedicated" mode but automatically falls
984984
# back to "simple" mode if necessary.
985-
rss_queue_mode = "auto"
985+
rss_queue_mode = "simple"
986986

987987
[net.socket]
988988
# Sets the socket receive buffer size via SO_RCVBUF.

src/disco/stem/fd_stem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ STEM_(run1)( ulong in_cnt,
613613
finish_regime = &metric_regime_ticks[7];
614614
this_in->accum[ FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_COUNT_OFF ]++;
615615
this_in->accum[ FD_METRICS_COUNTER_LINK_OVERRUN_POLLING_FRAG_COUNT_OFF ] += (uint)(-diff);
616+
FD_LOG_WARNING(( "Overrun polling fragment %lu from in %u, diff is %ld", seq_found, this_in->idx, diff ));
616617

617618
#ifdef STEM_CALLBACK_AFTER_POLL_OVERRUN
618619
STEM_CALLBACK_AFTER_POLL_OVERRUN( ctx );

0 commit comments

Comments
 (0)