need to increase the default dbcache size #237

Closed
opened 2018-11-22 10:05:32 +01:00 by BrannonKing · 3 comments
BrannonKing commented 2018-11-22 10:05:32 +01:00 (Migrated from github.com)

getnameproof fails to return the proof if there is not enough coin cache to roll back to the requested block. In the current release (12.2.3) it completely boggles the application state. In the current master it simply returns too early. We presently allow up to a 50 block rollback. Upstream bitcoin ups the dbcache to 450MB. Some rough calculations on our part show that we would need 1100MB to handle 50 full blocks. 50 full blocks is highly unlikely, but 450MB was insufficient for the use case recently demonstrated. That one required 700MB: Modify the max rollback to 5000 and run getnameproof cuphead f231bbae207d4dc5ee6cf32b5f3ae87958acdc3a40a37e32cb46c95134419f39. I propose that we up it to 700. That's not a steady state RAM usage, just an occasional spike.

`getnameproof` fails to return the proof if there is not enough coin cache to roll back to the requested block. In the current release (12.2.3) it completely boggles the application state. In the current master it simply returns too early. We presently allow up to a 50 block rollback. Upstream bitcoin ups the dbcache to 450MB. Some rough calculations on our part show that we would need 1100MB to handle 50 full blocks. 50 full blocks is highly unlikely, but 450MB was insufficient for the use case recently demonstrated. That one required 700MB: Modify the max rollback to 5000 and run `getnameproof cuphead f231bbae207d4dc5ee6cf32b5f3ae87958acdc3a40a37e32cb46c95134419f39`. I propose that we up it to 700. That's not a steady state RAM usage, just an occasional spike.
bvbfan commented 2018-11-22 12:12:59 +01:00 (Migrated from github.com)

It depends of block size, maximum is 2MB but most of the time is pretty lower. We can set rollback to arbitrary value say ~1000 then we can throw out of memory exception, it'll be pretty noticeable what's going on.

It depends of block size, maximum is 2MB but most of the time is pretty lower. We can set rollback to arbitrary value say ~1000 then we can throw out of memory exception, it'll be pretty noticeable what's going on.
bvbfan commented 2018-11-23 13:42:55 +01:00 (Migrated from github.com)
#238
BrannonKing commented 2018-11-29 10:28:09 +01:00 (Migrated from github.com)

closed via #238

closed via #238
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbrycrd#237
No description provided.