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

Excessive CPU use and low download speed #44

Open
jcea opened this issue Mar 2, 2020 · 6 comments
Open

Excessive CPU use and low download speed #44

jcea opened this issue Mar 2, 2020 · 6 comments

Comments

@jcea
Copy link

jcea commented Mar 2, 2020

Since a few months ago, same OS, same MLdonkey release 3.1.5, same configuration, after some time, the mldonkey process eats a complete CPU core and download speed is abysmal. If I restart the process, the CPU usage will be low and the download speed will be high... for a while.

The CPU core can be saturated even if nothing in the download queue/incoming. That is, not traffic at all, core 100%.

I upgraded to 3.1.6 a couple of months ago, and the problem persists.

This is a new behaviour . I have been using MLDONKEY for a decade or more and this bad behaviour is recent, a few months ago. Maybe the donkey network has changed and some new messages are bugging mldonkey.

I don't know ocaml, so I can not debug this by myself, but I can follow instructions if you direct me.

PS: With nothing to do, no shared files, nothing in the queue, the idle CPU time is 10%, a bit overkill to be only maintaining DHT presence... :-?

Thanks for your time.

@ygrek
Copy link
Owner

ygrek commented Mar 3, 2020

  1. Please post the output of sysinfo.
  2. What is your OS and hardware?
  3. What network(s) are you using (BT, edonkey, etc)?
  4. Please use the pmp script to get the run-time profile when the problems happens : pmp -i 40 -p PID (where PID is the pid of mlnet process (aka pgrep mlnet))

@Testerprivate
Copy link

jcea, just switch to false the option "enable_servers". On 3.1.5 it helped me. Later I will check on 3.1.6.

@jcea
Copy link
Author

jcea commented Jun 20, 2020

Where is that option, @Testerprivate ?

Thanks.

@jcea
Copy link
Author

jcea commented Jun 20, 2020

Ok, @Testerprivate . I have found it in the INI files, but not in the web GUI.

The comment says this:

        (* Set to true if you want mldonkey to connect to edonkey servers
          (enable_donkey must be true, and only experimental) *)
 enable_servers = true

Unfortunatelly, I use mldonkey for edonkey access, including using index servers. I can not disable such an option.

I am glad some other people are seeing mldonkey CPU abuse for no reason :-), too. I am not alone!

@Testerprivate
Copy link

jcea, by the way, if you enable enable_servers again, the problem no longer occurs. Magic! Check out, please. Perhaps this should be done “live”, that is, in the web interface or via telnet (ssh + Lynx).

@jcea
Copy link
Author

jcea commented Jun 21, 2020

jcea, by the way, if you enable enable_servers again, the problem no longer occurs. Magic! Check out, please. Perhaps this should be done “live”, that is, in the web interface or via telnet (ssh + Lynx).

I can not reproduce this.

I have CPU time >90% when idle after a few hours of starting mldonkey, and I have to restart it to improve situation for a while. The proposed workaround seems not to work in my case.

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