More metrics to track memory usage (#3966)

automerge
This commit is contained in:
Pankaj Garg
2019-04-24 11:11:30 -07:00
committed by Grimes
parent 7710ef8b2b
commit 9c7ccc0e2b
2 changed files with 29 additions and 17 deletions

View File

@ -343,6 +343,12 @@ impl BankingStage {
break; break;
} }
} }
let num = buffered_packets
.iter()
.map(|(x, start, _)| x.packets.len().saturating_sub(*start))
.sum();
inc_new_counter_info!("banking_stage-total_buffered_packets", num);
} }
} }

View File

@ -37,12 +37,18 @@ Operate a configured testnet
-r - Reuse existing node/ledger configuration from a -r - Reuse existing node/ledger configuration from a
previous |start| (ie, don't run ./multinode-demo/setup.sh). previous |start| (ie, don't run ./multinode-demo/setup.sh).
-D /path/to/programs - Deploy custom programs from this location -D /path/to/programs - Deploy custom programs from this location
-c clientType=numClients - Number of clientTypes to start. This options can be specified -c clientType=numClients=extraArgs - Number of clientTypes to start. This options can be specified
more than once. Defaults to bench-tps for all clients if not more than once. Defaults to bench-tps for all clients if not
specified. specified.
Valid client types are: Valid client types are:
bench-tps bench-tps
bench-exchange bench-exchange
User can optionally provide extraArgs that are transparently
supplied to the client program as command line parameters.
For example,
-c bench-tps=2="--tx_count 25000"
This will start 2 bench-tps clients, and supply "--tx_count 25000"
to the bench-tps client.
sanity/start/update-specific options: sanity/start/update-specific options:
-o noLedgerVerify - Skip ledger verification -o noLedgerVerify - Skip ledger verification