wr1043 crashing with transmission

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
nikil511
Posts: 9
Joined: Fri Nov 12, 2010 2:55 am

wr1043 crashing with transmission

Post by nikil511 »

I use gargoyle_1.3.7 on a TP link wr1043nd.
I have installed transmission
So far I have two problems:
1) USB mount is not always working automaticly... I use an SD card with a 2GB ext3 partition. Tried a USB flash of 4GB but it does not work (?) (will deal with this in the future) Have not tried with HDD yet.

2) router is crashing/restarting when transmission is running for a few mins.
I have not managed to download more than 10MBytes, before the router crashes. I have confirmed that files do go to the USB ..
I am running "top" before crashing, and looks normal

Before starting transmission daemon:
Mem: 26932K used, 2604K free, 0K shrd, 2888K buff, 9216K cached
CPU: 0% usr 9% sys 0% nic 90% idle 0% io 0% irq 0% sirq

Upon crash:
Mem: 28564K used, 972K free, 0K shrd, 28K buff, 11912K cached
CPU: 2% usr 1% sys 0% nic 87% idle 5% io 0% irq 2% sirq

They look normal to me.. (?)
What happens is that the router webinterface, transmission web, are both not available. router wifi is not available, ssh is not available. However, router LEDs are flashing like something is happening. Only cure is to restart it.

Where can I find logs to see whats happening ? what else should I check ?

thanks

yager86
Posts: 9
Joined: Sun Dec 12, 2010 2:22 pm

Re: wr1043 crashing with transmission

Post by yager86 »

It does the same for me. Rtorrent also...
If i come across anything useful i'll tell ya.

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: wr1043 crashing with transmission

Post by pbix »

Looks like you are possibly running out of memory.

Mem: 28564K used, 972K free

You might try to lower your firewall->connections->max connections down to 1024. The watch your memory and see if you can keep more than 1Meg free.

Also you might post the results of your 'top' output or a ps output.

If you run out of memory your router will crash. If you exceed the connection limit the new connections to the internet will not be allowed until some existing ones are closed.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

yager86
Posts: 9
Joined: Sun Dec 12, 2010 2:22 pm

Re: wr1043 crashing with transmission

Post by yager86 »

Hi!

I made a 1 GB swap :) and still transmission of rtorrent hangs.
I have 80/25 Mbit/s connection but both clients cap at around 500-600KB/s with 100% CPU utilisation. It goes for 10-20 mins this way but then transmission hangs... the router is still accessable and everything else works fine. I don't know if it matters but I use NTFS for the destination partition.
Thx in advance!

yager

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: wr1043 crashing with transmission

Post by pbix »

Well that is not exactly what I had in mind. If you want to learn something about what might be making your router crash you should eliminate all optional software features and packages you can.

If I were you I would start by removing all packages I installed and then disabling all the Gargoyle features I could and reducing the maximum connections as I suggested. Then if the problem goes away you start adding back features until your problem returns.

Then you have learned something.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

yager86
Posts: 9
Joined: Sun Dec 12, 2010 2:22 pm

Re: wr1043 crashing with transmission

Post by yager86 »

Hi!

The other features don't seem to eat much CPU time according to top.
I lowered the number of peers in the transmission config it helped a bit but it seems writing to ntfs ate up 30% of CPU, so I switched to ext3.

And now it works :) Thanks for the help!
Happy Holidays :D

Ps: Don't use rtorrent... leaks like hell.. 760%mem :D

alencarazevedo
Posts: 23
Joined: Thu Sep 15, 2011 5:47 am

Re: wr1043 crashing with transmission

Post by alencarazevedo »

Hi!

I'm using the lastest Gargoyle version 1.4.1 and I have the same problem. Now I'm trying to use EXT3 partition instead of NTFS.

I've realized that even running only standard Gargoyle's process, sometimes the memory reach to less then 1MB available.

top output:

Mem: 28296K used, 1196K free, 0K shrd, 3516K buff, 11740K cached
CPU: 0% usr 0% sys 0% nic 99% idle 0% io 0% irq 0% sirq
Load average: 0.01 0.11 0.07 1/43 2994
PID PPID USER STAT VSZ %MEM %CPU COMMAND
2994 2983 root R 1364 5% 0% top
2989 1507 root S N 2904 10% 0% smbd -D
1507 1 root S N 2628 9% 0% smbd -D
1509 1 root S 2136 7% 0% nmbd -D
509 1 root S 1624 6% 0% /usr/sbin/pppd plugin rp-pppoe.so mtu
1061 1 root S 1436 5% 0% hostapd -P /var/run/wifi-phy0.pid -B
2983 2982 root S 1376 5% 0% -ash
308 1 root S 1372 5% 0% syslogd -C16
2217 1 root S 1372 5% 0% crond -c /etc/crontabs -l 5
1 0 root S 1368 5% 0% init
294 1 root S 1368 5% 0% init
1544 1 root S 1364 5% 0% watchdog -t 5 /dev/watchdog
310 1 root S 1356 5% 0% klogd
1432 1 root S 1340 5% 0% httpd_gargoyle -c cgi-bin/**|**.sh|**
2982 1406 root S 1204 4% 0% /usr/sbin/dropbear -P /var/run/dropbe
1406 1 root S 1132 4% 0% /usr/sbin/dropbear -P /var/run/dropbe
851 1 nobody S 928 3% 0% /usr/sbin/portmap
1458 1 nobody S 912 3% 0% /usr/sbin/dnsmasq -K -D -y -Z -b -E -
1631 1 root S 896 3% 0% miniupnpd -f /var/etc/miniupnpd.conf
324 1 root S 792 3% 0% /sbin/hotplug2 --override --persisten

Another point is that I have a 64MB Swap Partition and the system generaly uses only 1MB or 2MB. Is it normal? Why does my router crash if I have 60MB Swap Available?

I apologize for my bad English.

Regards!

pbix
Developer
Posts: 1373
Joined: Fri Aug 21, 2009 5:09 pm

Re: wr1043 crashing with transmission

Post by pbix »

OpenWRT does not support virtual memory as far as I know so adding a swap partition is not going to help you when it comes to running out of RAM space.

Examine the contents of logread and dmesg and see if you can spot something that will be a clue to why your router is crashing.
Linksys WRT1900ACv2
Netgear WNDR3700v2
TP Link 1043ND v3
TP-Link TL-WDR3600 v1
Buffalo WZR-HP-G300NH2
WRT54G-TM

argent88
Posts: 2
Joined: Sun Apr 17, 2011 4:21 am

Re: wr1043 crashing with transmission

Post by argent88 »

Here's my experience:

I have recently upgraded to Gargoyle 1.5 on my TP-LINK WR1043ND.
I installed Trasmission and first had problem due to RAM running out (automatic reboot), so I managed to activate 1gb swap partition and now it work without problems.

Now, how do I get to enable the swap at next reboot without having to use PuTTY?

alencarazevedo
Posts: 23
Joined: Thu Sep 15, 2011 5:47 am

Re: wr1043 crashing with transmission

Post by alencarazevedo »

I've changed my /etc/init.d/usb_storage script as below:

start()
{
#Enable Swap
swapon /dev/sda1
#Check EXT4 Partition
e2fsck -p /dev/sda2
#Mount EXT4 Partition
mount /dev/sda2 /mnt

...

stop()
{
sync
sync
sleep 5
umount /dev/sda2
swapoff /dev/sda1

...

Post Reply