-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
"ord --index-sats index" is incredibly slow #1722
Comments
There are some open PR we haven't merged yet (#1516 and #1636), that people are claiming helps so you could pull those and try indexing with them. |
With #1516 |
From an end-user perspective, and based on a cursory examination of Activity Monitor in macOS I think it's disk IO. I'm 30-some hours into a CPU: 50-70% |
So after hearing of a Windows user with a substantially similarly specced machine who finished the whole |
What kind of hard drive are you using? |
ord data is on the built-in SSD. bitcoin data on USB-C SSD. |
@Prestonsr for a normal sync can you please help test/benchmark my improvement branch? https://github.com/casey/ord/issues/1648#issuecomment-1426565987 Myself and some testers have managed to sync with it under an hour. |
I observed the slowdown on Mac back in November, after I had sped up the indexing. There does seem to be a significant factor on Macs making indexing a lot slower than on somewhat comparable (in terms of RAM, disk, CPU speed) Linux (or even Windows) machines. May be related to unsolved #819 |
Trying to pin down regression. PR https://github.com/casey/ord/pull/703 is my last confirmed reference point before this performance regression on Mac. |
If there's anything I can do to help with testing I'm happy to. I've aborted my long-running |
It takes weeks for me on a VPS. |
@so7ow I managed to sync with |
So, I'm a little git-illiterate. Would this be the correct process to build?
|
Looks right to me. |
Ok, I have it running now. Went pretty quickly up to block 250,000 or so. Now appears to have slowed radically and still chugging toward 300,000. I'll let it run for now but if it gets to more than say ~2 days I'm going to kill it again! |
Lol it's been 3 hours. Sounds like it's making good progress. |
Sorry, I'm just jaded from my previous run! 🫠 |
@so7ow how is it looking today? |
I'm approaching block 500,000 after ~21 hours. |
Ahh dang. I was well into 600ks after 12 hours. You sure you are on the right commit? |
Pretty sure....I shared my steps above and it compiled cleanly.
|
ok... well was this further than you got after 21 hours last time at least? Also, thank you for testing! |
Oh yes, it's definitely faster. I didn't really track very carefully so I can't really quantify but up above I had been running for at least a full day and I was only up to around 475000. Progress! I'm just afraid it's going to slow exponentially toward the end and still take a week. But I'll try to be patient. :) |
@andrewtoth I'm at ~33 hours and working through the 535,000s now. |
@andrewtoth ~44 hours and we're in the 585,000s. |
~56 hours - 620,000 blocks and counting |
Dang. Now's the hard part 😬 |
Are you invested in seeing this finish? I'm not--but I'll leave it running if you want me to. We've pretty well established that whatever you fixed to dramatically speed this up on your platform didn't really carry over to Mac, right? |
Yeah well we've determined it is faster somewhat, but still probably will take close to a week. If you don't need the index for yourself I don't really need to see it finished. But thanks again. |
Ok, I'm stopping it! |
Just a quick update that excessively slow sats indexing on Mac continues for me in ord 0.8.0, even as default indexing continues to be very fast on the same machine/environment. |
Running on macOS 13.2. M1 Max CPU, ord data on fast internal SSD. Running ord 0.5.0 with --index-sats seems to start fast but then slows exponentially; seems like it is on track to take multiple days or more, hard to know how slow it will be toward the end. Any way to make this any faster?
bitcoin.conf:
The text was updated successfully, but these errors were encountered: