aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Serius performance problem  (Read 5861 times)

roscio1975

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Serius performance problem
« on: February 02, 2006, 06:21:46 PM »

Hi all...

When i use apps that need high cpu (like video compression) amule freezes and there isn't way to use it...
Any suggestions?

I try also to compile amuled without any success...

 ?( ?( ?(
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: Serius performance problem
« Reply #1 on: February 02, 2006, 06:57:18 PM »

Can you tell us a bit about your hardware configuration (particularly cpu, ram) and which version of OS X you are using?
Logged
Current aMule CVS builds for OS X can be found here.

roscio1975

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Serius performance problem
« Reply #2 on: February 02, 2006, 07:14:31 PM »

PowerMac G5 1.8G 1g ram osx 10.4.4

Bye  8)
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: Serius performance problem
« Reply #3 on: February 03, 2006, 07:29:56 PM »

Yeah, that machine should be able to handle some load. However, a few programs grab pretty much all the CPU cycles they can get. You might be able to make them less greedy using the terminal command 'renice'.

You could also try increasing aMule's priority via renice.

If you are a little familiar, here are some quick instructions on how to use renice to change aMule's priority:
- do "ps -auxww | grep -i amule" in the terminal to get the aMule's process id (it's the first number from the left)
- do "sudo renice -20 ID" where ID is the process id number you got in the previous step. You will have to enter your admin password for this, because we are setting the priority of aMule higher than normal apps are permitted.
Btw, the priority parameter of renice is a little weird: the highest priority is actually -20 and the lowest is 20. Normal apps run at a priority of 0.

I think there are also GUI programs for renice but I don't remember any off the top of my head.
Logged
Current aMule CVS builds for OS X can be found here.

roscio1975

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Serius performance problem
« Reply #4 on: February 06, 2006, 01:23:47 PM »

nothing to do... i've changed priority to amule process (with nicer) but when i start a video compression (for example ffmpeg)amule hangs  X(
Logged

lionel77

  • Provider of Mac builds, Forum Mod
  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1107
  • Mac OS X 10.4 (Power Mac G5)
Re: Serius performance problem
« Reply #5 on: February 06, 2006, 10:07:59 PM »

Hmm... it seems like ffmpeg is running it's conversions with a prio of -20, too, otherwise it should not be able to steal all the CPU cycles from an aMule that is reniced to -20. So you might want to try to renice ffmpeg to a priority of 5 or so.

It's possible though, that ffmpeg creates a new process when it converts something, so renicing the main app might not help. You can see which process is using how much of your CPU with the terminal command "top -u".

You could also try to look through the options in ffmpeg to see if there is a setting for the priority of the application.
Logged
Current aMule CVS builds for OS X can be found here.

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Serius performance problem
« Reply #6 on: February 11, 2006, 08:16:53 AM »

Hmm.  I doubt ffmpeg is using a higher priority for its processes.  For one thing, that requires privileges which I hope ffmpeg doesn't have.

Don't forget though, that there are resources other than the CPU under contention.  Memory and disk are two likely culprits here.  And if memory is in short supply then the OS will be paging to virtual memory, thus involving the disk, so it could be both.  I would open Activity Monitor and watch the System Memory (especially the rate of page ins/outs) and Disk Activity tabs to see what happens when you run ffmpeg.

You might consider doing your video compression to and from a separate disk drive than aMule is using.

Lionel77, I would be cautious about setting any process's priority to -20.  The main reason is that you could starve vital system processes.  If you think about it, all normal processes run with priority 0 or worse.  So even a renice to -1 puts aMule above all normal processes.  And if some process is not "normal" and has been set by the OS to run with priority higher than that, then it's probably for a darn good reason.
Logged

fer1villa

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
  • Musician
    • http://no
Emule settings
« Reply #7 on: February 27, 2006, 04:27:17 AM »

Im new to mac and to emule, I need to know which settings would be best for Powerbook G$ with ADSL in Preferences/Conection/Bandwith limit/ Download and Upload, etc
Logged

Gomaaz

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 58
  • I want you to leave me alone...
Re: Serius performance problem
« Reply #8 on: February 27, 2006, 11:24:04 AM »

When amule freezes with high cpu....just give him a bit of time...sometimes amule will awake again ;). I think it is also a question of how many downloads you've got in list
Logged
Set UL-speed more higher than 10 kB/sec!! Remember:

You only get what you give  8)

Sav

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Serius performance problem
« Reply #9 on: February 28, 2006, 02:50:33 PM »

Hi, I noticed that amule takes a lot of cpu to "draw" and to "update" the inteface.
By selecting the messages tab, the cpu load drops by 10%.

My box is: Imac G5, radeon x600, tiger 10.4.5
« Last Edit: February 28, 2006, 02:51:30 PM by Sav »
Logged

mattia

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
    • http://astro.imperial.ac.uk/~vaccari
Performance issue (better explained?)
« Reply #10 on: March 02, 2006, 06:38:11 PM »

Well, I suspect I'm facing the same performance issue described in this thread. The thing is, it appears that GUI commands are MUCH slower in 2.1.0 than in 2.0.3. Whenever I'm running some CPU-intensive process, aMule is essentially unresposive to clicking. This applies to most clicking, from clicking on a tab, switiching to the tab, focus switching from/to amule window, maximizing/minimizing amule window, writing in the search form... 2.0.3 performs reasonably well! Renice doesn't help, but to be fair, it might be something related to resource allocation, 'cause while aMule 2.0.3 uses its fair bit of resources (checked via "top"ing from the terminal), 2.1.0 doesn't!

HTH - Mattia
Logged

Sav

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 5
Re: Serius performance problem
« Reply #11 on: March 08, 2006, 02:36:07 PM »

Now I'm running the universal binary version: it takes a lot of cpu, but switching to the messages tab the things go much better: about 3%.
Logged