aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 [2] 3 4

Author Topic: memory usage  (Read 26112 times)

advantz

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 19
Re: memory usage
« Reply #15 on: April 18, 2006, 03:49:16 AM »

Code: [Select]
 08:48:15  up 3 days,  6:21,  1 user,  load average: 0.95, 0.93, 0.91
67 processes: 64 sleeping, 3 running, 0 zombie, 0 stopped
CPU0 states:   5.1% user   5.0% system    0.0% nice   0.0% iowait  89.2% idle
CPU1 states:   2.2% user  28.4% system    0.0% nice   0.0% iowait  68.2% idle
Mem:  2032076k av, 2019084k used,   12992k free,       0k shrd,   62884k buff
                   1431248k actv,  172832k in_d,   43744k in_c
Swap: 1052248k av,  196212k used,  856036k free                 1626792k cached

  PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME CPU COMMAND
 7279 admin     15   0 53224  51M  3252 R     9.7  2.6  21:46   0 amuled

I'm running 100 files, phew takes a lot of cpu resources, but better than torrent

running amule 2.1.1-2 w/ gtk 2.6.3
daemon better than gui then...
« Last Edit: April 18, 2006, 03:51:57 AM by advantz »
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: memory usage
« Reply #16 on: April 18, 2006, 12:42:14 PM »

Code: [Select]
$ ps u -C amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
myuser 18921  9.1 12.1 196540 125496 pts/6   Sl   21:54   3:54 trunk/src/amule --only-chuck-norris-would-stop-me
$ ps u -C amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
myuser 18921 10.8 12.1 196540 125960 pts/6   Sl   Apr17  16:06 trunk/src/amule --only-chuck-norris-would-stop-me
$ ps u -C amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
myuser 18921 10.8 12.1 196540 125968 pts/6   Sl   Apr17  16:25 trunk/src/amule --only-chuck-norris-would-stop-me
$ ps u -C amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
myuser 18921 11.0 12.1 196540 125968 pts/6   Sl   Apr17  18:08 trunk/src/amule --only-chuck-norris-would-stop-me
$ ps u -C amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
myuser 18921 17.2 12.1 196540 125992 pts/6   Sl   Apr17  97:22 trunk/src/amule --only-chuck-norris-would-stop-me
$ ps u -C amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
myuser 18921 17.5 12.1 196540 126068 pts/6   Dl   Apr17 101:06 trunk/src/amule --only-chuck-norris-would-stop-me
$ ps u -C amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
myuser 18921 17.5 12.1 196540 126068 pts/6   Rl   Apr17 101:13 trunk/src/amule --only-chuck-norris-would-stop-me
...
aMule CVS rev. 6702 has been running for 9:45 h
amuleuser is connnnected to xxxxxxxxxxxxxxx [XXX.XXX.XXX.XXX:XXXX] with HighID | Kad: ok
Total Download: 378.82 Gb, Upload: 193.71 Gb
Session Download: 1.42 Gb, Upload: 628.63 Mb
Download: 209.2 kB/s, Upload: 24.0 kB/s
Sharing: 1190 file(s), Clients on queue: 4999
This is the latest CVS code, aMule monolithic. Memory usage seems stable. 50 files in dl queue.
Logged

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
Re: memory usage
« Reply #17 on: May 04, 2006, 11:23:21 PM »

Ok, back again. I am now running today's CVS. How do you get those amule stats on the command line?
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: memory usage
« Reply #18 on: May 04, 2006, 11:26:17 PM »

Use a program named cas. You must configure aMule with --enable-cas or something like this.
Logged

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
Re: memory usage
« Reply #19 on: May 04, 2006, 11:54:43 PM »

Here is my cas output:
Code: [Select]
aMule CVS Thu May  4 07:02:02 CEST 2006 has been running for 1:14 h
amuleuser is connnnected to XXXXXXXXXX [xxxxxxxxxxxxx] with HighID | Kad: ok
Total Download: 652.67 Gb, Upload: 2.05 Tb
Session Download: 37.35 Mb, Upload: 334.23 Mb
Download: 6.4 kB/s, Upload: 80.0 kB/s
Sharing: 1371 file(s), Clients on queue: 4817
Any other information I can supply you with?
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: memory usage
« Reply #20 on: May 05, 2006, 05:36:16 AM »

Well, cas does not give us any interesting information, I had posted it only to show my uptime.

You said you have problems with memory leaks. I assume you use CVS code, right? Post here:
$ amule --version

And with aMule running, with one hour intervals, run
$ ps u -C amule

So that we can compare the memory usage report.

Cheers!
Logged

todo_basura

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
memory usage
« Reply #21 on: May 06, 2006, 02:19:15 PM »

seems same problem.

Starts with 10.5 % mem usage and when it reaches +- 60% i can't preview files

If i close and restart amule then all is ok.

suse system. Amule and wxGTK2 compiled as says in amule wiki "compile and install amule from source"

amule --version :

aMule 2.1.1 using wxGTK2 v2.6.3 (Unicoded) (OS: Linux)

"ps u -C amule" with a 30 minutes interval :

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.2 37.6 418948 389656 ?       Sl   May04 265:09 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.2 37.8 421648 392436 ?       Sl   May04 269:12 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.2 38.7 430844 401348 ?       Sl   May04 278:56 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.2 38.8 431836 402516 ?       Rl   May04 283:05 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.2 39.1 434892 405524 ?       Sl   May04 287:56 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.1 39.3 437536 408104 ?       Sl   May04 292:29 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.1 39.7 441256 412112 ?       Sl   May04 296:54 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.1 40.1 444980 415836 ?       Sl   May04 301:05 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.0 40.5 448820 419820 ?       Sl   May04 304:58 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.0 40.9 453528 424520 ?       Sl   May04 309:20 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.0 41.3 458016 428524 ?       Sl   May04 313:31 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 16.0 41.8 462756 433468 ?       Sl   May04 318:07 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.9 42.1 466188 436884 ?       Sl   May04 322:18 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.9 42.5 470356 440924 ?       Sl   May04 326:41 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.9 42.8 473868 444504 ?       Sl   May04 330:38 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.8 43.2 478060 448612 ?       Sl   May04 334:29 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.8 43.7 482364 453308 ?       Sl   May04 338:39 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.8 44.2 487152 458008 ?       Sl   May04 343:16 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.8 44.5 490688 461680 ?       Sl   May04 347:47 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.7 44.8 494292 465192 ?       Sl   May04 351:48 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.7 45.3 499528 470156 ?       Sl   May04 356:17 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.7 45.7 503100 473812 ?       Sl   May04 360:36 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.7 46.1 507948 478660 ?       Sl   May04 365:03 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.7 46.6 513140 483816 ?       Sl   May04 369:44 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.7 47.1 518012 488888 ?       Sl   May04 374:19 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.7 47.6 522692 493396 ?       Sl   May04 379:13 amule
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
basura   30923 15.7 48.0 526816 497728 ?       Sl   May04 383:37 amule


any help?
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: memory usage
« Reply #22 on: May 06, 2006, 02:28:14 PM »

That's really weird.

Wait, do you use EC?
Logged

todo_basura

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: memory usage
« Reply #23 on: May 06, 2006, 03:09:20 PM »

EC? --> external conections?

No, i do not use external conections
Logged

phoenix

  • Evil respawning bird from aMule Dev Team
  • Developer
  • Hero Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 2503
  • The last shadow you'll ever see
Re: memory usage
« Reply #24 on: May 09, 2006, 03:57:13 AM »

Yeah, definetly sucking memory...
Can you compile and try a CVS tarball?
Logged

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
update: ok here
« Reply #25 on: May 16, 2006, 03:01:39 PM »

Hi all,

Since compiling the 4 May CVS, I have not seen the memory leak. In the beginning, it crashed a couple of times after running ~24 hours, but I now have an uptime of six days:

Code: [Select]
$ cas
aMule CVS Thu May  4 07:02:02 CEST 2006 has been running for 6 D 00 h
amule-user is connnnected to xxxxxxxxxxx [XXXXXXXXXXXXX] with HighID | Kad: ok
Total Download: 658.58 Gb, Upload: 2.12 Tb
Session Download: 1.41 Gb, Upload: 38.67 Gb
Download: 0.0 kB/s, Upload: 79.9 kB/s
Sharing: 1383 file(s), Clients on queue: 4997
It appears the problem has been fixed.

Thanks everyone. aMule is awesome!
Logged

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
RE: update: ok here
« Reply #26 on: June 06, 2006, 05:47:23 PM »

Alas, I encountered another memory leak today, running the 2.1.2 code, with EC enabled.

Code: [Select]
Tue Jun  6 17:25:02 CEST 2006
aMule 2.1.2 has been running for 1 D 00 h
amule-user is connnnected to XXXXXXXXXXXX [xxxxxxxxxxxxxx] with HighID | Kad: ok
Total Download: 668.75 Gb, Upload: 2.22 Tb
Session Download: 2.10 Gb, Upload: 6.76 Gb
Download: 14.6 kB/s, Upload: 69.8 kB/s
Sharing: 1417 file(s), Clients on queue: 5000

At Tue Jun  6 17:25:02 CEST 2006:

Code: [Select]
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
xxxxx    32372 19.1 11.0 238288 114760 ?       Sl   Jun05 286:00 /usr/local/bin/amule

Five minutes later:
Code: [Select]
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
xxxxx    32372 19.3 70.9 1094492 734064 ?      Rl   Jun05 289:37 /usr/local/bin/amule

top indicated 773M resident memory, 1240M shared before I killed it.

Please don't shoot the messenger :(
Logged

walkin

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 20
memory usage
« Reply #27 on: June 07, 2006, 08:57:27 PM »

Ezeltje,
you said something about 2.0.3. How you comment this ?

This is aMule 2.0.3 using wxGTK2 v2.6.1 (Unicoded) based on eMule.
Running on Linux 2.6.12-10-386 i686

top - 20:30:12 up 11 days, 2 min,  2 users,  load average: 0.09, 0.19, 0.17
Tasks:  89 total,   1 running,  88 sleeping,   0 stopped,   0 zombie
Cpu(s):  4.3% us,  1.0% sy,  0.0% ni, 94.4% id,  0.0% wa,  0.0% hi,  0.3% si
Mem:    776552k total,   767108k used,     9444k free,    11460k buffers
Swap:   499928k total,   418684k used,    81244k free,   149468k cached

  PID     USER      PR  NI   VIRT    RES   SHR   S   %CPU   %MEM    TIME+     COMMAND
28310   xxxxxx    16    0    838m    441m  11m   S    3.3          58.2     334:50.32    amule
27984   root        15    0    123m      35m 7860   S    1.3            4.7     195:57.20    Xorg
28146   xxxxxx    16    0    104m      37m  13m   S    0.3            4.9         5:25.08    nautilus

Keep on 8o
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: memory usage
« Reply #28 on: June 09, 2006, 06:02:41 AM »

walkin: There's a huge memleak in wx < 2.6.2 and I'm not sure if the workaround in amule was added before or after 2.0.3. Try upgrading wx & amule.
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

Ezeltje

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 130
    • Home page
Re: memory usage
« Reply #29 on: August 04, 2006, 09:22:15 PM »

The mem leak snuck up on me again a few days ago (I am running the 20060724 CVS), so I wrote a little script to prevent amule from choking my system when the memleak occurs:

Code: [Select]
#!/bin/bash
#
amule_max_mem="500000"
sleep_interval="60"

while :
        do
        amule_virtual_mem=`ps u -C amule | tail -1 | awk '{print $5}'`
        if [ $amule_virtual_mem -gt $amule_max_mem ]; then
                killall amule
        fi
        sleep $sleep_interval
        done

This script checks once a minute how much virtual memory amule is using and kills if it starts using more than 500MB (on my system, it tends to use around 280MB under normal circumstances).

If anyone else is encountering the mem leak, I hope they will find this script useful.
« Last Edit: August 04, 2006, 09:23:28 PM by Ezeltje »
Logged
Pages: 1 [2] 3 4