Skip to content
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

CPU usage (resolver mode) #358

Open
d47081 opened this issue Dec 5, 2023 · 7 comments
Open

CPU usage (resolver mode) #358

d47081 opened this issue Dec 5, 2023 · 7 comments

Comments

@d47081
Copy link

d47081 commented Dec 5, 2023

After few days of using Alfis as the resolver on VPS server, found that CPU usage grows to about 50-80%

I'm also providing public DNS + opened DHT port to support the network, so maybe that's is a reason?

as blockchain cached in SQLite, not sure the issue in block values decryption for each DNS request..

@d47081
Copy link
Author

d47081 commented Dec 5, 2023

I have temporarily stop the service and free about 500Mb of RAM it is regular requirements for Alfis in resolver mode?

upd. restarted the service and no problem with CPU usage now.. maybe it's really related to the public mode.

@d47081
Copy link
Author

d47081 commented Dec 5, 2023

Just for a note some thoughts:

These days I've running another CPU-hungry process and maybe Alfis just stuck there with latest blocks update and I've just 'catch' this moment

My VPS have just 1 CPU core, so maybe issue in processes queue.

@d47081 d47081 changed the title CPU usage (resolver only) CPU usage (resolver mode) Dec 5, 2023
@Revertron
Copy link
Owner

Can you please build a fresh binary from master branch?
I've added a debugging mechanism to catch the place where it stucks.

If it stucks somewhere it will write a line in the log (syslog).

@d47081
Copy link
Author

d47081 commented Dec 5, 2023

If app version changed, I can update from repository binaries as currently have not enough of resources to compile there (Ubuntu 22.04.3 LTS)

Or maybe will try to compile on another machine with same OS and upload to server but few days later.

p.s. on my experience, it happened with other public DHT-based services, and usually depend of network activity there. but let's catch those details with syslog

@Revertron
Copy link
Owner

I have a compiled binary at https://up.revertron.com/alfis.

You can update it like this:

service alfis stop && wget -O /usr/bin/alfis https://up.revertron.com/alfis && service alfis start

@ufm
Copy link
Contributor

ufm commented Dec 11, 2023

BTW, perhaps you won't encounter this issue on a freshly built Alfis. I experienced this problem only on the version installed from the repository https://deb.revertron.com/. If I compiled Alfis myself, this binary (seemingly) didn't create such problems witj CPU load.

@d47081
Copy link
Author

d47081 commented Dec 11, 2023

Thanks, I'm using latest version compiled and no problems on this moment found

Repository owner deleted a comment from tim-tepia Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants