aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: problem with hard disk sharing  (Read 3423 times)

Karhandras

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 47
problem with hard disk sharing
« on: August 28, 2005, 10:32:55 AM »

Hi all,
I am new to aMule, I read all the FAQ, but I cannot find an answer to my problem:

I run aMule on a PII 266 MHz with Gentoo, I compiled it to run as amuled without X and with amuleweb

The problem is this: I've got a network hard disk, I mount it on my linux box with smbmount, and I put the Temp and Incoming dirs there. When I run aMule the disk become really slow and the other clients of my LAN (either linux and win) take a LOT of time to copy or to read data from the HD (like 2 hours for a 100 MB file!)

I tryed to set the number of connection to 1, connection /5 sec to 1 and everything to minimum as I read in the FAQ, but nothing changes...

Does aMule 'takes control' of the HD?

I hope that someone can help, I'm really stuck!
Logged

Nodsu

  • Jr. Member
  • **
  • Karma: 3
  • Offline Offline
  • Posts: 62
Re: problem with hard disk sharing
« Reply #1 on: August 28, 2005, 10:43:53 AM »

How much RAM do you have in that machine? Is the same drive the swap device?
Logged

Karhandras

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 47
Re: problem with hard disk sharing
« Reply #2 on: August 28, 2005, 10:49:09 AM »

I've got 96MB of RAM, and no, the swap partition is on the linux box, not on the network HD.

Does it makes difference?
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: problem with hard disk sharing
« Reply #3 on: August 28, 2005, 10:56:53 AM »

maybe try to tune your smbserver a litte, but I used to mount a smb-disk aswell and it worked without problems
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: problem with hard disk sharing
« Reply #4 on: August 28, 2005, 01:41:05 PM »

It seems to me that using a network-mounted file system for Temp and shared directories (including Incoming) effectively doubles the bandwidth that aMule consumes.  Every byte of data that you receive as part of a download, you then transmit to the file system.  Similarly, every time you need to send file data as an upload to a client, you first have to read it from the network file system.

Are you saturating your network?
Logged

Karhandras

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 47
Re: problem with hard disk sharing
« Reply #5 on: August 28, 2005, 06:27:37 PM »

I verified that the network still works well, I got a 54Mb wireless lan, but not many downloads/uploads in aMule, and pinging either the network disk and the linux box I obtain good results (max 200 msec instead of 20 msec without aMuled running).
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: problem with hard disk sharing
« Reply #6 on: August 28, 2005, 06:36:34 PM »

I don't know is it is such a good idea to use a network mounted disk for the temp files, and i doubt even more if these computers are connected via WLAN. And 200 ms is AGES when it comes to accessing the harddrive. I think the wireless connection is the weak point here. (And don't forget: Only because it is named "54mbit/sec" doesn't mean that you can really get that bandwidth out of the network. Even if the connection works 100% at the maximum speed and no packets are dropped you still have an awful lot of overhead on wireless connections which can use up to 40% of the available bandwidth...)
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: problem with hard disk sharing
« Reply #7 on: August 28, 2005, 08:30:45 PM »

Quote
Originally posted by Karhandras
I verified that the network still works well, I got a 54Mb wireless lan, but not many downloads/uploads in aMule, and pinging either the network disk and the linux box I obtain good results (max 200 msec instead of 20 msec without aMuled running).

you run this over wlan!? omg...

this would never work really good...since aMule makes up a lot of connections and this slows down your whole router, wlan was not made for 500 or more connections from one pc ;)
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Karhandras

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 47
Re: problem with hard disk sharing
« Reply #8 on: August 28, 2005, 08:56:34 PM »

OK, I know that the WLAN isn't an optimal idea, but I've got some problems and cannot connect the server with a patch chord... however I'm still trying and the problem is still there even if there are no shared files and no files in download!
To avoid the high number of connection I set my amule.conf like this

MaxSourcesPerFile=1
MaxConnections=1
MaxConnectionsPerFiveSeconds=1

Obviusly I will tweak it a little... but the problem is still there whit these settings.

@thedude0001    I tried to move some 'someGB' files from another client to the network disk and in that case the ping is in the order of 30 - 40 ms... the high response time is present ONLY when aMule is running, even with the settigs above and no active transfers.
It seems like aMule set a 'mutex' on the hard disk... I know this is not the right term... I hope you can understand what I mean, but as you may have noticed english is not my native language...
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: problem with hard disk sharing
« Reply #9 on: August 28, 2005, 09:06:57 PM »

maybe use an external usb2 hdd drive for example?!

and maybe check that in the samba server, you dont have virus scanning enabled for example, since this will slow down it really really hard
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

Karhandras

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 47
Re: problem with hard disk sharing
« Reply #10 on: August 31, 2005, 09:02:37 AM »

OK, I can't say I've solved, but setting a higher nice level things goes really better.

Now I can transfer files without waiting hours and kepping aMuled running with some tweaked settings about connections.
Logged