solana/core/benches
behzad nouri 37b8587d4e
expands number of erasure coding shreds in the last batch in slots (#16484)
Number of parity coding shreds is always less than the number of data
shreds in FEC blocks:
https://github.com/solana-labs/solana/blob/6907a2366/ledger/src/shred.rs#L719

Data shreds are batched in chunks of 32 shreds each:
https://github.com/solana-labs/solana/blob/6907a2366/ledger/src/shred.rs#L714

However the very last batch of data shreds in a slot can be small, in
which case the loss rate can be exacerbated.

This commit expands the number of coding shreds in the last FEC block in
slots to: 64 - number of data shreds; so that FEC blocks are always 64
data and parity coding shreds each.

As a consequence of this, the last FEC block has more parity coding
shreds than data shreds. So for some shred indices we will have a coding
shred but no data shreds. This should not cause any kind of overlapping
FEC blocks as in:
https://github.com/solana-labs/solana/pull/10095
since this is done only for the very last batch in a slot, and the next
slot will reset the shred index.
2021-04-21 12:47:50 +00:00
..
banking_stage.rs Merge pull request from GHSA-8v47-8c53-wwrc 2021-04-13 00:28:08 -06:00
blockstore.rs Re-allow clippy::integer_arithmetic at crate-level 2021-02-17 13:55:08 -07:00
cluster_info.rs removes redundant epoch stakes cache in retransmit (#14781) 2021-01-24 21:15:09 +00:00
consensus.rs Persistent tower (#10718) 2020-09-19 14:03:54 +09:00
crds.rs indexes nodes' contact infos in crds table (#13553) 2020-11-15 16:38:04 +00:00
crds_gossip_pull.rs indexes nodes' contact infos in crds table (#13553) 2020-11-15 16:38:04 +00:00
crds_shards.rs Remove unused pubkey::Pubkey imports 2020-10-21 19:08:13 -07:00
gen_keys.rs
poh.rs PoH batch size calibration (#15717) 2021-03-05 16:01:21 -08:00
poh_verify.rs Simd poh (#10604) 2020-06-16 23:03:26 -07:00
retransmit_stage.rs expands number of erasure coding shreds in the last batch in slots (#16484) 2021-04-21 12:47:50 +00:00
shredder.rs expands number of erasure coding shreds in the last batch in slots (#16484) 2021-04-21 12:47:50 +00:00
sigverify_stage.rs Clippy cleanup for all targets and nighly rust (also support 1.44.0) (#10445) 2020-06-09 09:38:14 +09:00