Ethereum Protocol Fellowship (EPF) Cohort 7 — Applications open until May 13
All EIPs
EIP-7923 Draft EL

Linear, Page-Based Memory Costing

Authors: ,

Canonical data: /latest/eips/7923.json

Linearize Memory Costing and replace the current quadratic formula with a page-based cost model.

Timeline

Glamsterdam
Charles Cooper
Declined
Dec 18, 2025 · ACDE #226
Proposed
EIP Created Mar 27, 2025

Key Benefits

  • Replaces quadratic memory expansion with linear, page-based costing for predictable gas.
  • Provides support for virtual memory addressing, unlocking heap/stack separation in high-level smart contract languages.
  • Providing developers with better ways to manage memory, similar to other architectures.

Trade-offs & Considerations

No trade-offs documented yet.

Stakeholder Impact

End Users

Transaction gas for memory-heavy calls may be lower, wallets are better at estimating gas to spend.

Application Developers

Account for page allocation (4096 B) and thrash costs; 32-bit addresses; 64 MiB tx memory cap; MSIZE unchanged. Better ways to address memory with new optimizations. The changes are backwards compatible.

Wallet Developers

Update simulators/estimators to model page allocation and thrash costs; surface OOM exceptional halts.

Tooling / Infrastructure

Clients, tracers, profilers need LRU(512) page tracking and new gas accounting; optional mmap-style backing.

Layer 2s

EVM-equivalent chains must adopt new costing/limits; reassess proving and sequencer cost models for compatibility.

Stakers & Node Operators

More predictable resource bounds via transaction-global memory limit, RPC providers can revise eth_call policies and DoS assumptions.

CL Client Developers

This change doesn't touch the consensus layer.

EL Client Developers

Implementation of new linear, page-based costing, LRU thrash checks, and OOM halts while preserving MSIZE semantics while maintaining compatibility with the old model.

North Star Goal Alignment

  • Scale L1: The more efficient memory management in contracts will lower the gas limit and allow for more operations onchain
  • Improve UX: The gas cost estimation by user wallets can be more straightforward, resulting in less overpaying and avoiding out of gas transaction fails.