aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...  (Read 5315 times)

mcorte

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...
« on: January 15, 2009, 10:49:13 AM »

Hello to everyone!
First of all, i'm sorry for my english!
Then, as the title of the post says, i'm trying to run amuled on a  networkedmediattank (http://www.popcornhour.com/onlinestore/index.php?pluginoption=catalog&task=info&item_id=6&main_id=0&category_id=) based on mips. I've succesfully built amuled 2.2.3 + wxGtk 2.8.9, all static, with --disable-debug, --enable-optimize and --disable-ccache.
The daemon seems to work, even if with not high performances (download rate not so high), but on a file completing, it freezes for a while, stops responding, and the download rate goes down to 0.0, and upload rate seems to increase (but maybe a fault in calculation by cpu overload). Does some one have an Idea about an issue? or a workaround for this?

Anyway, i would like to know, if you have some tips about amule.conf, for running amuled on low performance system!

bye
mcorte

PS.: sorry again for my english...
« Last Edit: January 15, 2009, 10:50:44 AM by mcorte »
Logged

Archmage

  • Full Member
  • ***
  • Karma: 5
  • Offline Offline
  • Posts: 119
Re: Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...
« Reply #1 on: January 15, 2009, 04:21:31 PM »

What filesystem you are using?

Are the Temp and Incomming folder on the same partition. If not that this is normal, because the whole file needs to be completed, hashed and copied and deleted. That is a lot of stress on the CPU.
« Last Edit: January 15, 2009, 04:23:13 PM by Archmage »
Logged

mcorte

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...
« Reply #2 on: January 15, 2009, 04:25:36 PM »

Temp and incoming are on the same partition and fs is EXT3  ::)
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...
« Reply #3 on: January 15, 2009, 10:45:38 PM »

Does the same thing happen when you add a new file of that size to your share and then refresh shares, so it gets hashed?
(And no need to  ::), Archmage asked a perfectly valid question.)
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

mcorte

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...
« Reply #4 on: January 15, 2009, 10:56:25 PM »

sorry, coz  ::), it was a face like "unfortunately, this is not my case"... anyway...  when  i add a new file, it takes  a lot for rehashing... does it have to rehash a file on completion?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...
« Reply #5 on: January 15, 2009, 11:06:46 PM »

Check ThreadTasks.cpp:50

CHashingTask::CHashingTask(const CPath& path, const CPath& filename, const CPartFile* part)
   // GetPrintable is used to improve the readability of the log.
   : CThreadTask(wxT("Hashing"), path.JoinPaths(filename).GetPrintable(), (part ? ETP_High : ETP_Normal)),

You can change ETP_High to ETP_Low if you want, even the ETP_Normal, but it will make hashing way slower in your system. OTOH it should prevent CPU starvation.
Logged

mcorte

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...
« Reply #6 on: January 16, 2009, 12:23:47 AM »

thank you, i'm building right now... i will let you know!
Logged

mcorte

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...
« Reply #7 on: January 16, 2009, 10:30:07 AM »

ok after 10 hours working, it seems good, amuled response with no freezes..
Anyway at the moment my CPU usage goes from 25% up to 95% continuosly...
Upload rate is 12kb/s and download rate 15-30kb/s (not so much) but even amulegui and amulecmd got response fast.
Any other tip, to decrease cpu usage?

Thank you again!
Logged

freddy77

  • Developer
  • Full Member
  • *****
  • Karma: 20
  • Offline Offline
  • Posts: 113
Re: Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...
« Reply #8 on: January 22, 2009, 03:38:10 PM »

I'm doing some job trying to embed aMule in a mips router with 64mb of ram (and with no swap support!). I found some leaks that waste some memory (quite few). I also add a patch that use mmap instead of using memory so to avoid unneeded duplication reading file. Please give a try to SVN (9385 or above).
Logged

mcorte

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 6
Re: Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...
« Reply #9 on: January 22, 2009, 03:40:36 PM »

I'm building 9388, i'll let you know! thank you!
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Trying to run amuled 2.2.3 on Popcorn Hour (Mips)...
« Reply #10 on: January 22, 2009, 09:13:48 PM »

embed aMule in a mips router with 64mb of ram (and with no swap support!).
Fritzbox 7270 ?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon