Skip to content

Zero the memory of the Wasm VM#947

Open
tomaka wants to merge 4 commits intoparitytech:mainfrom
tomaka:zero-memory
Open

Zero the memory of the Wasm VM#947
tomaka wants to merge 4 commits intoparitytech:mainfrom
tomaka:zero-memory

Conversation

@tomaka
Copy link
Copy Markdown
Contributor

@tomaka tomaka commented Jun 16, 2021

Fix #946

Unfortunately the full node syncing speed is now abysmal. Need to figure out what happens.

@tomaka
Copy link
Copy Markdown
Contributor Author

tomaka commented Jun 16, 2021

Apparently Substrate restores what's below __heap_pages instead of zero-ing what's above.

Copy link
Copy Markdown
Contributor

@mergify mergify Bot left a comment

Choose a reason for hiding this comment

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

Automatically approving tomaka's pull requests

Copy link
Copy Markdown
Contributor

@mergify mergify Bot left a comment

Choose a reason for hiding this comment

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

Automatically approving tomaka's pull requests. This auto-approval will be removed once more maintainers are active.

Comment thread src/executor/vm/jit.rs
@tomaka
Copy link
Copy Markdown
Contributor Author

tomaka commented Feb 24, 2022

For context I haven't merged this, because the last time I tried these changes considerably slow down the blocks verification speed of the full node (something like 50 times slower if I remember correctly), which means that I'm probably missing something that Substrate does or doesn't do.

dmitry-markin pushed a commit that referenced this pull request Mar 16, 2026
…ction (#947)

* Refactor `WithBuffers` to be more in line with the `ReadWrite` abstraction

* Fix logs showing wrong bytes count

* Docfix
@dmitry-markin dmitry-markin force-pushed the main branch 2 times, most recently from dffa75f to f471baa Compare March 16, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Zero Wasm VM memory above __heap_pages

2 participants