[ZK Stack] - Why the zksync external node requires 64GB of Ram to run? #742
-
Team or ProjectNo response Module Affected
Rust Version1.80.1 Operating System
Issue DescriptionWe are attempting to run an external node for a self-deployed zkSync Hyperchain, but the node crashes (process killed by the OS) within 30 seconds due to low system memory i.e 8GB. According to the zkSync documentation, the external node requires 64GB of RAM. However, running an Ethereum node only requires 8GB of RAM, as mentioned in this article. Our question is: why does a zkSync node require 4x the memory compared to an Ethereum node? Are there any lower minimum system requirements, such as 16GB of RAM? And is there any way to optimize the node to run on systems with lower specifications? Edit: Expected BehaviorExternal node should be keep on running. Current BehaviorExternal node process killed by OS Repository Link (if applicable)No response Additional DetailsSome logs from external node:
Prior Research
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The requirement for 64GB of RAM for running a ZKsync node, as opposed to the lower requirement for an Ethereum node, primarily stems from the differences in their underlying technologies and the operations they perform.
Unfortunately, reducing the RAM requirement significantly below 64GB might affect the node's ability to perform these operations effectively, leading to issues like the crashes you've experienced. Optimizing the node to run on systems with lower specifications might not be feasible without compromising on some aspects of performance or functionality. For more detailed discussions and potential updates on system requirements, you might want to visit the ZKsync developers discussions on Github. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
Reply from the bot is quite accurate. Eth and ZKsync nodes are very different hence the different requirements. That said, we've teams running with less than 32GB of RAM but that's the minimum recommended. |
Beta Was this translation helpful? Give feedback.
Reply from the bot is quite accurate. Eth and ZKsync nodes are very different hence the different requirements.
That said, we've teams running with less than 32GB of RAM but that's the minimum recommended.