LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-22-2006, 05:13 PM   #1
MrMichael
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Rep: Reputation: 0
Any type of bittorrent downloads kills linux network


If I start any kind of torrent download all network traffic on my box dies and I get the following error in /var/log/messages:

Aug 22 16:47:58 kernel: NETDEV WATCHDOG: eth0: transmit timed out
Aug 22 16:47:58 kernel: tg3: eth0: transmit timed out, resetting
Aug 22 16:47:58 kernel: tg3: tg3_stop_block timed out, ofs=1400 enable_bit=2
Aug 22 16:47:58 kernel: tg3: tg3_stop_block timed out, ofs=c00 enable_bit=2
Aug 22 16:47:58 kernel: tg3: eth0: Link is down.
Aug 22 16:48:02 kernel: tg3: eth0: Link is up at 1000 Mbps, full duplex.
Aug 22 16:48:02 kernel: tg3: eth0: Flow control is on for TX and on for RX.

Sometimes the link doesn't come back up and I need to restart the service.

Running on a shuttle box SD31P
2.6.17-1.2174_FC5smp #1 SMP Tue Aug 8 16:00:39 EDT 2006 i686 i686 i386 GNU/Linux

I'm not sure if its just a torrent thing or a network thing. I can run torrents fine on a windows box that is on the same lan going out through the same router. I can download huge amounts of data through ftp just fine. Its only with torrents. I thought initially it was a bad python install so I grabbed a C based torrent client and it failed also.

Is there some kind of limit that can be adjusted in the kernel relating to maximum number of open connections? Any thoughts or suggestions?
 
Old 08-22-2006, 07:05 PM   #2
stefanlasiewski
Member
 
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92

Rep: Reputation: 16
Whenever I run into this problem, it ends up being an issue with the NIC-to-Router communication. The router will kill the Ethernet connection due to a bug-- the memory cache on the router might fill up, or there is some other bug.

When this happens to me, I reduce the maximum-download speed by 5% or so. This has always fixed the problem for me.
 
Old 08-23-2006, 09:23 AM   #3
MrMichael
LQ Newbie
 
Registered: Aug 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Yeah, I tried doing that. What makes me think its not the router is because I have a windows machine sitting on the same router that doesn't have problems and the messages on the linux box. I dropped the upload speed, but download has always been unlimited (same as the windows box). I'll try dropping the download speed some and see what happens.

I dropped the download speed and attempted another torrent. About 30 seconds into the torrent starting I lose connection with my box, it didn't even have a chance to get anywhere near max download speed. Now I'm just waiting for the network to reset itself (if it even does that, sometimes I have to go to the terminal and reset it).

Was able to get back in, again the same is in /var/log/messages:

Aug 23 10:15:06 kernel: NETDEV WATCHDOG: eth0: transmit timed out
Aug 23 10:15:06 kernel: tg3: eth0: transmit timed out, resetting
Aug 23 10:15:06 kernel: tg3: tg3_stop_block timed out, ofs=2c00 enable_bit=2
Aug 23 10:15:06 kernel: tg3: tg3_stop_block timed out, ofs=1400 enable_bit=2
Aug 23 10:15:06 kernel: tg3: tg3_stop_block timed out, ofs=c00 enable_bit=2
Aug 23 10:15:06 kernel: tg3: eth0: Link is down.
Aug 23 10:15:09 kernel: tg3: eth0: Link is up at 1000 Mbps, full duplex.
Aug 23 10:15:09 kernel: tg3: eth0: Flow control is on for TX and on for RX.

Another update. I found a newsgroup posting from june with someone talking about exactly what I was seeing. Someone recommended they issue a:

ethtool -K eth0 tso off

Command and see if that helps. It seemed to help so far. The posts seem to imply that it is a kernel problem with the tg3 driver.

Where can I put this so that when I reboot the box it happens automatically?

Last edited by MrMichael; 08-23-2006 at 10:54 AM.
 
Old 09-06-2006, 04:08 PM   #4
sepahewe
LQ Newbie
 
Registered: Sep 2006
Posts: 1

Rep: Reputation: 0
Hi!

I had the same problem, but a little bit of Googling revealed that several others have had the same problem and solved it by turning of TSO on you network card:
ethtool -K eth0 tso off

tso offloads some of the segmentation work from the OS to your network card, but it seems buggy. I turned it off and <knock on wood> haven't had a problem since.

//H
 
Old 10-17-2006, 06:10 PM   #5
Mudhoney
LQ Newbie
 
Registered: Oct 2006
Location: Australia
Distribution: FC4 & 6
Posts: 8

Rep: Reputation: 0
Thanks, that worked a treat for me, too. I'd been pulling my hair out for weeks!
 
  


Reply

Tags
network, torrent


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MSN Messenger Protocol Kills Network McKittrick Slackware 6 04-26-2006 03:14 PM
bittorrent freezes network delta_9 Suse/Novell 4 03-04-2006 12:51 PM
network everywhere NIC large downloads fail Bagleemo Linux - Networking 4 02-26-2006 12:18 PM
bittorrent always corrupts downloads snecklifter Linux - Software 2 05-11-2005 09:57 AM
Network problems with bittorrent / azureus pim42 Linux - Networking 5 03-17-2005 04:16 PM


All times are GMT -5. The time now is 07:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration