-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
keyless exebench in ci #15559
base: main
Are you sure you want to change the base?
keyless exebench in ci #15559
Conversation
⏱️ 2h 29m total CI duration on this PR
|
testsuite/single_node_performance.py
Outdated
@@ -64,6 +64,8 @@ class Flow(Flag): | |||
] | |||
) | |||
MAIN_SIGNER_ACCOUNTS = 2 * MAX_BLOCK_SIZE | |||
NUM_KEYLESS_ACCOUNTS = 20000 # Creating 20k keyless accounts should take ~1 min. | |||
MAX_BLOCK_SIZE_KEYLESS = 10000 |
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.
why do you need different value here?
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.
no need, fixed
testsuite/single_node_performance.py
Outdated
@@ -64,6 +64,8 @@ class Flow(Flag): | |||
] | |||
) | |||
MAIN_SIGNER_ACCOUNTS = 2 * MAX_BLOCK_SIZE | |||
NUM_KEYLESS_ACCOUNTS = 20000 # Creating 20k keyless accounts should take ~1 min. |
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.
why not 10k?
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.
fixed
testsuite/single_node_performance.py
Outdated
key=RunGroupKey("keyless-coin-transfer"), | ||
key_extra=RunGroupKeyExtra( | ||
txn_auth_mode="keyless", | ||
transaction_type_override="non-conflicting-coin-transfer" |
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.
to have a best comparison, let's use no-op or apt-fa-transfer - so we can compare keyless speed to no-keyless directly?
if we use no-op, then we could have only 10k accounts, and have additional_dst_pool_accounts=0? so that might be best?
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.
fixed
testsuite/single_node_performance.py
Outdated
create_db_command = f"RUST_BACKTRACE=1 {BUILD_FOLDER}/aptos-executor-benchmark --block-executor-type aptos-vm-with-block-stm --block-size {MAX_BLOCK_SIZE} --execution-threads {NUMBER_OF_EXECUTION_THREADS} {DB_CONFIG_FLAGS} {DB_PRUNER_FLAGS} create-db {FEATURE_FLAGS} --data-dir {tmpdirname}/db --num-accounts {NUM_ACCOUNTS}" | ||
output = execute_command(create_db_command) | ||
|
||
results = [] | ||
print(f"Warmup - creating another DB with {NUM_KEYLESS_ACCOUNTS} keyless accounts") | ||
create_db_command_keyless = f"RUST_BACKTRACE=1 {BUILD_FOLDER}/aptos-executor-benchmark --block-executor-type aptos-vm-with-block-stm --block-size {MAX_BLOCK_SIZE_KEYLESS} --execution-threads {NUMBER_OF_EXECUTION_THREADS} {DB_CONFIG_FLAGS} {DB_PRUNER_FLAGS} --use-keyless-accounts create-db {FEATURE_FLAGS} --data-dir {keyless_tmp_dir}/db --num-accounts {NUM_KEYLESS_ACCOUNTS}" |
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.
wondering if we can have a single db with both ?
also - based on FLOW - keyless run might be requested or not needed. We don't need to warmup keyless if keyless is not detected. we can have bool - keyless_warmed_up, and first time we need keyless, initialize those accounts.
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.
wondering if we can have a single db with both ?
it requires more refactoring of executor benchmark... better be a separate pr?
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.
maybe for now leave it as separate DB. but make the change to only create it if keyless test is being run
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.
fixed
if test.key_extra.txn_auth_mode == "keyless": | ||
data_dir = keyless_tmp_dir | ||
keyless_flags = "--use-keyless-accounts" | ||
additional_dst_pool_accounts = 0 |
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.
"if keyless run, set additional_dst_pool_accounts = 0"
@igor-aptos you were suggesting this in another comment, right?
testsuite/single_node_performance.py
Outdated
] + [ | ||
RunGroupConfig( | ||
expected_tps=7600, | ||
key=RunGroupKey("keyless-coin-transfer"), |
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.
keyless-no-op
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.
fixed
Description
Add initial TPS expectation in CI for non-conflicting coin transfers between 20k keyless accounts.
How Has This Been Tested?
Manual CI runs.
Key Areas to Review
n/a
Type of Change
Which Components or Systems Does This Change Impact?
n/a
Checklist