CPU 100% usage bug over time?

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3, 4, 5  Next
Author Message
halogen8
DD-WRT Novice


Joined: 16 Jun 2006
Posts: 32

PostPosted: Sat Feb 17, 2007 1:31    Post subject: CPU 100% usage bug over time? Reply with quote
httpd seems to be using 100% of the cpu after a while (a few days to a few weeks).

Code:

~ # uptime
 17:04:52 up 21 days,  3:05, load average: 1.39, 1.50, 1.52


I'm running v23 SP2 standard on a WRT54G v4.

I have to reboot the router to correct this. But it eventually happens again. Has anyone else had this problem, or know of a fix?
Sponsor
BrainSlayer
Site Admin


Joined: 06 Jun 2006
Posts: 7492
Location: Dresden, Germany

PostPosted: Sat Feb 17, 2007 3:36    Post subject: Reply with quote
such high load may happen under the condition that you have a lot of bandwith load on your router. a top output could be helpful here
_________________
"So you tried to use the computer and it started smoking? Sounds like a Mac to me.." - Louis Rossmann https://www.youtube.com/watch?v=eL_5YDRWqGE&t=60s
olmari
DD-WRT Guru


Joined: 24 Oct 2006
Posts: 1447
Location: Finland

PostPosted: Sat Feb 17, 2007 4:16    Post subject: Reply with quote
I'd like to ask again that what is the load average really? For example, http://www.teamquest.com/resources/gunther/display/5/index.htm suggested that 1.00 isn't 100% CPU usage neccesarily, also definates that
Quote:
The "load" is not the utilization but the total queue length.
.

So one big question remains, does your router feel or definately do perform slower when having that high figures?

I just wanted to take part to these propably forever) puzzling load average figures, that no one seems to really know what they ultimately are...
halogen8
DD-WRT Novice


Joined: 16 Jun 2006
Posts: 32

PostPosted: Sat Feb 17, 2007 5:30    Post subject: Reply with quote
BrainSlayer wrote:
such high load may happen under the condition that you have a lot of bandwith load on your router. a top output could be helpful here


I wish I had thought to take a snapshot of top before I reset the router. I will definitely do that next time it happens.

I understand the high load can occur under heavy use, but at the time, nobody was even using it. And if I leave it, the load will stay that way forever until it is rebooted.

I knew I was having the problem today, because the webui stopped working. I had to ssh in to check the load and reboot it.

I will post a copy of top the next time the problem occurs. Is there anything else I can post to help troubleshoot?
halogen8
DD-WRT Novice


Joined: 16 Jun 2006
Posts: 32

PostPosted: Thu Mar 29, 2007 4:47    Post subject: Reply with quote
BrainSlayer wrote:
such high load may happen under the condition that you have a lot of bandwith load on your router. a top output could be helpful here


I am having the problem again (its not bandwidth related, nobody is using it right now), and this time I was able to get a top output:

Code:
Mem: 11252K used, 2924K free, 0K shrd, 1416K buff, 4272K cached
Load average: 1.20 1.19 1.15  (Status: S=sleeping R=running, W=waiting)
  PID USER     STATUS   RSS  PPID %CPU %MEM COMMAND
  101 root     R        972     1 98.8  6.8 httpd
30116 root     R        444 30114  0.5  3.1 top
30113 root     S        652   175  0.3  4.5 dropbear
   98 root     S        556     1  0.0  3.9 httpd
30114 root     S        524 30113  0.0  3.6 sh
  175 root     S        468     1  0.0  3.2 dropbear
  116 root     S        380     1  0.0  2.6 dnsmasq
    1 root     S        376     0  0.0  2.6 init
   95 root     S        364     1  0.0  2.5 telnetd
  341 root     S        352     1  0.0  2.4 process_monitor
  344 root     S        308     1  0.0  2.1 inadyn
   64 root     S        304     1  0.0  2.1 resetbutton
  385 root     S        276     1  0.0  1.9 cron
  165 root     S        272   164  0.0  1.9 bcrelay
  424 root     S        268     1  0.0  1.8 udhcpc
  164 root     S        268     1  0.0  1.8 pptpd
   14 root     S        256     1  0.0  1.8 watchdog
    3 root     SWN        0     1  0.0  0.0 ksoftirqd_CPU0
   11 root     SW         0     1  0.0  0.0 mtdblockd
    2 root     SW         0     1  0.0  0.0 keventd
    4 root     SW         0     1  0.0  0.0 kswapd


as well as an uptime output:
Code:
~ # uptime
 20:43:19 up 21 days, 22:07, load average: 1.16, 1.17, 1.14


Also, while I can SSH into the router, I can NOT access it via https.

I will NOT reboot it, in case you want me to capture more data from it while it is in this state. But I'm sure that if I did reboot it, I would regain https access to the router.

Any ideas on what might be causing this?
swinn
DD-WRT User


Joined: 07 Jun 2006
Posts: 336
Location: TN, USA

PostPosted: Thu Mar 29, 2007 6:12    Post subject: Reply with quote
halogen8 wrote:
Also, while I can SSH into the router, I can NOT access it via https.

I will NOT reboot it, in case you want me to capture more data from it while it is in this state. But I'm sure that if I did reboot it, I would regain https access to the router.

Any ideas on what might be causing this?

This is usually caused by having both Remote Access and HTTPS enabled. Disable one or the other and it should be ok.

_________________
WRT54G v2.0 (Bridge)
WRT54GL v1.0 (Bridge) (x3)
WRT54GS v3.0 (Routing)
WL520gU (Routing)
Running DD-WRT v24 SP2 - http://www.dd-wrt.com
Schnulch
DD-WRT Novice


Joined: 14 Oct 2006
Posts: 13
Location: South - West Germany

PostPosted: Thu Mar 29, 2007 6:29    Post subject: Reply with quote
Actually, my router is having this issue randomly too.

WRT54GL (newest version), DD-WRT SP2 generic standard.
To me it seems httpd "hangs" or "crashes" somehow, problem occured when using https to connect to Webinterface. For some days i connect only with http, didn't have that problem since. Perhaps you should try this, too. If the problem is solved then, perhaps BS (or any other developer) should take a closer look at this!?!
I connect to a distant site through internet, so https would be highly preferable, but if I change some configuration at the distant site (using rflow and macupd, no dns support, so i have to enter the new ip of my homegateway every morning by hand), the httpd stops responding sometimes (may be every 3rd access), so i have to ssh in and "reboot", then again it works.

Some more info:
This WRT is the Gateway for a WLAN with about 25 Users, it is connected wirelessly to a "Fritzbox" at a distant location, where DSL (broadband internet) is available, I connect to it through internet, having port forwarding on the fritzbox activated to access all WRT's and WHR's behind this one WRT, which has port forwardings to the "machines" behind it. (every one of course on a different port Wink
Usually it has a workload of about 40 to 45 %, never seen more than 60% on it, except when httpd "crashes", if thats what its doing (i supect it to).

May be the "gods" of firmware devel can help us here.

Greetings
Schnulch

_________________
Ther are 10 kinds of people in the world -
those who understand binary, and those who don't ...
Schnulch
DD-WRT Novice


Joined: 14 Oct 2006
Posts: 13
Location: South - West Germany

PostPosted: Thu Mar 29, 2007 6:38    Post subject: Reply with quote
well, deactivating one of this two (ssh remote access or https) is not such a good idea, if https is not working, i can't restart the machine with ssh-reboot. That would mean, I have to drive about half an hour with my car to the distant locatíon and reboot it. - not good! ;-)

As written above, there are 25 users on that net, and one or the other always are having some "situations" with applications or games not running too well, if running at all. The network is set up for a few weeks now, I think it would take some more weeks to configure everything to fit their desires as good as possible, so i have to change some config stuff from time to time, and excuse me being lazy, but the webif looks much more comfortable to me than the command line! As for some things, i use the command line, because there is no simple item to click in the webif, so i need them both, and because accessing through internet, ssh and https should be the way to go, if I'm right!?!

Grettings
Schnulch

_________________
Ther are 10 kinds of people in the world -
those who understand binary, and those who don't ...
swinn
DD-WRT User


Joined: 07 Jun 2006
Posts: 336
Location: TN, USA

PostPosted: Thu Mar 29, 2007 16:04    Post subject: Reply with quote
Schnulch wrote:
well, deactivating one of this two (ssh remote access or https) is not such a good idea, if https is not working, i can't restart the machine with ssh-reboot. That would mean, I have to drive about half an hour with my car to the distant locatíon and reboot it. - not good! Wink

This has been a common problem for years. It can usually be cured by disabling web interface remote access or disabling https. The issue occurs when the web interface remote access is set to use https. I don't think ssh has anything to do with it.

It must be a really pesky bug because it has been around for a long time and has been reported countless times.

_________________
WRT54G v2.0 (Bridge)
WRT54GL v1.0 (Bridge) (x3)
WRT54GS v3.0 (Routing)
WL520gU (Routing)
Running DD-WRT v24 SP2 - http://www.dd-wrt.com
halogen8
DD-WRT Novice


Joined: 16 Jun 2006
Posts: 32

PostPosted: Fri Apr 06, 2007 17:23    Post subject: Reply with quote
BrainSlayer, any comments on this bug?

I agree that it has been around for a while. At first I thought it was just me, but now it seems that it is a common problem with others as well.

Would be great to get this one solved.
JohnnyPrimus
DD-WRT User


Joined: 26 Oct 2006
Posts: 369

PostPosted: Fri Apr 06, 2007 17:27    Post subject: Reply with quote
assuming remote access + https enabled causes this, is it possible one of them is improperly reporting idle time? i'm not familiar with idle reporting, so a first glance on my part wasnt really helpful.....

maybe its time to move this over to dev forums and/or bug tracker (if it hasnt already been reported)
halogen8
DD-WRT Novice


Joined: 16 Jun 2006
Posts: 32

PostPosted: Fri Apr 06, 2007 17:29    Post subject: Reply with quote
JohnnyPrimus wrote:
maybe its time to move this over to dev forums and/or bug tracker (if it hasnt already been reported)


Yes, good idea, I will repost this in the dev forums.
salty72
DD-WRT Novice


Joined: 03 Apr 2007
Posts: 2

PostPosted: Wed Apr 11, 2007 13:24    Post subject: Bug Tracking Number Reply with quote
Hi,
I'm having the same issue and wanted to keep track of the bug and suggested solutions.
Rather than creating duplicate issues, has there been a bug report in the dev forums and if so, does anyone have the thread number?
Thanks
salty72
DD-WRT Novice


Joined: 03 Apr 2007
Posts: 2

PostPosted: Wed Apr 11, 2007 13:26    Post subject: Found it Reply with quote
Nevermind.
Found it under General Questions forum.
FYI thread #13628
matthias
DD-WRT Novice


Joined: 19 Jun 2006
Posts: 24

PostPosted: Fri May 25, 2007 16:09    Post subject: Reply with quote
Hello,

any news on this topic?
I like to use https for remote control - but it´s not very good to reboot the rooter every few days Laughing

So - any solution how to handle this?

regards!
Goto page 1, 2, 3, 4, 5  Next Display posts from previous:    Page 1 of 5
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum