Skip to content

Feature Gate: reserve minimal CUs for builtin instructions #2562

@tao-stones

Description

@tao-stones

SIMD

solana-foundation/solana-improvement-documents#170

Description

When transactions do not request a specific compute unit limit, the Solana
runtime conservatively allocates 200,000 compute units for each tx-level
instruction (excluding compute budget instructions) in the transaction's
compute budget. Since builtin program instructions consume far less than 200k
compute units, the runtime will be modified to only allocate 3,000 compute units
in the transaction compute budget for each of these instructions.

Changing compute budget allocation can impact transaction execution results, need to be feature gated.

Feature ID

C9oAhLxDBm3ssWtJx1yBGzPY55r2rArHmN1pbQn6HogH

Activation Method

Single Core Contributor

Deployment Considerations

Should communicate with dev that not to assume builtins still have 200K CU budget

Minimum Beta Version

No response

Minimum Stable Version

No response

Testnet Activation Epoch

No response

Devnet Activation Epoch

No response

Mainnet-Beta Activation Epoch

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-gatePull Request adds or modifies a runtime feature gate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions