-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Constant 100% cpu load when there is over >20k accounts #6456
Comments
So this is a confirmed bug? |
Yes, we are looking into it. Meanwhile, have you considered to use external account-management of some kind? While I agree Parity should be able to handle lots of accounts, it's probably not initially designed for that tasks and this task requires some more love. |
@5chdn, I'd appreciate giving some examples/how-tos how to properly implement external accounting. |
Yes, it seems to be a confirmed bug. As local accounts growing parity's CPU usage is increasing. So that means parity's accounting is useless for anything more than 10k accounts. Sure local accounting is a way to go, but it might be complicated for already built systems based on RPC functions. I'll certainly look into external accounting, but still would be nice to fix this bug somehow. Thank you. |
@gituser What's your workflow? Do you ask for |
No. I do not use The most queried thing over RPC is transaction information (e.g. confirmations, etc). But I do have separate database with another parity instance which indexes whole blockchain into relationship database (MySQL). So workflow is like this:
I can turn on RPC logging if you want, what do I need to pass over to parity? But the problem is surely there, as I said before after removing empty accounts the CPU usage went downhill, of course it's still there but it's much less now. |
Any update on this? Maybe there is possible to implement some trivial fix for this? Thank you. |
@tomusdrw thank you for the update, I'm trying v1.7.2 hopefully it won't break anything else. Thanks. |
Trying to build
any idea how to fix this? EDIT: seems |
I've tested after moving 25k out of the keys dir the CPU usage goes down a bit. |
Before filing a new issue, please provide the following information.
Parity is using 100% cpu all time when there is about 20000 account addresses in it.
From strace I can see that it's doing a lot of lstat() calls to directory with keys. Maybe it's time to implement some sort of caching?
I'm running parity with these parameters:
I've checked on other hosts where there is identical parity instance and about 8k accounts and it runs better (no constant 100% or more load though there is some CPU activity).
NOTE: in both cases parity runs on SSD drives.
Thank you
The text was updated successfully, but these errors were encountered: