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

How bad is it to save history to nvram?

Discussion in 'Tomato Firmware' started by pokute, Nov 23, 2008.

  1. pokute

    pokute Network Guru Member

    Hi guys, I just came from dd wrt and I'm loving tomato. I'm just a little confused about saving history. How bad is it to save history to nvram? I ask because I'd like to reboot every sunday. Saving to another computer isn't an option (no 24/7 system).

    -By the way is there a way to schedule a reboot once every 15 of the month when my billing cycle restarts? I tried reading up on cron scripts but I don't quite get it.

  2. mstombs

    mstombs Network Guru Member

    Flash memory has a typical life of 500,000 write cycles. The nvram is a specific location and all gets rewritten every "commit". A jffs section is better managed to ensure even wear.

    I wouldn't recommend automatic writes - if something goes wrong and you end up writing every second - 500,000 seconds = 6 days!
  3. fyellin

    fyellin LI Guru Member

    Answering your questions out of order.

    The Tomato FAQ gives an example of using cron to reboot the router twice a month. Copy the code there but change 1,15 to 15. It also shows how to reboot every Sunday, to answer your second question.

    I'm still not sure I understand what you'd want to reboot your machine at the start of your billing cycle. You can configure Bandwidth > Monthly so that the start of the month is the 15th. In this way, you can determine easily how much you've used since the start of your billing cycle.

    Tomato is quite stable and doesn't need to be rebooted. Many of us only reboot when it's time to upgrade.

    nvram has a limited number of times that it can be modified. Changing it a couple of times a day shouldn't be an issue. Using it like slow non-volatile ram is an issue.
  4. TexasFlood

    TexasFlood Network Guru Member

    The below line will schedule a reboot every Sunday at midnight:
    cru a RebootEverySunday "0 0 * * 0 reboot"

    The below line will schedule a reboot on the 15th of each month at midnight:
    cru a Reboot15thOfMonth "0 0 15 * * reboot"
  5. pokute

    pokute Network Guru Member

    thanks for the help guys
  6. LadFromWales85

    LadFromWales85 Network Guru Member

    # uptime
    19:26:22 up 172 days, 22:16, load average: 0.00, 0.00, 0.00

    I've not really kept up with the times!

Share This Page