Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blockchain performance slows down after a period of time #595

Closed
viquezclaudio opened this issue Feb 8, 2022 · 2 comments
Closed

Blockchain performance slows down after a period of time #595

viquezclaudio opened this issue Feb 8, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@viquezclaudio
Copy link
Member

viquezclaudio commented Feb 8, 2022

it has been observed that, after starting the devnet and sending transactions to it, there is a point of time (which depends upon the amount of transactions that are sent) where the chain starts to slow down.
This is observed by:

  • Increase in block time
  • Decrease in TPS
  • Increase in disk reads

Several metrics have been collected, with Grafana, that show this problem.
We are currently investigating if this is a problem with our code or the data structures that are used to store information in the database, or the database itself.

Screen Shot 2022-02-08 at 09 59 42

It is important to mention that this screenshot was taken from the minimum scenario where this has been observed, which is a client pushing transactions to itself which rules out the possibility of a network problem, and also, this is why such a huge amount of TPS is observed at the beginning, which does not correspond to a more realistic scenario where there are multiple nodes over a network and some other nodes sending transactions to the network (although the issue has been observed in this latter scenario as well)

@viquezclaudio viquezclaudio self-assigned this Feb 8, 2022
@viquezclaudio viquezclaudio added the bug Something isn't working label Feb 8, 2022
@viquezclaudio viquezclaudio added this to To do in Nimiq 2.0 Devnet via automation Feb 8, 2022
@viquezclaudio viquezclaudio added this to the Nimiq 2.0 Devnet milestone Feb 8, 2022
@viquezclaudio
Copy link
Member Author

The following screenshot, shows the high increase in disk reads when the issue starts to occur
Also it is easy to note the correlation from high increase in disk reads and the blockchain slow down.

image

viquezclaudio added a commit that referenced this issue Feb 10, 2022
This flag improves the DB performance in Linux based platforms, which solves
the high disk reads issue described in #595.
viquezclaudio added a commit that referenced this issue Feb 10, 2022
This flag improves the DB performance in Linux based platforms, which solves
the high disk reads issue described in #595.
viquezclaudio added a commit that referenced this issue Feb 10, 2022
This flag improves the DB performance in Linux based platforms, which solves
the high disk reads issue described in #595.
@viquezclaudio
Copy link
Member Author

Marking the issue as solved, as the performance degradation that is now observed, after introducing the NORDAHEAD flag is just a consequence of running out of memory (disk cache) and disk space, which can occur if a full history node does not have enough resources to maintain all the data that is generated.

Screen Shot 2022-03-07 at 09 05 58

Nimiq 2.0 Devnet automation moved this from To do to Done Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant