question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Full node needs a large amount of IO for what it does

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

Running a full node puts a relatively high random IO load on the disk with the .chia directory (on the order of hundreds of KiB/s) which is on an SSD in my case.
Having it on the HDD I’m plotting on actually causes the blockchain to fail syncing because it’s stuck waiting for IO.

My reasonably well informed guess is that it’s caused by blockchain db synchronisation.

To Reproduce Steps to reproduce the behavior:

  1. Run a full Node
  2. Run iostat 1
  3. Observe burst of IO to main disk every few seconds

Expected behavior A clear and concise description of what you expected to happen.

A full node should have to sync to disk at most every few minutes; a loss of even a few minutes of blockchain state is negligible.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Linux
  • OS Version/Flavor: NixOS 21.05
  • CPU: Intel Celeron J4105

Additional context Add any other context about the problem here.

Running inside a Docker container with the chia dir in a Docker volume backed by ZFS.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hoffmang9commented, Apr 1, 2021

you get a block every 19 seconds and those have to be written out to both the blockchain db and the wallet db so that might now be “right.” That said, we’d love to squeeze some more performance out of here.

1reaction
mariano54commented, Apr 1, 2021

This does seem like a lot, considering the DB is less than 100MB. There might be a bug somewhere

Read more comments on GitHub >

github_iconTop Results From Across the Web

EVM Nodes - A Dive Into The Full Nodes vs Archive Nodes
The difference between full nodes and archive nodes is that archive nodes allow you to query the historical state of the blockchain.
Read more >
Running A Full Node
A full node is a program that fully validates transactions and blocks. Almost all full nodes also help the network by accepting transactions...
Read more >
Full node - Bitcoin Wiki
Any computer that connects to the Bitcoin network is called a node. Nodes that fully verify all of the rules of Bitcoin are...
Read more >
What is a Node and Why Should I Operate One?
— Nodes maintain the latest record of the Bitcoin network and consistently verify and approve new transactions. They also ensure that everyone ...
Read more >
Flux Nodes
FluxNodes require high-uptime, enterprise-grade hardware to operate on and provide real, useful computing power to the network. Operating a FluxNode is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found