-
Notifications
You must be signed in to change notification settings - Fork 243
refactor(shred,storei): remove storei, replace dcache w/ wksp obj #4970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
src/app/firedancer/topology.c
Outdated
@@ -313,7 +311,6 @@ fd_topo_initialize( config_t * config ) { | |||
|
|||
/**/ fd_topob_link( topo, "stake_out", "stake_out", 128UL, 40UL + 40200UL * 40UL, 1UL ); | |||
/* See long comment in fd_shred.c for an explanation about the size of this dcache. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also the comment
0b2ed0e
to
aa1b61f
Compare
6e01daa
to
10211e1
Compare
10211e1
to
4b0d3d4
Compare
@ripatel-fd @mmcgee-jump can i get a re-review |
added description |
src/app/firedancer/topology.c
Outdated
/**/ fd_topob_tile_in( topo, "arch_f", 0UL, "metric_in", "store_feeder", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); | ||
fd_topob_wksp( topo, "replay_feeder" ); | ||
fd_topob_link( topo, "replay_feeder", "replay_feeder", 65536UL, 4UL*FD_SHRED_STORE_MTU, 4UL+config->tiles.shred.max_pending_shred_sets ); | ||
/**/ fd_topob_tile_out( topo, "storei", 0UL, "replay_feeder", 0UL ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be replay
src/disco/shred/fd_shred_tile.c
Outdated
ctx->repair_out_chunk = ctx->repair_out_chunk0; | ||
FD_TEST( fd_dcache_compact_is_safe( ctx->repair_out_mem, repair_out->dcache, repair_out->mtu, repair_out->depth ) ); | ||
ulong fec_sets_obj_id = fd_pod_queryf_ulong( topo->props, ULONG_MAX, "fec_sets" ); | ||
if( FD_LIKELY( fec_sets_obj_id == ULONG_MAX ) ) FD_LOG_ERR(( "invalid firedancer topo" )); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be unlikely
4b0d3d4
to
395e283
Compare
395e283
to
b86f773
Compare
This PR removes the
storei
tile from the firedancer topo.Significantly, this requires replacing the
shred_store
dcache in theshred
tile which houses the FEC sets. This was replaced with a new shared wksp objectfec_sets
. This conveniently allowsshred
andrepair
tiles to join the same shmem region, so repair can directly observe which FEC sets need repair (and request repairs for them). Currently, repair tile is maintaining an entirely separate copy of what the in-progress FEC sets are.