bugmldonkey, a multi-networks file-sharing client - Bugs: bug #1347, still high CPU usage when using...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #1347: still high CPU usage when using poll in 2002 10 06 (beta8+5) CVS??

Submitted by:  None
Submitted on:  Sun 06 Oct 2002 11:39:06 AM UTC  
 
Category: CoreSeverity: 3 - Normal
Item Group: NoneStatus: Remind
Assigned to: [b8]_bavard <b8_bavard>Open/Closed: Closed
Release: 2002 10 06 (beta8+5)Release: 1.99 beta
Operating System: LinuxBinaries Origin: CVS / Self compiled
CPU type: None

Mon 03 Mar 2003 10:45:48 PM UTC, comment #4:

is this bug still happening ?

mldonkey admin <mldonkey>
Project Administrator
Sat 12 Oct 2002 01:16:28 PM UTC, comment #3:

mldonkey is just unusable on my system, cause it takes 100%! of my cpu (Celeron 433), even if downloading only a few files! Here's a short ouput of strace:
recvfrom(35, 0xbfffbcdc, 16384, 0, 0xbfffbc6c, 0xbfffbc44) = -1 EAGAIN (Resource temporarily unavailable)
accept(36, 0xbffffc84, [112]) = -1 EAGAIN (Resource temporarily unavailable)
accept(53, 0xbffffc84, [112]) = -1 EAGAIN (Resource temporarily unavailable)
read(305, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(277, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(210, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(190, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(281, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(280, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(260, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(259, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(238, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(201, 0xbfffbcac, 456) = -1 EAGAIN (Resource temporarily unavailable)
read(237, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(226, 0xbfffbcac, 400) = -1 EAGAIN (Resource temporarily unavailable)
read(163, 0xbfffbcac, 400) = -1 EAGAIN (Resource temporarily unavailable)
read(152, 0xbfffbcac, 734) = -1 EAGAIN (Resource temporarily unavailable)
read(130, 0xbfffbcac, 400) = -1 EAGAIN (Resource temporarily unavailable)
read(84, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(99, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(219, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(137, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)
read(196, 0xbfffbcac, 500) = -1 EAGAIN (Resource temporarily unavailable)

(there is MUCH more, but i hope the "EAGAIN"-thing helps you?)

15:17:14 up 36 days, 22:34, 2 users, load average: 1.14, 1.11, 0.76
96 processes: 90 sleeping, 5 running, 1 zombie, 0 stopped
CPU states: 1.0% user, 10.4% system, 23.8% nice, 64.8% idle
Mem: 190948K total, 186512K used, 4436K free, 2516K buffers
Swap: 265064K total, 63976K used, 201088K free, 98680K cached

btw, maybe this helps you, too: my ppp-process is increasing too, when running mldonkey. Normally it needs 0-2%, but when mldonkey is running it gets up to 15%!

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
22767 tausch 20 19 46116 45M 1576 R N 27.7 24.1 5:07 mldonkey
23344 root 10 0 472 472 404 R 4.3 0.2 0:21 pppoe

Hope you find the bug!
Roman

Anonymous
Sun 06 Oct 2002 04:42:57 PM UTC, comment #2:

Maybe the POLLERR/POLLHUP should be used to set the socket
as readable to allow error detection... I added this. Hope it fix the bug.

mldonkey admin <mldonkey>
Project Administrator
Sun 06 Oct 2002 04:33:38 PM UTC, comment #1:

Can you use "strace -p <pid>" to check the difference between poll and select. With poll, I had lots of EAGAIN, not with select. Is it the same ?

mldonkey admin <mldonkey>
Project Administrator
Sun 06 Oct 2002 11:39:06 AM UTC, original submission:

When I'm running with "use_poll true", mldonkey is using almost 100% of my CPU with rare exceptions of 50% for several seconds. When I execute command "use_poll false", mldonkey begins to use only 1-2%. So is high CPU usage bug in poll really fixed in Beta8+5??

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 03 Mar 2003 10:45:48 PM UTCmldonkeyOpen/ClosedOpen=>(Error - Not Found)
Sun 06 Oct 2002 04:32:20 PM UTCmldonkeyStatusNone=>(Error - Not Found)
  Assigned toNone=>NA

Back to the top


Powered by Savane 3.1-cleanup1