iroha icon indicating copy to clipboard operation
iroha copied to clipboard

Dedicated storage for obsolete blocks and transactions.

Open timofeevmd opened this issue 8 months ago • 0 comments

It would be beneficial to avoid storing all hashes of existing transactions in RAM. A mechanism for storing obsolete transaction hashes in a separate memory segment needs to be implemented. Load testing results indicate a steady increase in RAM usage. As of now, with Iroha2 version="2.0.0-rc.1" git_commit_sha="f348b9a8", 20 million transactions occupy 6GB of RAM. Full report on load testing Following @dima74 fix, the estimated memory consumption dropped threefold, down to approximately 2GB for 20 million transactions. However, this does not appear to be a long-term solution, as reaching 80% RAM utilization will force clients to scale their resources, which could continue indefinitely. Therefore, I propose exploring the use of hard disk storage for obsolete transaction hashes.

timofeevmd avatar Apr 30 '25 14:04 timofeevmd