Skip to content

flamenco, vm: implement increase_cpi_account_info_limit#7430

Merged
topointon-jump merged 1 commit into
mainfrom
topointon/increase_cpi_account_info_limit
Dec 18, 2025
Merged

flamenco, vm: implement increase_cpi_account_info_limit#7430
topointon-jump merged 1 commit into
mainfrom
topointon/increase_cpi_account_info_limit

Conversation

@topointon-jump
Copy link
Copy Markdown
Contributor

@topointon-jump topointon-jump commented Nov 25, 2025

Implementing increase_cpi_account_info_limit (solana-foundation/solana-improvement-documents#339), which improves UX/reduces work for programs which make CPI calls that were themselves invoked with more than 64 accounts - they no longer have to de-dup the list of account infos to make a CPI call.

This SIMD also starts charging for serialized account infos and instruction account metas in CPIs.

  • Implementation
  • Unit tests
  • Ledger tests
  • Fuzzing

@github-actions
Copy link
Copy Markdown

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.076551 s 0.076857 s 0.400%
backtest mainnet-368528500-perf snapshot load 4.866 s 3.104 s -36.210%
backtest mainnet-368528500-perf total elapsed 76.551297 s 76.857072 s 0.399%
firedancer mem usage with mainnet.toml 1013.23 GiB 1013.23 GiB 0.000%

@topointon-jump topointon-jump force-pushed the topointon/increase_cpi_account_info_limit branch from bbc611b to 9092ee3 Compare November 25, 2025 19:05
@github-actions
Copy link
Copy Markdown

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.077268 s 0.076864 s -0.523%
backtest mainnet-368528500-perf snapshot load 4.876 s 3.09 s -36.628%
backtest mainnet-368528500-perf total elapsed 77.267706 s 76.864491 s -0.522%
firedancer mem usage with mainnet.toml 1013.23 GiB 1013.23 GiB 0.000%

@topointon-jump topointon-jump force-pushed the topointon/increase_cpi_account_info_limit branch from 9092ee3 to d0c66e6 Compare December 16, 2025 14:56
@github-actions
Copy link
Copy Markdown

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.050437 s 0.051482 s 2.072%
backtest mainnet-368528500-perf snapshot load 1.637 s 1.623 s -0.855%
backtest mainnet-368528500-perf total elapsed 50.436862 s 51.481564 s 2.071%
firedancer mem usage with mainnet.toml 1005.23 GiB 1005.23 GiB 0.000%

mjain-jump
mjain-jump previously approved these changes Dec 18, 2025
Copy link
Copy Markdown
Contributor

@mjain-jump mjain-jump left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, is it fuzz tested?

@topointon-jump topointon-jump force-pushed the topointon/increase_cpi_account_info_limit branch 2 times, most recently from 18c465e to 50b529e Compare December 18, 2025 14:33
@topointon-jump topointon-jump changed the title [WIP] flamenco, vm: implement increase_cpi_account_info_limit flamenco, vm: implement increase_cpi_account_info_limit Dec 18, 2025
@topointon-jump topointon-jump force-pushed the topointon/increase_cpi_account_info_limit branch from 50b529e to e7e0129 Compare December 18, 2025 14:35
@github-actions
Copy link
Copy Markdown

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.050809 s 0.050696 s -0.222%
backtest mainnet-368528500-perf snapshot load 1.635 s 1.64 s 0.306%
backtest mainnet-368528500-perf total elapsed 50.809322 s 50.695608 s -0.224%
firedancer mem usage with mainnet.toml 1005.23 GiB 1005.23 GiB 0.000%

@topointon-jump topointon-jump force-pushed the topointon/increase_cpi_account_info_limit branch from e7e0129 to 2b8bf80 Compare December 18, 2025 15:55
@github-actions
Copy link
Copy Markdown

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.050689 s 0.050499 s -0.375%
backtest mainnet-368528500-perf snapshot load 1.65 s 1.675 s 1.515%
backtest mainnet-368528500-perf total elapsed 50.689069 s 50.499078 s -0.375%
firedancer mem usage with mainnet.toml 1005.23 GiB 1005.23 GiB 0.000%

@topointon-jump topointon-jump force-pushed the topointon/increase_cpi_account_info_limit branch from 2b8bf80 to d7ace5c Compare December 18, 2025 16:28
@github-actions
Copy link
Copy Markdown

Performance Measurements ⏳

Suite Baseline New Change
backtest mainnet-368528500-perf per slot 0.050624 s 0.050716 s 0.182%
backtest mainnet-368528500-perf snapshot load 1.638 s 1.641 s 0.183%
backtest mainnet-368528500-perf total elapsed 50.623726 s 50.715631 s 0.182%
firedancer mem usage with mainnet.toml 1005.23 GiB 1005.23 GiB 0.000%

@topointon-jump
Copy link
Copy Markdown
Contributor Author

VM CPI fuzzer has been running for a while and not showing any bugs

@topointon-jump topointon-jump merged commit 7000f9e into main Dec 18, 2025
13 checks passed
@topointon-jump topointon-jump deleted the topointon/increase_cpi_account_info_limit branch December 18, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants