Cointime

Download App
iOS & Android

Are we finally ready for a gas limit increase?

There has been growing discussion around the possibility of increasing Ethereum’s gas throughput, either by raising the gas limit or reducing slot time. The key argument in favor of this is that the hardware requirements for running a validator have steadily decreased over the past four years.

Additionally 2 approaches to increase the Gas Limit have surfaced:

  • EIP-7782: A reduction in the block time on Ethereum protocol
  • EIP-7783: A “gradual increase”-based mechanism to slowly increase the Gas Limit over time.

In this post, I will analyze the potential worst-case and average-case scenarios across bandwidth, computational, and storage requirements if the gas limit were to be doubled.

Recap of Ethereum’s history with the gas limit

When Ethereum launched in 2015, the gas limit was initially set to **5,000 gas per block**. Over time, this limit saw significant changes:

  • 2016: The gas limit was first increased to around 3 million, and later that same year, it was raised again to approximately 4.7 million.

– Following the Tangerine Whistle hard fork and more specifically the implementation of EIP-150, the gas limit was increased to 5.5 million. This adjustment was made as part of a repricing of certain I/O-heavy opcodes in response to denial-of-service (DoS) attacks.

– In July 2017, the gas limit was raised to 6.7 million, and it continued to increase:

– December 2017: ~8 million

– September 2019: ~10 million

– August 2020: 12.5 million

– April 2021: 15 million

Under EIP-1559, there is also a maximum (or “hard cap”) gas limit, which is set to twice the target. This means that a block can include transactions with up to 30 million gas.

And for almost four years, there has been no increase in the gas limit at all.

Is it finally time to revisit the Gas Limit?

In order to answer this question, we need to analyze three aspects of hardware requirements: bandwidth, computation, and storage if the gas limit were to be raised to 60 million today.

Storage

When considering an increase in the gas limit, storage stands out as the biggest bottleneck and concern for the Ethereum network. The reason for this lies in Ethereum’s historical growth in state size and the ongoing strain that this places on validators.

There are two types of “growth” in Ethereum:

* State Growth

* History Growth

State growth

Ethereum’s state—the collection of all account balances, smart contract code, and storage—continues to expand as more transactions are processed and smart contracts are deployed. Since its inception, the state size has grown significantly, with periods of accelerated growth driven by network congestion, increased transaction activity, and the rise of decentralized finance (DeFi) and NFTs. Currently, state growth is approximately 2.5 GB per month, or 30 GB per year.

This state growth can lead to the following issues:

– Slower access times to disk

– Increased hardware requirements

However, as of the time of writing, neither of these issues is particularly significant. In fact, the difference in access time between storage systems that differ by just a few tens of gigabytes is fairly negligible due to the algorithmic complexity of querying, which is typically logarithmic. Storage requirements are also insignifcant, as the cost of new hardware is decreasing at a rate that far outpaces the relatively small growth in state size of 30 GB per year. Even if raised to 60 GB/year, the difference would probably not stand out and would still be outpaced by technological progress in hardware anyway.

History growth

This increase in state size is still outpaced by technological progress by a significant margin. Even if the gas limit were to double, the cost of hardware continues to decrease exponentially, making the required hardware cheaper over time.

However, it’s worth noting that soon, solo stakers will need more than 2 TB of storage to run a validator on Ethereum. This will effectively raise the requirement to 4 TB of storage, as most hardware is sold in powers of two. Paradoxically, this means that Ethereum might as well make use of the additional storage, as validators would already need to invest in the higher-capacity hardware, regardless of whether the gas limit is increased or not.

NOTE: There is no average vs worst-case analysis on storage because consistently manipulating blocks for an extended period of time (weeks and months) is an insanely expensive endeavour.

Storage cost over time

To justify my claims that storage cost has been decreasing at exponential rates, we can take a look at the price fluctuations in USD of 1 GB worth of SSD over the past four years:

Sorry for the bad quality, but the publication I took it from had it like this

It seems that every two years, the cost of a GB of SSD tends to halve.

If we compare this to storage and state growth, the difference is negligible. The current growth of Ethereum is linear, while hardware costs tend to decrease at an exponential rate.

I found a more telling chart about this trend with storage costs, but it is from a Reddit post and not from an actual scientific publication (although the results match).

Bandwidth

The average case for bandwidth in Ethereum looks something like 2MB/s; however, most of this number comes from the CL gossiping blobs and aggregates. When it comes to increasing the gas limit, the only thing to look at is the block size.

Currently, the maximum block size recorded is 270 KB, and the current block size post-Deneb stands at 75 KB. If we were to double this, the change would be equivalent to a 0.5-2 blob increase when compared to the historical maximum and current average, which would be equivalent to a ≈ 2-5% increase in node bandwidth (ingoing and outgoing). So, as for the average case, it is not a significant change. As a matter of fact, an additional three blobs would be way more deteriorating.

Worst case with 2x the Gas Limit

The worst case has been calculated to be 1.7MB, which would become 3.4MB (+50% bandwidth needed for the spike). This is not that much but still significant. The reason why I think that this is not a lot is that such a DoS would be quite expensive and the spike would be a +50% of the current average requirements, which is something already accounted for. As I was saying, filling blocks worth of 15 million gas to the brim for many successive blocks is very expensive. So, even though an attacker could potentially launch a DoS for a few blocks, they would have to spend a significant amount of money doing so. Additionally, they would have to compete with other transactions to get into the block, which makes this even more expensive.

In any case, regardless of opinions on the numbers, an increase in calldata cost would fix this issue completely, so I am not worried about it in any case. Additionally, if the gas limit is raised through EIP-7783, these risks are negligible and controllable.

Computation

Computation and block times were never a problem to begin with, but here we go.

Average case

The average case for block computation is usually <1 second, even for slow machines with bad disks. There isn’t much to argue here—on average, this was never the bottleneck.

Worst case

The worst case seems to be unclear and depends on the client. After talking to some client teams, it seems the consensus is that the only issue would be that some opcodes do not scale well (such as MODEXP).

However, any DoS vectors here can be fixed with a repricing, and if the gas limit increase is done with EIP-7783, then these risks are negligible.

Conclusion

Overall, it seems that storage growth is not the bottleneck for increasing the gas limit, as hardware like storage is easy to upgrade. However, bandwidth poses a greater threat, as it is much harder to scale. Fortunately, with EIP-7783, the risks related to bandwidth and potential increases in computation are effectively mitigated. Nonetheless, it might be wise to reprice the calldata cost to ensure additional safety (although in my opinion, not likely to be necessary).

In my personal opinion, It is possible to currently increase the Gas Limit by 33% of even doubling it today if done with the gradual increase introduced EIP-7783.

I think it is still too early to do that through EIP-7782, because it would be punitive towards DVT and SSF. However, once those are figured out – a decrease in slot times is definitely due.

original post: https://giulioswamp.substack.com/p/are-we-finally-ready-for-a-gas-limit

Comments

All Comments

Recommended for you

  • Whale Transfers 1,133 BTC to Coinbase Prime, Valued at $71.48 Million

    According to Onchain Lens monitoring, a whale transferred 1,133 BTC from Coinbase to Coinbase Prime through an intermediary wallet, valued at $71.48 million.

  • U.S. AI Chip Stocks Decline Before Market Open, Intel Falls Over 3%

    On July 7, U.S. AI chip stocks experienced widespread declines before the market opened. Intel dropped over 3%, while AMD, Qualcomm, and NXP fell more than 2%. TSMC, Broadcom, and Tesla decreased by over 1%, and NVIDIA declined by 0.7%.

  • China's Central Bank Increases Gold Reserves for the 20th Consecutive Month

    As of the end of June, China's gold reserves stood at 75.44 million ounces (approximately 2,346.446 tons), an increase of 480,000 ounces (about 14.93 tons) from the end of May, which reported 74.96 million ounces (approximately 2,331.52 tons). This marks the 20th consecutive month of gold accumulation.

  • China's Foreign Exchange Reserves in June at $341.6262 Billion

    On July 7, China's foreign exchange reserves for June stood at $341.6262 billion, a decrease of $26 billion from the end of May, representing a decline of 0.75%, with expectations set at $343.2 billion.

  • U.S. Storage Stocks Drop Pre-Market, SanDisk and Micron Down Over 4%

    On July 7, U.S. storage concept stocks collectively fell in pre-market trading. Western Digital dropped over 5%, SanDisk and Micron Technology fell over 4%, Seagate Technology declined over 3%, Rambus fell over 2%, and SMI fell over 1%.

  • U.S. Stocks in Optical Communication Sector Drop Pre-Market

    On July 7, stocks in the optical communication sector of the U.S. market collectively fell pre-market. Astera Labs dropped over 4%, while Marvell Technology, Credo Technology, and AXT Inc. fell more than 3%. Tower Semiconductor, MaxLinear, Corning, Applied Optoelectronics, GlobalFoundries, Lumentum, and Qorvo all declined by more than 2%. Coherent, Nokia, Amphenol, and Broadcom dropped over 1%.

  • Pre-market Decline in U.S. Storage Stocks

    In pre-market trading, U.S. storage concept stocks experienced a widespread decline, with Micron Technology falling by 4.8%, SanDisk dropping over 4%, Corning down more than 2%, and Intel decreasing by over 3%.

  • Two Departments: Support for Reinsurance Institutions to Increase Capital and Issue Supplementary Capital Tools

    On July 7, the National Financial Supervision and Administration Bureau and the Shanghai Municipal Government released several measures to accelerate the construction of the Shanghai International Reinsurance Center. Among these measures, they proposed to enhance the quality and efficiency of the reinsurance industry, support reinsurance institutions in increasing capital and expanding shares, and issuing supplementary capital tools to improve the capacity for internal capital accumulation and external capital supplementation, thereby strengthening the reinsurance industry's capabilities. The initiative aims to guide the insurance industry to focus on major national projects, strategic emerging industries, and livelihood security, consolidating insurance and reinsurance underwriting capabilities to enhance risk protection levels. It also supports reinsurance institutions in leveraging their professional technical advantages to assist the insurance industry in reducing risk.

  • Sources: Saudi Arabia Plans to Expand Oil Pipeline to Red Sea, Increasing Capacity by 2 Million Barrels Daily to Bypass Strait of Hormuz

    On July 7, five informed sources revealed that Saudi Arabia is considering expanding the crude oil pipeline capacity to its western coast on the Red Sea, allowing Saudi Arabia and its neighbors to transport more oil without passing through the Strait of Hormuz. This east-west pipeline, built in the early 1980s, has gained strategic importance since the outbreak of the Iran war in February and the disruption of shipping in the Strait of Hormuz. The pipeline can deliver up to 7 million barrels of crude oil per day to the Red Sea port. The CEO of Saudi Aramco stated in May that approximately 2 million barrels are supplied to west coast refineries, while about 5 million barrels are for export. Sources indicate that Saudi Arabia is in preliminary discussions with some neighboring countries regarding the pipeline expansion, aiming to add about 2 million barrels of pipeline capacity per day. It remains unclear whether Aramco's planned expansion involves upgrading existing infrastructure or constructing new pipelines. One source mentioned that the expansion plan also includes a smaller refined oil pipeline. Two sources indicated that the expansion scale could range from 1 million to 2 million barrels per day, with refined oil also being considered. Another source stated that the project would take several years and cost billions of dollars, requiring adjustments to Saudi crude pricing mechanisms.

  • Citi: Tencent's WorkBuddy Gains Momentum, Maintains 'Buy' Rating

    On July 7, Citi released a research report stating that, according to the latest industry data, Tencent's AI agent product WorkBuddy has reached 20 million monthly active users (MAU) and over 13 million daily active users (DAU), with a DAU/MAU ratio between 65% and 75%. Considering the product has only been launched for a few months, user stickiness and daily engagement are performing strongly. Citi quoted Tencent's management as saying that in terms of daily active users, Tencent is leading its Chinese peers in the deployment of AI agents. Early user data reflects strong natural growth for both CodeBuddy and WorkBuddy, with high retention rates. Early users are interacting with the AI agents for long durations and with high frequency, creating a positive feedback loop. It is expected that AI products will become a key revenue source for Tencent Cloud. The firm believes that WorkBuddy's success demonstrates the strength of Tencent's ecosystem, the synergy between various productivity tools, and users' trust in Tencent's products and security. Citi maintains a 'Buy' rating on Tencent with a target price of HKD 763 unchanged.