Lower default batch size to 64 and add 2 banking threads (#25226)

This commit is contained in:
sakridge 2022-05-15 09:52:47 -05:00 committed by GitHub
parent 6c10515ccf
commit 52db2e19bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -75,11 +75,11 @@ pub const FORWARD_TRANSACTIONS_TO_LEADER_AT_SLOT_OFFSET: u64 = 2;
pub const HOLD_TRANSACTIONS_SLOT_OFFSET: u64 = 20;
// Fixed thread size seems to be fastest on GCP setup
pub const NUM_THREADS: u32 = 4;
pub const NUM_THREADS: u32 = 6;
const TOTAL_BUFFERED_PACKETS: usize = 500_000;
const TOTAL_BUFFERED_PACKETS: usize = 700_000;
const MAX_NUM_TRANSACTIONS_PER_BATCH: usize = 128;
const MAX_NUM_TRANSACTIONS_PER_BATCH: usize = 64;
const NUM_VOTE_PROCESSING_THREADS: u32 = 2;
const MIN_THREADS_BANKING: u32 = 1;

View File

@ -9,8 +9,8 @@ use {
pub const NUM_PACKETS: usize = 1024 * 8;
pub const PACKETS_PER_BATCH: usize = 128;
pub const NUM_RCVMMSGS: usize = 128;
pub const PACKETS_PER_BATCH: usize = 64;
pub const NUM_RCVMMSGS: usize = 64;
#[derive(Debug, Default, Clone)]
pub struct PacketBatch {