| View previous topic :: View next topic |
| Author |
Message |
draga neophyte
Joined: 13 Oct 2010 Posts: 14
|
Posted: Thu Oct 21, 2010 10:23 pm Post subject: Minimizing disk access when idle |
|
|
Hi everybody. I've been using MLDonkey for years and it's my favourite p2p app.
Now I got a Alix board and installed NetBSD on it. I connected an external hard drive and it works perfectly.
The drive, after some minutes of inactivity, goes to sleep so it spares energy and noise.
When Transmission is working (without files), the drive goes to sleep and never goes up again till i put a new file on queue.
MLDonkey, instead, wakes up the disk quite often, even if there are no files. I've modified some options:
ED2K-remove_old_servers_delay to 86400.
save_options_delay to 86400
share_scan_interval to 0
I also linked the log file to /dev/null
It goes better, but i see it still wakes up the disk. Sometimes it does it after 6/7 hours, sometimes many times per hour.
Have you any hints or suggestions? The idea would be of keeping mlnet running at all the times, knowing it won't wake up the disk if no files are shared or downloading. |
|
| Back to top |
|
 |
spiralvoice Sage
Joined: 06 Jan 2003 Posts: 3982 Location: Germany
|
Posted: Fri Oct 22, 2010 4:52 am Post subject: |
|
|
Have a look at option backup_options_delay and whether via option
interval in web_infos files are re-downloaded regularly. _________________ Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks |
|
| Back to top |
|
 |
draga neophyte
Joined: 13 Oct 2010 Posts: 14
|
Posted: Fri Oct 22, 2010 9:25 am Post subject: |
|
|
| spiralvoice wrote: | Have a look at option backup_options_delay and whether via option
interval in web_infos files are re-downloaded regularly. |
backup_options_delay is set at 0
which are the options that control the web_info data download interval?
Thank you! |
|
| Back to top |
|
 |
ygrek professional

Joined: 20 Mar 2010 Posts: 521
|
|
| Back to top |
|
 |
draga neophyte
Joined: 13 Oct 2010 Posts: 14
|
Posted: Fri Oct 22, 2010 8:16 pm Post subject: |
|
|
| Thank you. Checked. Some of them (like GeoIP) are updated just at core start, others once every some days. |
|
| Back to top |
|
 |
Balamutick user

Joined: 19 Oct 2008 Posts: 231 Location: Russia, Saint-Peterburg city
|
Posted: Sat Oct 23, 2010 12:18 am Post subject: http://mldonkey.sourceforge.net/Minimizing_disk_access_when_ |
|
|
Hi, draga.
I am inspired by your question (plus it was a bit of time) and wrote an article in wiki for your question. In two languages. Article in Russian original, because the article on English can be a little grammatically incorrect (who can - please correct).
Tell me please, last post helped you finally solve your problem?
P.S. That article on English _________________ Russian community Mldonkey. Русское сообщество MLdonkey. |
|
| Back to top |
|
 |
draga neophyte
Joined: 13 Oct 2010 Posts: 14
|
Posted: Wed Oct 27, 2010 10:03 pm Post subject: Re: http://mldonkey.sourceforge.net/Minimizing_disk_access_w |
|
|
| Balamutick wrote: | Hi, draga.
I am inspired by your question (plus it was a bit of time) and wrote an article in wiki for your question. In two languages. Article in Russian original, |
Good article!
More or less what I've tried. Well, in the last days my mldonkey has been busy so don't know if those things solved
Actually what I think I've noticed it that the disk stays off most of the time but sometimes it wakes up, works for some seconds, and goes down. It can even happen more times in just few minutes, then it stays off for hours. But I'm not sure, yet. Didn't observe it enough to give a complete opinion. |
|
| Back to top |
|
 |
draga neophyte
Joined: 13 Oct 2010 Posts: 14
|
Posted: Thu Nov 04, 2010 9:40 am Post subject: |
|
|
Well, I did some tests.
The disk spins up in an unpredictable way. Sometimes it stays off for hours, sometimes it wakes up every few minutes. There doesn't seem any apparent reason.
Is it possible that, not resharing at regular intervals, the disk spins up when another user asks us a chunk of a file that according to mlnet is still here but, instead, has been removed? |
|
| Back to top |
|
 |
spiralvoice Sage
Joined: 06 Jan 2003 Posts: 3982 Location: Germany
|
Posted: Thu Nov 04, 2010 5:20 pm Post subject: |
|
|
| draga wrote: | | Is it possible that, not resharing at regular intervals, the disk spins up when another user asks us a chunk of a file that according to mlnet is still here but, instead, has been removed? |
Use MLdonkey option verbosity to display these requests in logfile.
Hint: Via syslog and MLDonkey option log_to_syslog you can send the
MLDonkey log to another machine to avoid disc spin up  _________________ Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks |
|
| Back to top |
|
 |
draga neophyte
Joined: 13 Oct 2010 Posts: 14
|
Posted: Thu Nov 04, 2010 5:39 pm Post subject: |
|
|
Thanks spiralvoice. Just configured to "verb" debug level and to log on syslog (on a ramdisk, of course )
Now will wait for interesting messages. Meanwhile, i have done a script that performs a "reshare" every time a file gets removed by the "incoming", in order to be sure that no missing files are still considered by mlnet.
Will post the results as soon as i will have some news. |
|
| Back to top |
|
 |
draga neophyte
Joined: 13 Oct 2010 Posts: 14
|
Posted: Sun Nov 07, 2010 8:43 am Post subject: |
|
|
Mmm...disk is spinned up without apparent reason. The "verb" option also doesn't suggest anything. Look at the log here:
| Code: | Nov 7 05:38:33 localhost /netbsd: sd0: pack is stopped, restarting...
Nov 7 05:53:00 localhost /netbsd: sd0: pack is stopped, restarting...
Nov 7 05:58:58 localhost /netbsd: sd0: pack is stopped, restarting...
Nov 7 06:33:20 localhost /netbsd: sd0: pack is stopped, restarting...
Nov 7 06:55:19 localhost /netbsd: sd0: pack is stopped, restarting...
Nov 07 06:58:50 localhost mlnet: [EDK] WALKER: try connect 95.211.73.66:4113
Nov 07 06:59:00 localhost mlnet: [EDK] WALKER: try connect 204.45.85.242:4232
Nov 07 06:59:01 localhost mlnet: [EDK] incoming connection from 204.45.85.242:37353 accepted: (0/75) www.total.com (204.45.85.242:4232)
Nov 7 07:48:37 localhost /netbsd: sd0: pack is stopped, restarting...
Nov 7 07:56:44 localhost /netbsd: sd0: pack is stopped, restarting...
Nov 7 08:14:13 localhost /netbsd: sd0: pack is stopped, restarting...
Nov 7 09:08:54 localhost /netbsd: sd0: pack is stopped, restarting...
Nov 7 09:24:25 localhost /netbsd: sd0: pack is stopped, restarting...
Nov 7 09:35:01 localhost /netbsd: sd0: pack is stopped, restarting...
|
Turning off mldonkey stops those restarts, leaving the disk off all the time (unless accessed). So it's definitely mldonkey who's accessing the disk.
How could I investigate more? Thank you. |
|
| Back to top |
|
 |
ygrek professional

Joined: 20 Mar 2010 Posts: 521
|
Posted: Sun Nov 07, 2010 9:59 am Post subject: |
|
|
strace mlnet and look for the open syscalls to see what files it accesses. I think bsd analogue of strace is called ktrace but I am not familiar with its options. _________________ Download | Report bugs | git mirror |
|
| Back to top |
|
 |
draga neophyte
Joined: 13 Oct 2010 Posts: 14
|
Posted: Mon Nov 08, 2010 6:44 pm Post subject: |
|
|
| ygrek wrote: | | strace mlnet and look for the open syscalls to see what files it accesses. I think bsd analogue of strace is called ktrace but I am not familiar with its options. |
Tried it. But the problems is that, even when idle, mlnet does lots of operations with i/o and the file is huge. considering that it turns on the disk in an unpredictable way (that may be even after some hours), I think it's almost impossible to understand in a predictable way. Or just I'm not good enough
Anyway, is there a way to ask a more verbose log than "verb"? |
|
| Back to top |
|
 |
spiralvoice Sage
Joined: 06 Jan 2003 Posts: 3982 Location: Germany
|
Posted: Mon Nov 08, 2010 7:41 pm Post subject: |
|
|
| draga wrote: | | is there a way to ask a more verbose log than "verb" |
Yes, have a look at the options description of option verbosity.
Hint: In HTML interface the description is displayed when hovering the
mouse over the option name. Otherwise look at downloads.ini.
Suggestion: "verb file share md4 swarming" _________________ Link overview and precompiled cores here: http://mldonkey.sourceforge.net/DownloadLinks |
|
| Back to top |
|
 |
ygrek professional

Joined: 20 Mar 2010 Posts: 521
|
Posted: Mon Nov 08, 2010 8:30 pm Post subject: |
|
|
| draga wrote: |
Tried it. But the problems is that, even when idle, mlnet does lots of operations with i/o and the file is huge. |
Ehm, use grep :) With strace you can filter specific calls, i.e. strace -e open will show only open() calls. NetBSD trace should have something similar, otherwise simply grep the output for 'open', there shouldn't be many. _________________ Download | Report bugs | git mirror |
|
| Back to top |
|
 |
|