Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Increase transaction account lock limit from 64 to 128#27242

Merged
jstarry merged 3 commits into
solana-labs:masterfrom
jstarry:feat/bump-lock-limit
Sep 15, 2022
Merged

Increase transaction account lock limit from 64 to 128#27242
jstarry merged 3 commits into
solana-labs:masterfrom
jstarry:feat/bump-lock-limit

Conversation

@jstarry
Copy link
Copy Markdown
Contributor

@jstarry jstarry commented Aug 18, 2022

Problem

The transaction account lock limit is currently set to 64 which is too limiting for use-cases like the Neon EVM

Summary of Changes

Added a feature gate that bumps the account lock limit and CPI account info limit both to 128.

Fixes: #27756
Feature Gate Issue: #27241

@jstarry jstarry added the feature-gate Pull Request adds or modifies a runtime feature gate label Aug 18, 2022
@jstarry jstarry requested review from Lichtso and ryoqun August 18, 2022 20:18
@jstarry jstarry added v1.10 and removed v1.10 labels Aug 18, 2022
@jstarry jstarry force-pushed the feat/bump-lock-limit branch 2 times, most recently from 418d1d7 to b7f28de Compare August 22, 2022 12:44
Lichtso
Lichtso previously approved these changes Aug 22, 2022
Copy link
Copy Markdown
Contributor

@Lichtso Lichtso left a comment

Choose a reason for hiding this comment

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

I think the change set is technically correct, but I am still having doubts if this is the right direction to go for.

@Lichtso
Copy link
Copy Markdown
Contributor

Lichtso commented Aug 22, 2022

More write locks do reduce the maximal parallel execution. So, I would recommend adding some cost to locking additional accounts and doing so in the same feature gate.

@willhickey willhickey added v1.14 and removed v1.11 labels Sep 13, 2022
@willhickey
Copy link
Copy Markdown
Contributor

Updated label to v1.14 which is effectively the new v1.11 See discussion on Discord in #releng and #proj-quic-tpu for more context.
https://discord.com/channels/428295358100013066/910937142182682656/1019051275318476881

@jstarry jstarry changed the title Increase transaction account lock limit from 64 to 256 Increase transaction account lock limit from 64 to 128 Sep 15, 2022
@jstarry jstarry force-pushed the feat/bump-lock-limit branch from b7f28de to 765f288 Compare September 15, 2022 15:37
@mergify mergify Bot dismissed Lichtso’s stale review September 15, 2022 15:37

Pull request has been modified.

@jstarry jstarry force-pushed the feat/bump-lock-limit branch from 765f288 to 776d37b Compare September 15, 2022 15:49
@jstarry jstarry added the v1.13 label Sep 15, 2022
@jstarry
Copy link
Copy Markdown
Contributor Author

jstarry commented Sep 15, 2022

@Lichtso I'm going to merge now to get this enabled on devnet but will refrain from updating on mainnet-beta until getting consensus on what the cost updates should be

@jstarry jstarry merged commit b970024 into solana-labs:master Sep 15, 2022
mergify Bot pushed a commit that referenced this pull request Sep 15, 2022
* Increase transaction account lock limit from 64 to 256

* fix bpf test

* Reduce lock limit from 256 to 128

(cherry picked from commit b970024)

# Conflicts:
#	programs/bpf/tests/programs.rs
#	programs/bpf_loader/src/syscalls/cpi.rs
#	runtime/src/bank.rs
#	sdk/bpf/c/inc/sol/cpi.h
#	sdk/bpf/c/inc/sol/inc/cpi.inc
#	sdk/program/src/syscalls/mod.rs
#	sdk/src/feature_set.rs
mergify Bot pushed a commit that referenced this pull request Sep 15, 2022
* Increase transaction account lock limit from 64 to 256

* fix bpf test

* Reduce lock limit from 256 to 128

(cherry picked from commit b970024)

# Conflicts:
#	runtime/src/bank.rs
#	sdk/src/feature_set.rs
@jstarry jstarry deleted the feat/bump-lock-limit branch September 15, 2022 17:52
jstarry added a commit to jstarry/solana that referenced this pull request Sep 16, 2022
jstarry added a commit that referenced this pull request Sep 16, 2022
…) (#27814)

* Increase transaction account lock limit from 64 to 128 (#27242)

* resolve conflicts
mergify Bot added a commit that referenced this pull request Sep 16, 2022
…) (#27809)

* Increase transaction account lock limit from 64 to 128 (#27242)

* resolve conflicts

Co-authored-by: Justin Starry <justin@solana.com>
jstarry added a commit that referenced this pull request Sep 16, 2022
…) (#27810)

* Increase transaction account lock limit from 64 to 128 (backport #27242)

* resolve conflicts

Co-authored-by: Justin Starry <justin@solana.com>
@ktrout1111
Copy link
Copy Markdown

Is this going to happen or not?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

feature-gate Pull Request adds or modifies a runtime feature gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Neon EVM implementation requires more transaction accounts

4 participants