D-Link G624T, with RT v2.6 firmware, hangs after 12 to 16h.

All about firmwares for routers. Support for RouterTech firmwares is here too.
Post Reply
sbicty
Newbie
Newbie
Posts: 2
Joined: Fri Jun 27, 2008 2:04 pm

D-Link G624T, with RT v2.6 firmware, hangs after 12 to 16h.

Post by sbicty » Mon Aug 04, 2008 11:39 am

Hello All.

1st I'd like to thank the RT team for their gr8 work.
I've recently installed v2.6 firmware on a D-Link G624T router and I was amazed by the functionality expansion and the control power I've gained over my router.

The only problem I’ve encounter is that router starts responding really slow after some hours of continue work (12 to 16) and eventually strops working.
I did an extensive search on RT forum and it looks like a low memory problem. The suggested solutions are to disable USD functionality and alter memory optimization Cron job to run more frequently. Unfortunately I could figure out how to make those changes.
I would appreciate if anyone can help me on how to configure my router to make it more stable.

This is a dump of router settings:
Operating system version
Linux version 2.4.17_mvl21-malta-mips_fp_le (router@Ubuntu) () #1 Wed Jul 23 00:55:06 BST 2008

Firmware version information
BUILD=RouterTech_3.6.0D_20080723_2.60
VERSION=3.6.0D-RouterTech-Adam2
BOARD=AR7WRD
FSSTAMP=20080723005916

Wireless version information
5.7.0.6, 1/4/2005

PSP version information

Linux OS DSL-PSPOhioL version 4.5.0.5 Best and Final on BasePSP Version 5.7.6.12 Jul 23 2008 00:56:23
Avalanche SOC Version: 0x220005 operating in cached, write back, write allocate mode
Cpu Frequency:150 MHZ
System Bus frequency: 125 MHZ


Driver version information
Core Logic version: 3.6.0D
Texas Instruments CPMAC driver version: 1.5
Texas Instruments CPMAC HAL version: CPMAC 01.07.08 Jul 23 2008 00:55:19
ATM Driver version:[7.03.01.03]
DSL HAL version: [7.03.01.03]
DSP Datapump version: [7.03.01.66] Annex A
SAR HAL version: [01.07.2c]
PDSP Firmware version:[0.54]
Chipset ID: [7300/7300A]

Modem Modulation Information
NO_MODE 0x0
ADSL_G.dmt 0x3
ADSL_G.lite 0x4
ADSL_G.dmt.bis 0x8
ADSL_G.dmt.bis_DELT 0x9
ADSL_2plus 0x10
ADSL_2plus_DELT 0x11
ADSL_re-adsl 0x20
ADSL_re-adsl_DELT 0x21
ADSL_ANSI_T1.413 0x2
MULTI_MODE 0x1
ADSL_G.dmt.bis_AnxI 0x0
ADSL_G.dmt.bis_AnxJ 0x0
ADSL_G.dmt.bis_AnxM 0x400
ADSL_2plus_AnxI 0x0
ADSL_2plus_AnxJ 0x0
ADSL_2plus_AnxM 0x2000
G.shdsl 0x0
IDSL 0x0
HDSL 0x0
SDSL 0x0
VDSL 0x0

System environment (/proc/sys/dev/adam2/environment)
memsize 0x01000000
flashsize 0x00400000
modetty0 38400,n,8,1,hw
modetty1 38400,n,8,1,hw
bootserport tty0
cpufrequency 150000000
sysfrequency 125000000
bootloaderVersion 0.22.02
Adam2_Release 0.22.02_b04_Mar 10 2005
ProductID AR7RD
HWRevision Unknown
SerialNumber 00:1C:F0:E2:FF:EF
my_ipaddress 192.168.1.1
prompt Adam2_AR7RD
firstfreeaddress 0x9401d888
req_fullrate_freq 125000000
maca 00:1C:F0:E2:FF:EF
mtd0 0x90094000,0x903f0000
mtd1 0x90010090,0x90094000
mtd2 0x90000000,0x90010000
mtd3 0x903f0000,0x90400000
mtd4 0x90010000,0x903f0000
autoload 1
autoload_timeout 5
StaticBuffer 128
SW_FEATURES 0X8000
vcc_encaps0 0.0
vcc_encaps1 0.0
vcc_encaps2 0.0
vcc_encaps3 0.0
vcc_encaps4 0.0
vcc_encaps5 0.0
vcc_encaps6 0.0
vcc_encaps7 0.0
modulation 0x1
usb_vid 0x0
usb_pid 0x0
usb_man N/A
usb_prod N/A
eoc_vendor_id 444C696E6B000000
eoc_vendor_serialnum 00:1C:F0:E2:FF:EF_00000000000000
eoc_vendor_revision 20070924
invntry_vernum 2007092400000000
mac_ap 00:1C:F0:E2:FF:F0
connection1 0x5f06

memchk.sh 1
checksync.sh 1
cron_la.sh 2
led_conf led.g604t

CPU information
processor : 0
cpu model : MIPS 4KEc V4.8
BogoMIPS : 149.91
wait instruction : no
microsecond timers : yes
extra interrupt vector : yes
hardware watchpoint : yes
VCED exceptions : not available
VCEI exceptions : not available

Memory (RAM) information
total: used: free: shared: buffers: cached:
Mem: 14434304 13615104 819200 0 847872 4775936
Swap: 0 0 0
MemTotal: 14096 kB
MemFree: 800 kB
MemShared: 0 kB
Buffers: 828 kB
Cached: 4664 kB
SwapCached: 0 kB
Active: 4064 kB
Inactive: 3240 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 14096 kB
LowFree: 800 kB
SwapTotal: 0 kB
SwapFree: 0 kB

Flash memory (chip) information
Flash type: AMD; Manufacturer=Unknown!.
Manufacturer_ID=0x00EC; Chip_ID=0x00A2; Chip_Size=0x400000; Erase_Regions=0x0002

Mount points
/dev/mtdblock/0 / squashfs ro 0 0
none /dev devfs rw 0 0
proc /proc proc rw 0 0
ramfs /var ramfs rw 0 0

Filesystems
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev tmpfs
nodev shm
nodev pipefs
nodev ramfs
minix
nodev devfs
squashfs
nodev cifs

MTD
dev: size erasesize name
mtd0: 0035c000 00010000 "mtd0"
mtd1: 00083f70 00010000 "mtd1"
mtd2: 00010000 00002000 "mtd2"
mtd3: 00010000 00010000 "mtd3"
mtd4: 003e0000 00010000 "mtd4"

Kernel modules
tiap 708536 1
tiatm 131832 1
avalanche_usb 63296 1

Interrupts
7: 354200 R4000 timer/counter [MIPS interrupt]
8: 0 unified secondary [hw0 (Avalanche Primary)]
15: 393 serial [hw0 (Avalanche Primary)]
23: 13673 + SAR [hw0 (Avalanche Primary)]
29: 36351 vlynq0 [hw0 (Avalanche Primary)]
32: 1 + USB [hw0 (Avalanche Primary)]
41: 169 + Cpmac Driver [hw0 (Avalanche Primary)]
47: 48 + DSL [hw0 (Avalanche Primary)]
80: 36349 TNETW1130 [hw0 (Low Vlynq)]

Devices
Character devices:
1 mem
2 pty/m%d
3 pty/s%d
4 tts/%d
5 cua/%d
10 misc
108 ppp
128 ptm
136 pts/%d
162 raw

Block devices:
31 mtdblock

Processes
PID USER VSZ STAT COMMAND
1 root 1084 S init
2 root 0 SW [keventd]
3 root 0 SWN [ksoftirqd_CPU0]
4 root 0 SW [kswapd]
5 root 0 SW [bdflush]
6 root 0 SW [kupdated]
7 root 0 SW [cifsoplockd]
8 root 0 SW [mtdblockd]
95 root 1228 S /usr/sbin/thttpd -d /usr/www -u root -p 80 -c /cgi-bi
96 root 2196 S /usr/bin/cm_pc
98 root 3676 S /usr/bin/cm_logic -m /dev/ticfg -c /3tc/config.xml
117 root 640 S /sbin/dproxy -c /3tc/resolv.conf -d
118 root 996 S /usr/sbin/wlan/wpa_authenticator
134 root 1084 S init
253 root 2348 S /usr/sbin/pppd plugin pppoe wbif0 user
287 root 920 S /sbin/msntp -r 2 -t 5 -p 30 -s time-a.nist.gov time-b
288 root 684 S /usr/sbin/udhcpd /var/tmp/udhcpd.conf
291 root 1092 S crond -b
493 root 1092 S N /bin/sh diagnostics.cgi
494 root 1228 S /usr/sbin/thttpd -d /usr/www -u root -p 80 -c /cgi-bi
495 root 608 S N /usr/local/bin/diagnostics
496 root 1084 S N sh -c /usr/local/bin/diagnostics.sh
497 root 1088 S N /bin/sh /usr/local/bin/diagnostics.sh
519 root 1084 R N /bin/ps aux

ADSL Modem information

AR7 DSL Modem Statistics:
--------------------------------
[DSL Modem Stats]
US Connection Rate: 1020 DS Connection Rate: 10735
DS Line Attenuation: 34 DS Margin: 3
US Line Attenuation: 20 US Margin: 10
US Payload : 1780656 DS Payload: 7615824
US Superframe Cnt : 205306 DS Superframe Cnt: 205306
US Transmit Power : 12 DS Transmit Power: 21
LOS errors: 0 SEF errors: 0
Errored Seconds: 147 Severely Err Secs: 0
Frame mode: 0 Max Frame mode: 0
Trained Path: 1 US Peak Cell Rate: 2405
Trained Mode: 16 Selected Mode: 1
ATUC Vendor Code: 4946544E ATUC Revision: 2
Hybrid Selected: 1 Trellis: 1
Showtime Count: 1 DS Max Attainable Bit Rate: 11016 kbps
BitSwap: 1 US Max Attainable Bit Rate: 1156000 bps
Annex: AnxA psd_mask_qualifier: 0x0000
ATUC ghsVid: b5 00 49 46 54 4e 71 b3
T1413Vid: 00 00 T1413Rev: 00 VendorRev: 00
ATUR ghsVid: 44 4c 69 6e 6b 00 00 00
T1413Vid: 00 00 T1413Rev: 00 VendorRev: 00

[Upstream (TX) Interleave path]
CRC: 0 FEC: 0 NCD: 0
LCD: 0 HEC: 0

[Downstream (RX) Interleave path]
CRC: 250 FEC: 31455 NCD: 0
LCD: 0 HEC: 0

[Upstream (TX) Fast path]
CRC: 0 FEC: 0 NCD: 0
LCD: 0 HEC: 0

[Downstream (RX) Fast path]
CRC: 0 FEC: 0 NCD: 0
LCD: 0 HEC: 0

[ATM Stats]
[Upstream/TX]
Good Cell Cnt: 37097
Idle Cell Cnt: 8366578


[Downstream/RX)]
Good Cell Cnt: 158663
Idle Cell Cnt: 88206618
Bad Hec Cell Cnt: 2369
Overflow Dropped Cell Cnt: 0

[SAR AAL5 Stats]
Tx PDU's: 5848
Rx PDU's: 7925
Tx Total Bytes: 1620163
Rx Total Bytes: 7457568
Tx Total Error Counts: 0
Rx Total Error Counts: 5


[OAM Stats]
Near End F5 Loop Back Count: 0
Near End F4 Loop Back Count: 0
Far End F5 Loop Back Count: 0
Far End F4 Loop Back Count: 0
SAR OAM Ping Response Drop Count=15

Network statistics
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:www 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:ftp 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:telnet 0.0.0.0:* LISTEN
tcp 0 0 DJ.router.AR7WRD:www 192.168.250.252:50068 TIME_WAIT
tcp 0 0 DJ.router.AR7WRD:www 192.168.250.252:50070 TIME_WAIT
tcp 0 0 DJ.router.AR7WRD:www 192.168.250.252:50066 TIME_WAIT
tcp 0 0 DJ.router.AR7WRD:www 192.168.250.252:50076 TIME_WAIT
tcp 0 0 DJ.router.AR7WRD:www 192.168.250.252:50078 TIME_WAIT
tcp 0 0 DJ.router.AR7WRD:www 192.168.250.252:50072 TIME_WAIT
tcp 0 0 DJ.router.AR7WRD:www 192.168.250.252:50074 TIME_WAIT
tcp 0 0 DJ.router.AR7WRD:www 192.168.250.252:50060 TIME_WAIT
tcp 0 0 DJ.router.AR7WRD:www 192.168.250.252:50062 TIME_WAIT
tcp 0 256 DJ.router.AR7WRD:www 192.168.250.252:50080 ESTABLISHED
udp 0 0 0.0.0.0:1812 0.0.0.0:*
udp 0 0 0.0.0.0:domain 0.0.0.0:*
udp 0 0 0.0.0.0:bootps 0.0.0.0:*
udp 0 0 0.0.0.0:tftp 0.0.0.0:*
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 5 [ ] DGRAM 199 /dev/log
unix 2 [ ] DGRAM 201 /dev/klog
unix 2 [ ] DGRAM 172 /var/tmp/cm_pc.ctl
unix 2 [ ] DGRAM 186 /var/tmp/cm_logic.ctl
unix 2 [ ] DGRAM 654
unix 2 [ ] DGRAM 643
unix 2 [ ] DGRAM 470
unix 2 [ ] STREAM 158
unix 2 [ ] DGRAM 157
unix 2 [ ] DGRAM 29
unix 2 [ ] DGRAM 23

Iptables chains
Chain INPUT (policy ACCEPT 1394 packets, 136K bytes)
pkts bytes target prot opt in out source destination
385 58106 ACCEPT all -- ppp0 * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
234 13418 DROP all -- ppp0 * 0.0.0.0/0 0.0.0.0/0

Chain FORWARD (policy ACCEPT 5376 packets, 1409K bytes)
pkts bytes target prot opt in out source destination
7223 7137K ACCEPT all -- ppp0 * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
183 9512 TCPMSS tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 TCPMSS clamp to PMTU
0 0 DROP all -- ppp0 * 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT 2394 packets, 1398K bytes)
pkts bytes target prot opt in out source destination
0 0 DROP icmp -- * ppp0 0.0.0.0/0 0.0.0.0/0 icmp type 3
0 0 DROP icmp -- * ppp0 0.0.0.0/0 0.0.0.0/0 state INVALID

Network interface details
br0 Link encap:Ethernet HWaddr 00:1C:F0:E2:FF:EF
inet addr:192.168.250.250 Bcast:192.168.250.255 Mask:255.255.255.248
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7005 errors:0 dropped:0 overruns:0 frame:0
TX packets:9277 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1676506 (1.5 MiB) TX bytes:8642408 (8.2 MiB)

br1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

br2 Link encap:Ethernet HWaddr 00:00:00:00:00:00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 00:1C:F0:E2:FF:EF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:226 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:39265 (38.3 KiB)
Base address:0x2800

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

nas0 Link encap:Ethernet HWaddr 00:1C:F0:E2:FF:EF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8003 errors:0 dropped:0 overruns:0 frame:0
TX packets:5926 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:7390996 (7.0 MiB) TX bytes:1628047 (1.5 MiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:xx.xx.xx.xx P-t-P:xx.xx.xx.xx Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:7846 errors:0 dropped:0 overruns:0 frame:0
TX packets:5773 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7208916 (6.8 MiB) TX bytes:1436747 (1.3 MiB)

usb0 Link encap:Ethernet HWaddr 00:E0:A6:66:41:EB
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wbif0 Link encap:Ethernet HWaddr 00:44:2B:02:55:44
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:8003 errors:0 dropped:0 overruns:0 frame:0
TX packets:5926 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:7278954 (6.9 MiB) TX bytes:1568787 (1.4 MiB)

wlan0 Link encap:Ethernet HWaddr 00:50:F1:12:12:10
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7005 errors:0 dropped:0 overruns:0 frame:0
TX packets:9277 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1581586 (1.5 MiB) TX bytes:8642408 (8.2 MiB)


Miscellaneous information
Linux RouterTech.AR7WRD 2.4.17_mvl21-malta-mips_fp_le #1 Wed Jul 23 00:55:06 BST 2008 mips unknown
BUILD=RouterTech_3.6.0D_20080723_2.60
VERSION=3.6.0D-RouterTech-Adam2
BOARD=AR7WRD
FSSTAMP=20080723005916
Core logic version: 3.6.0D
Boot Loader: N/A
ATM Driver version:[7.03.01.03]
DSL HAL version: [7.03.01.03]
DSP Datapump version: [7.03.01.66] Annex A
SAR HAL version: [01.07.2c]
PDSP Firmware version:[0.54]
Chipset ID: [7300/7300A]
Upstream rate (kbps): 1020
Downstream rate (kbps): 10735
Uptime hours: 0
Uptime minutes: 59
Line attenuation:
DS Line Attenuation: 34 DS Margin: 3
US Line Attenuation: 20 US Margin: 10
User avatar
SyBorg
Ex RouterTech Team
Ex RouterTech Team
Posts: 1621
Joined: Mon Apr 17, 2006 4:09 pm
Location: Berkshire
Contact:

Post by SyBorg » Mon Aug 04, 2008 1:00 pm

Glad you like the firmware :D

In the firmware documentation you can find things such as running the following from telnet prompt to disable USB

Code: Select all

setenv usb_enable "no"
To run the memory optimiser every hour the command is

Code: Select all

setenv memchk.sh "1"
The commands aboce add entries to the environment that will be read as the router boots up, so once added restart the router.

Also make sure that any features you don't want are disabled - IPAccount, UPnP for example. These can be configured from the web interface.

My router on 2.6 has been up for 159 hours and maintained ADSL sync for the last 154. I've gone with disabling USB as not needed and I run the optimiser every hour and it has kept the router nice and responsive for me.
We learn something every day, and lots of times it’s that what we learned the day before was wrong.
—Bill Vaughan
sbicty
Newbie
Newbie
Posts: 2
Joined: Fri Jun 27, 2008 2:04 pm

Post by sbicty » Mon Aug 04, 2008 2:54 pm

SyBorg wrote:Glad you like the firmware :D

In the firmware documentation you can find things such as running the following from telnet prompt to disable USB

Code: Select all

setenv usb_enable "no"
To run the memory optimiser every hour the command is

Code: Select all

setenv memchk.sh "1"

TY 4 the quick and accurate answer!
User avatar
mysticalos
Experienced
Experienced
Posts: 237
Joined: Sun Feb 25, 2007 11:46 pm
Location: Georgia, USA
Contact:

Post by mysticalos » Thu Aug 28, 2008 2:09 am

ha yeah i was gonna suggest same thing when i first read thread. disable USB, mem checks. disable wireless if it's not being used. the dlink runs dog slow and does crash if memory is low.
vrysera
Newbie
Newbie
Posts: 1
Joined: Sun Nov 09, 2008 10:59 am

Post by vrysera » Sun Nov 09, 2008 11:06 am

thank you
Post Reply