Carlos Pérez
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Data collection for "BloatNet" ![image](https://hackmd.io/_uploads/BJw_ooDgee.png) :::warning The idea for this document is to collect any interesting data points from a testnet with all EL clients where state growth rates are maximized wrt `gas_limit` increases within (60, 100, 300)MGas. **We wonder what kind of data is interesting to obtain to people's view and why.** ::: :::info **We strongly encourage EL teams as well as Research individuals to fill in more data points** (specially ephimeral ones) and for which they would like to have data such that more research or fixes to current EL implementations can be done. And subtle improvement areas can be spotted. ::: ## Metrics always taken: - RAM - SWAP - Gorutines - Threads/CPUs used - State-size growth - Overall disk size - Number of reorgs - Heap activity ## Stateless-consensus desired metrics ### 0. Block hash and Block time calls ### Description: Discussed with Guillaume ### 1. Read/Write performance speed wrt. overall state growth. #### Description: It would be nice to know how performance for I/O gets degraded wrt the state growth and its size at each time. Particular measurements: - Min/Max/Avg Bytes/s Read and Write for every block with a 50k block queue. Same block queue for all the bloated states. - Avg RAM usag ### Block time wrt. overall state size and gas_limit If block-time (block production/generation) time goes avobe 4s could start to be a problem. Also attesters would have more issues to make a block finalize on time. Particular measurement: - For a machine with the recommendend hardware as per [EIP-9270](https://github.com/ethereum/EIPs/pull/9270) - Block flamegraph decomposition. Similar to: ![image](https://hackmd.io/_uploads/BycgPCb7xl.png) ### 2. At which state-size do client-DBs break? #### Description: It's important to know when and where client DB implementations will just break as they can't hold X[G/T]Bs of state. So that we see if things like e.g. sync or other things (OOM, etc) fail. ### 4. Size of an MPT witness & BAL wrt. state size and gas_limit #### Description: It's nice to be able to take measurements about MPT-proof sizes for state as well as for BALs(looking at Glamsterdam already). Specific metrics: - MPT Multiproof for state-diff size. - Size of BAL for each block at different gas-limit rates with different bloating scenarios. - Time taken to compute the BAL and the MPT multiproof. ### 5. DB compaction impact (if applies to DB type). #### Description: Interesting to see the impacts on DB compaction that state-growth will cause and when. Would be interesting to have a client constantly running compaction or at least monitor closely what's the Specific metrics: - Duration - Frequency - What happens if we reorg when ongoing. Check for different reorg sizes. - Compaction count as in: - ![image](https://hackmd.io/_uploads/Bk745AWQxl.png) ### 6. Sync metrics (when sync breaks and/or how slow/bad becomes wrt state growth and gas_limit increases) #### Description: Test snap-sync with each client for every 50-100 GB. Account for starting and final chain/DB size and speed of syncyng as well as any issues that happen on the meantime. This measurements should be taken under heavy network stress and under avg. workload. - Healig phase duration - Overall sync duration - Start-End DB size - GasLimit at which is performed - R/W performance for all ops. :::danger pari ping for Sync scenario :::: ### 7. Cache missing rates (if cache exists). ##### Description: BALs might ### 9. Transaction Confirmation Times #### Description: Real-world transaction processing speeds under various network loads. Important for maintaining user experience as throughput increases. ### 10. Read/Write performance speed at different state sizes and tree depth leaf inclusions. #### Description: We want to understand this multidimensional tradeoff space of State size - Deepest leaf included - Read/Write performance. The idea is to go in increments of 100GB and force DB leaf inclusions at different tree depths and then measure read/write and state-root computation performance. ## Reth's desired metrics * general i/o metrics (for ex those from prometheus node_exporter), even better if it's possible to collect page cache metrics. ## Erigon's desired metrics * Measure database Access (SLOAD/SSTORE) * Measure state root computation time ## Nethermind's desired metrics ## Besu's desired metrics ### Percentage of state accesses like SLOAD in block execution time. This should be checked with different gas limits, and different state sizes and for similar blocks. ### State root hash calculation. Do EL clients have the same throughput (mgas/s) with higher gas limit? And if no, is it only related to state growth? ### What gas_limit and at what state size do EL clients beak on a predefined hardware, like a a 32 GiB machine. Using [Hardware and Bandwidth recommendations](https://github.com/ethereum/EIPs/pull/9270) from EIP 9270 to see when different EL clients break due to state being too big and the gas_limit too high. To test this multidimensional problem we should get to certain state sizes (increments of 50-100GiB), and then stress-test the network with the different attack scenarios we have prepared adapted to the gas limits proposed. ## Geth desired test cases ### Random storage access patterns We are mainly concerned about blocks that have a similar access pattern as ZEN mining: We would like to see the following scenarios tested with a single large contract with a lot of random storage slots - Reading a lot of random storage slots with SLOAD - Updating EXISTING storage slots to another non-zero number - Updating EXISTING storage slots to 0 - Writing more random storage slots in the contract ### Reorg testing We would like to see larger reorgs of blocks that contain a lot of changes to the database, like - Reorging the head block - Reorging the last 127 blocks - Reorging the last 128+ blocks (geth supports reorgs up to 8k) ### Testing of pathdb in archive mode We are working on shipping a new archive mode which would be nice to test on this network. ### Impact of account tree depth vs storage tree depth During our state root computation, we calculate the storage tree's in parallel. The account tree is computed at the end. Thus an increase in the depth of the account trie probably has more impact on our state root computation than increase in the state tree

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully