What's new

How to save NVRAM space

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

FTC

Senior Member
Hi,

I have currently almost used all available space in the NVRAM of my rt-ac3200, and will appreciate any tricks available to save space.

I can think of some. For instance some weeks ago I played with storing the traffic history data in NVRAM, and even if quickly configured it back to disk, I think there are now some NVRAM variables still to clear up.. any one knows which ones ?

Other than that, any more ideas ?

Thanks in advance
 
The guys in DD-WRT run the following:

Code:
for line in `nvram show | grep =$ `; do var=${line%*=}; nvram unset $var; done

nvram commit

This will remove nvram variables that contain no value (unused), might help.
 
Thanks, this is exactly what I needed on my ac-3200. I was showing full nvram before I ran this command and it cleared down to 54914 / 65536 bytes.
 
The guys in DD-WRT run the following:

Code:
for line in `nvram show | grep =$ `; do var=${line%*=}; nvram unset $var; done

nvram commit

This will remove nvram variables that contain no value (unused), might help.


Thanks. This may prove very useful, but is it safe in Merlin firmware ? having a variable unset is not exactly the same as defined without a value...
 
Thanks. This may prove very useful, but is it safe in Merlin firmware ? having a variable unset is not exactly the same as defined without a value...
When you reboot the router all those variables will be recreated with their default values. So you're not going to save any space unless you've been creating your own custom variables.
 
Thanks. This may prove very useful, but is it safe in Merlin firmware ? having a variable unset is not exactly the same as defined without a value...
@jpclarke This is true statement....I'd keep an eye on things for anything strange or functions that no longer work.

The AC3200 is disadvantaged when it comes to nvram. ASUS kept the nvram size at 64K when they added the third radio, which takes up at least an additional 6K of nvram space for its support.
 
Hi, just for the record, I finally tested this unsetting of empty variables 2 days ago, and so far, it looks like working fine ... initially I gained close to 10KB nvram space, but up on the first router reboot many of these variables were recreated by the system and I ended up gaining only close to 3KB of space. No ill effects seen yet.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top