-
Notifications
You must be signed in to change notification settings - Fork 154
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
Possible performance regression from redb
version 2.1.3
to 2.1.4
#879
Comments
Uh oh! I'll take a look. It's been a while since I ran ord, will these steps reproduce the issue?
|
Thanks for looking into it! This command should do it:
You don't have to set the |
The difference in speed between 2.1.3 and 2.1.4 is enormous. I kept time-stamped logs. Here are some commit timings from 2.1.3:
See how the slowest commit is about 4 minutes. Here are the same commits, committing the same data in 2.1.4:
Here the commits take 4 and 33 hours... |
Thanks for the additional info. I'm waiting for my bitcoin node to sync and will test locally. 2.1.4 changed the page caching algorithm to LRU, which is the most likely cause of this issue. I'm curious, if you stop the ord indexing process and resume it does the speed change at all? |
@raphjaph I have a fully sync'ed bitcoin v28.0.0 node running locally now with
Do I need to configure something else? |
Ah yes, for |
@gmart7t2 what's the exact ord command you ran? I just ran this:
Which finished in only 1min 27secs |
I figured out the issue. There is a bug in 2.1.4 where the read cache is LRU, but the write cache became random eviction. I retested just now with: |
@raphjaph this is fixed in 2.2.0 |
Nice! Trying it out on our test server now. |
Perfect, thanks! |
Full sync worked, it took 20h as opposed to 21h on 2.1.3, so nice speedup! |
Sorry I didn't see your question until now. The difference is the |
From
ord
version 0.20.1 to version 0.21.0 some users have run into problems indexing. I've tested it myself on our dev server and it stopped at block 375000 (doesn't finish the commit), others reported 350000, 430000 and 815000. We updateredb
from2.1.3
inord
0.20.1
toredb
2.1.4
inord
0.21.0
and we think that might be the culprit.Here's the tracking issue and the version update commit.
I've now pinned redb to version
2.1.3
here and running the index seems to work again.The text was updated successfully, but these errors were encountered: