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

Reboot if memory is low

Discussion in 'Tomato Firmware' started by kendawg, Nov 20, 2006.

  1. kendawg

    kendawg LI Guru Member

    Hi, I've been running tomato for about a month. I was originally using 0.7 and had no memory issues. I then upgraded to 0.9 and I haven't rebooted the router for 13 days.

    I have noticed that the Free Memory has gone from a few MB to 988.00 KB. I'm not sure why, but it might be due to my many QOS rules. How low can the free memory be before I notice major slowdown?

    Also, can anyone think of a script I can use to reboot the router once the free memory is below a certain point? Thanks for any help. :biggrin:
     
  2. mrgamer

    mrgamer LI Guru Member

    don't think there will be any "major slowdown", i don't have it... and anyway the free memory stabilizes himself around 1MB-800k
     
  3. lwf-

    lwf- Network Guru Member

    I got this with 0.09.0867:
    Uptime 8 days, 02:45:50
    Total / Free Memory 30.00 MB / 19.18 MB (63.94%)

    Works fine.
     
  4. turbo53

    turbo53 Network Guru Member

    30 Meg! You must have a different model. Here is the data from my WRT54GL after 20 days.

    Name WRT54GL
    Time Tue, 21 Nov 2006 20:38:01 -0500
    Uptime 20 days, 01:27:28
    CPU Load (1 / 5 / 15 mins) 0.00 / 0.00 / 0.00
    Total / Free Memory 14.18 MB / 1,180.00 KB (8.12%)

    But at one point it was down to 700K. The memory seems to stabilize around this point.
     
  5. wycf

    wycf Network Guru Member

    I'm still using 0.08. :)

    Name Linksys
    Time Tue, 21 Nov 2006 20:33:07 -0800
    Uptime 20 days, 21:58:13
    CPU Load (1 / 5 / 15 mins) 0.00 / 0.00 / 0.00
    Total / Free Memory 14.18 MB / 828.00 KB (5.70%)

    828KB Free. Going to reboot and will report back.
     
  6. wycf

    wycf Network Guru Member

    WOW, REBOOT releases a whole lot memory....

    Time Tue, 21 Nov 2006 20:37:37 -0800
    Uptime 0 days, 00:00:40
    CPU Load (1 / 5 / 15 mins) 0.36 / 0.09 / 0.03
    Total / Free Memory 14.18 MB / 5,032.00 KB (34.65%)
     
  7. robsonn

    robsonn Network Guru Member

    I laughed a lot reading this short thread.
    I suggest first to read some faqs/articles to find out how linux works and then you will know that this is normal behavior.
    System tries to allocate nearly all resources that he can and then if some application/deamon needs he free it.
    And critical memory point is 0 kB ;) If it drop down to 0 then there is something wrong (or you use to much connections in 16MB version) or it's due to the memory leak.
    WRT54GS v1-3 has 32 MB RAM and Tomato is compiled for 16MB systems so there is a lot free memory.
    And last thing - amount of free memory heavly depens on what setting you use ex. a lot of L7 rules, ssh deamon, size of conntrack table, additonal partition like jffs2 and so on. So this is individual case.

    Uptime 19 days, 18:24:57
    Mem: 12496K used, 2028K free, 0K shrd, 1168K buff, 4244K cached
     

Share This Page