1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

High CPU load

Discussion in 'Tomato Firmware' started by Partizan, Feb 7, 2009.

  1. Partizan

    Partizan Network Guru Member

    Hi!

    Lately my lan speeds are very low, so I checked the router and look at that:

    [​IMG]

    Any ideas what could be causing such high CPU load on my WRT54GL? I checked
    the connections and the number was around 600. I am using Tomato 1.23.
     
  2. phuque99

    phuque99 LI Guru Member

    Try to telnet in and run "top".
     
  3. aeonone

    aeonone Network Guru Member

    Post unrelated to OP's situation

    I'm having the same problem. (Didn't feel it necessary to open a new thread)

    Using: Tomato Version 1.23.8515 .5 RAF ND Thor MOD

    When there is no significant load on the network (no torrenting or games or network file sharing), I'm still experiencing high loads:

    [​IMG]

    Result of "top":
    [​IMG]

    My log file consists of a repeat of the following 3 lines:
    Sep 24 10:54:11 unknown daemon.info dnsmasq-dhcp[4555]: DHCPREQUEST(br0) 192.168.0.31 00:xx:xx:xx:74:81
    Sep 24 10:54:11 unknown daemon.info dnsmasq-dhcp[4555]: DHCPACK(br0) 192.168.0.31 00:xx:xx:xx:74:81 Wii
    Sep 24 10:54:11 unknown daemon.warn dnsmasq[4555]: not giving name BioStar to the DHCP lease of 192.168.0.30 because the name exists in /etc/hosts.dnsmasq with address
    192.168.0.22

    Any ideas what's causing all the fuss? Sometimes navigating the router admin page becomes slow.

    EDIT: Added tomato version.
     
  4. fyellin

    fyellin LI Guru Member

    Well, /tmp/script_init.sh contains whatever was in your "Run an Initialization" script. It seems suspicious that it appears so many times.

    What is the contents of this file?
     
  5. aeonone

    aeonone Network Guru Member

    Ok I've checked it, and under "Init":

    #!/bin/sh
    I=`nvram get wl0_ifname`
    while sleep 1; do
    if [ "`wl assoclist`" != "" ]; then
    XFER=`ifconfig $I|grep bytes`
    if [ "$XFER" != "$PXFER" ]; then
    LED="am on wh on"
    PXFER=$XFER
    else
    LED="am on wh of"
    fi
    else
    LED="am of wh of"
    fi
    if [ "$LED" != "$PLED" ]; then
    led $LED
    PLED=$LED
    fi
    done

    I don't really know what this does. I have always just inputted what my settings were in the past "just in case".

    Silly, I know.
     
  6. Planiwa

    Planiwa LI Guru Member

    I would delete that toxic script and then reboot the router.
     
  7. aeonone

    aeonone Network Guru Member

    Yes that script was the cause of my pain. I've gotten rid of it. Everything is snappier. Thanks to everyone for their help! :)
     
  8. fyellin

    fyellin LI Guru Member

    The script itself looks harmless enough. I wonder if the #!/bin/sh at the top caused some sort of confusion. Who knows.
     
  9. aeonone

    aeonone Network Guru Member

    You know, you are right.

    I did do a cat /tmp/script_init.sh and it did have two entries for the #!/bin/sh

    I figured out what the script is for. It's supposed to be a Wireless LED script. Anyone who connects via wireless will cause the front LED to illuminate.
     

Share This Page