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

Ok to use NVRAM to log bandwidh statistics?

Discussion in 'Tomato Firmware' started by fefrie, Oct 22, 2013.

  1. fefrie

    fefrie Serious Server Member

    I'm relatively new to tomato and want to be able to save bandwidth usage statistics.

    When I was with DDWRT, I'm assuming that it's saved it's statistics in NVRAM. Which meant that on simple power cycles, info was not lost, except on 30/30/30 resets.

    I'd like the same for my tomato firmware on my linksys e900.

    It's set at ram for now, which is definitely temporary.

    Is it fine to just set it at NVRAM and let it be? Is there any issue with 'wearing out the memory' that I heard could be the case with jfss of cifs?

    I've set the save frequency at once every 24 hours. That should be fine I think.
  2. BikeHelmet

    BikeHelmet Networkin' Nut Member

    Not sure how quickly the NAND wears out, but I'd like to mention another issue. I believe your E900 has 64KB of NVRAM? I'd like to point out that there might not be enough room for the statistics on a model with only 32KB of NVRAM (like my Asus RT-N16) - it's running almost full as is, so CIFS is the only way.

    Bandwidth stats take up about 8KB of space if you factor in backups and stuff. IPStats take up almost 300KB.

    rstats - 1.24 KB (1,278 bytes)
    cstats - 56.1 KB (57,476 bytes)

    The backup feature saves up to 5 extra copies. Obviously per-ip bandwidth monitoring is a no go for NVRAM, nomatter what - but network-wide bandwidth stats should be acceptable, assuming it doesn't kill your router's NAND.

  3. Malitiacurt

    Malitiacurt Networkin' Nut Member

    JFFS is the same as saving to nvram, which are both your flash. Nvram is just a special allocated area on it.
  4. Marcel Tunks

    Marcel Tunks Networkin' Nut Member

    Saving once daily, the NAND will likely outlast the capacitors (and the unit will fail) or you will have moved on to newer and more capable hardware.
  5. fefrie

    fefrie Serious Server Member

    I only have the monthly usage statistics saved. It's so that I know if I go over my 300gb cap.

    Everything else I don't really need to keep long term.

    So it looks like I have enough memory to do so.

Share This Page