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

Amount of free ram slowly decreases

Discussion in 'Tomato Firmware' started by InsaneNutter, Aug 30, 2008.

  1. InsaneNutter

    InsaneNutter Addicted to LI Member

    I’m currently running Tomato 1.21 on a WRT54G (was previously using 1.15), I have noticed the longer the router has been running the less free ram it has.

    I’m wondering if this is normal?

    2 days uptime = 4.8mb free ram
    [​IMG]

    Slowly decreases over the weeks until

    125 days uptime = 1.3mb free ram
    [​IMG]

    150 days uptime = 1.0mb free ram
    [​IMG]

    The router crashed sometime after that, most likely because it didn’t have enough free ram I’m guessing.

    Just thought I would post here and see what people thought.
     
  2. mstombs

    mstombs Network Guru Member

    Are you counting "cache memory as free"? Linux memory reporting needs careful interpretation - if it has unused memory it is fine to use it as cache as long as it can be given up if needed. Try looking at the the output from "top" and see if any particular process is increasing its memory usage - source of a memory leak would be useful to the tomato devs.
     
  3. pharma

    pharma Network Guru Member

    I could be wrong, but I believe 1.21 was officially released on 07-26-2008. Are you sure you were using 1.21 before this date?

    Are you also using the Official version or one of the Mods? I've been using the 1.21 official version since it came out and have no problems with my memory. It's currently reading:

    Time ...................... Sun, 31 Aug 2008 10:32:53 -0400
    Uptime .................. 25 days, 18:00:58
    CPU Load ............... (1 / 5 / 15 mins)0.00 / 0.00 / 0.00
    Total / Free Memory. 14.19 MB / 7,284.00 KB (50.14%)

    Since you upgraded from 1.15, you might try re-flashing 1.21 again and manually entering your router settings and parameters.

    Pharma
     
  4. InsaneNutter

    InsaneNutter Addicted to LI Member

    The older screenshots of the higher uptime were with version 1.15, I upgraded to 1.21 a few days ago. I’m using the official version downloaded from http://www.polarcloud.com/tomato

    I was looking at the routers web gui over the months and noticed the free ram was going down, here is a screenshot of the results for the top command:

    [​IMG]


    4mb of ram is cached at the moment. Would you say the ram usage for everything looks normal? Since posting here the other day the free ram listed in the web ui has gone down to 4,156.00 KB (28.61%)

    Also something else I thought I would mention, I’m using the script below to backup the bandwidth logs every 12hours to a remote ftp, maybe its dumping the logs in the ram and leaving them there? It might explain how the free ram slowly goes down if so. From looking at the script I’m not exactly sure how it works:

     
  5. bripab007

    bripab007 Network Guru Member

    I agree...I don't recall v. 1.19 doing this. After a reboot, I typically have a little over 8MB free, and with Victek's 1.20.0008, it slowly decreases (I'm at ~5.75MB right now after less than two weeks).

    With 1.19, it leveled out at ~7.25MB free and stayed there for months.
     
  6. InsaneNutter

    InsaneNutter Addicted to LI Member

    Im now at 1.1MB after 10 days :S

    [​IMG]

    [​IMG]

    Not sure whats going on...
     
  7. Mastec

    Mastec Network Guru Member

    On my Buffalo I have seen the free mem drop below 3K. Then later in the day it's back up to 7K or 8K by itself.
     
  8. way2quik

    way2quik Addicted to LI Member

    The most free RAM I had was 5~MB after a reset.
    Right now it's currently sitting at 3.4~MB for the past week.
    How some have 7MB free beats me. :erm:
     
  9. mstombs

    mstombs Network Guru Member

    You need an old router to have lots of ram ...

    Code:
    Time	Tue, 16 Sep 2008 21:20:38 +0100
    Uptime	65 days, 01:05:41
    CPU Load (1 / 5 / 15 mins)	0.23 / 0.06 / 0.02
    Total / Free Memory	30.02 MB / 20.33 MB (67.74%)
    
    Mem: 16168K used, 14568K free, 0K shrd, 1320K buff, 5940K cached
    Load average: 0.02 0.03 0.01  (Status: S=sleeping R=running, W=waiting)
      PID USER     STATUS   RSS  PPID %CPU %MEM COMMAND
    19745 root     R        372 19743  1.1  1.2 top
    19742 root     S        644  2502  0.5  2.0 dropbear
    15360 nobody   S       1028     1  0.0  3.3 dnsmasq
        1 root     S        508     0  0.0  1.6 init
    15281 root     S        480     1  0.0  1.5 nas
    15436 root     S        460     1  0.0  1.4 upnp
    19743 root     S        440 19742  0.0  1.4 sh
     2502 root     S        404     1  0.0  1.3 dropbear
    15290 root     S        400     1  0.0  1.2 httpd
    15298 root     S        368     1  0.0  1.1 crond
    15538 root     S        348     1  0.0  1.1 udhcpc
    15289 root     S        340     1  0.0  1.1 httpd
    15296 root     S        336     1  0.0  1.0 rstats
    15277 root     S        332     1  0.0  1.0 syslogd
    15280 root     S        312     1  0.0  1.0 klogd
     2036 root     S        292     1  0.0  0.9 telnetd
       29 root     S        264     1  0.0  0.8 buttons
        3 root     SWN        0     1  0.0  0.0 ksoftirqd_CPU0
        7 root     SW         0     1  0.0  0.0 mtdblockd
        5 root     SW         0     1  0.0  0.0 bdflush
        2 root     SW         0     1  0.0  0.0 keventd
        4 root     SW         0     1  0.0  0.0 kswapd
       34 root     SWN        0     1  0.0  0.0 jffs2_gcd_mtd3
        6 root     SW         0     1  0.0  0.0 kupdated
     
  10. cubytus

    cubytus Addicted to LI Member

    I do have the same kind of issue. 3.14% after 13 minutes, starting from 7%.
     
  11. VeNT

    VeNT Addicted to LI Member

    wonder if theres any way to solder more on..................
     
  12. antiplex

    antiplex Addicted to LI Member

    as written in some other thread about the same issue,
    what really matters is the number at 'used' if this number stays more or less constant, everything should be fine! the rest non-free memory is used for caching and freed if necessary.

    so there is probably no need for more ram...
     

Share This Page