Performance - Asus RT-N16 Manual

Hide thumbs Also See for RT-N16:
Table of Contents

Advertisement

#!/bin/bash
rm /opt/tmp/nvramshow
nvram show >> /opt/tmp/nvramshow
i=0
while read -r line; do
val=${line#*=}
var=${line%*=}
if [[ "$val" == "" ]]; then
nvram unset $var
fi
i=`expr $i + 1`
if [[ $i == 50 ]]; then
sleep 2
i=0
fi
done < /opt/tmp/nvramshow
exit 0
Simpler version: Instead of outputting to a file to check if each var is empty, use grep to find empty vars:
1. Check current size and empty var count
root# nvram show
size: 30273 bytes (2495 left)
414
2. Clean up
root# for line in `nvram show
This can be saved as a startup script. Alternatively, to avoid further NVRAM usage, save to JFFS or
USB with a JFFS partition. Save your script to /jffs/etc/config, give it a .startup extension, make it
executable, then DD-WRT will run it after every boot.
3. Check again....
root# nvram show
size: 24307 bytes (8461 left)
0
4. Saved almost 6K
root# echo "$((8461 - 2495))"
5966

Performance

This is without SFE accelerated NAT.
Test Description
WAN - LAN
LAN - WAN
Total Simultaneous
Max. Connections
Firmware Version
Performance
Asus_RT-N16
| grep =$ | wc -l
| grep =$ `; do var=${line%*=}; nvram unset $var; done
| grep =$ | wc -l
Throughput - (Mbps)
141.1
143.3
155.9
200
1.0.0.6
8

Advertisement

Table of Contents
loading

Table of Contents