-
Notifications
You must be signed in to change notification settings - Fork 178
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
lbrycrdd block check performance degrades non-linearly with txset #389
Comments
@nitronick600 , I can look into this. In the meantime will you please run the same timing test with v0.17.4.5 and v0.19.1.2 ? You will have to reindex once when going to 17.4.5 but not when going to v19 from there. Run with -dbcache=1200 on those. |
Alright, I'll run the reindex now for 17.4.5 If I recall correctly, we need to run v0.17.3.2 because of a consensus issue in the later versions? |
This is also causing the |
The consensus issue in 17.4.x is repaired in 17.4.5. It is marked as pre-release so that we could get some more internal miles on it, increase our confidence in it. |
"CreateNewBlock() packages: 1.56ms (457 packages, 19 updated descendants), validity: 6329.01ms (total 6330.57ms)" This block generation time is pretty common now. |
I want to clarify a few things:
|
Verify is exactly how long is merkle hash computation, that's on v17_master, sqlite backend. |
On block 771091 we have 5.5 sec. on merkle hash. |
17.4.5 doesn't seem any better:
Will try 19.1.2 next |
@nitronick600 If you can compile (clone branch |
19.1.2 isn't any better either:
As an aside, it took almost 15 minutes to startup. |
Have we been able to make any progress on this? |
We have progress on, #390 was merged to v17_master which makes things faster. You can compile by yourself or wait for release, if you use HDD you may interested to try to increase db cache, |
@nitronick600 you can test new release https://github.com/lbryio/lbrycrd/releases/tag/v0.17.4.6 |
We're running the branch now |
In the release 0.17.4.6 has another one improvement especially indexing by claim id instead of claim name which gives another boost. So the release is faster than merkle_improve. |
Will this require a reindex? |
No, just use new executable. Memory usage is lowered by default if you prefer to use higher memory (will be faster) |
Background
I run Luxor mining pool. Since ~5/21 we've seen larger numbers of transactions on the network, which is a good thing, but we've seen this impact the performance of lbrycrdd significantly.
Issue
Blocks should not take >1s to Connect. If they do, this causes a huge problem for miners, especially for short block times like Lbry.
Expectation
Performance in the same order of magnitude as BTC -
Bench output from lbrycrdd for block 771809
Bench output for a similar block from btc (height 632057)
The most concerning problem is the tx validation speed. You'll notice it's 50x slower on LBRY than BTC.
Further, it seems to get worse as more transactions are added. Notice lbry block 771819 only has 55, and processes at 0.493 ms / txin.
Verify 55 txins: 27.14ms (0.493ms/txin)
This leads me to believe there is some non-linear regression
Reproducer
I can reliably reproduce this issue by running the lbrycrdd daemon with -debug=bench and see how long the block connect takes.
Version:
LBRYcrd Core Daemon version v0.17.3.2-be118de
Machine
2015 Macbook Pro, 2.8 GHz Quad-Core Intel Core i7
16 GB 1600 MHz DDR3
Config
Default config.
The text was updated successfully, but these errors were encountered: