查看: 9477|回复: 14

how to solve it?

[复制链接]
发表于 2011-11-23 16:15:30 | 显示全部楼层 |阅读模式
I still have continuous link reset and packet drop on my mainboard. I've tried the latest Realtek drive (r8168 & r8169), different kernel parameter, update kernel to 3.1, change network cable,  change network switch and even direct connect to my desktop and .........

[ 2110.346539] ------------[ cut here ]------------
[ 2110.346554] WARNING: at net/sched/sch_generic.c:258 dev_watchdog+0xef/0x18c()
[ 2110.346559] Hardware name: To Be Filled By O.E.M.
[ 2110.346564] NETDEV WATCHDOG: eth0 (r8169): transmit queue 0 timed out
[ 2110.346567] Modules linked in: ...............
[ 2110.346682] Pid: 0, comm: swapper Not tainted 2.6.35-unas-1.0 #1
[ 2110.346687] Call Trace:
[ 2110.346691]  <IRQ>  [<ffffffff81044013>] ? warn_slowpath_common+0x78/0x8c
[ 2110.346707]  [<ffffffff810440c6>] ? warn_slowpath_fmt+0x45/0x4a
[ 2110.346715]  [<ffffffff8126443a>] ? netif_tx_lock+0x3d/0x65
    .
    .
[ 2110.346861] ---[ end trace 786920a187773d11 ]---
[ 2110.359855] r8169 0000:01:00.0: eth0: link up
[ 3892.359705] r8169 0000:01:00.0: eth0: link up

Knowing that this small amount of packet drop may be acceptable for general use. However, my NAS is used to store media files and this link issue do cause around 10 second screen freeze in every 10-15 minutes and sometime will start from the beginning. It's very annoying. I've googled for a long long time and this seems a known bug on some revision of RLT8111D chip.
回复

使用道具 举报

发表于 2011-11-25 09:35:38 | 显示全部楼层
你贴一下你的网卡信息:
使用ssh登录工具(putty)登录进去,输入
# lspci


00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-11-26 00:18:25 | 显示全部楼层
xiaoQ 发表于 2011-11-25 09:35
你贴一下你的网卡信息:
使用ssh登录工具(putty)登录进去,输入
# lspci

root@U-NAS:~# lspci
     .
     .
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation NM10 Family LPC Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 02)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
02:05.0 RAID bus controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)

root@U-NAS:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:e0:6f:0f:0e:86
           inet addr:192.168.1.110  Bcast:192.168.1.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:317799 errors:0 dropped:0 overruns:0 frame:0
           TX packets:7246920 errors:0 dropped:184 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:52637046 (50.1 MiB)  TX bytes:10610663499 (9.8 GiB)
           Interrupt:41 Base address:0xa000

root@U-NAS:~# dmesg
     .
     .
[  237.359995] ------------[ cut here ]------------
[  237.360011] WARNING: at net/sched/sch_generic.c:258 dev_watchdog+0xef/0x18c()
[  237.360016] Hardware name: To Be Filled By O.E.M.
[  237.360020] NETDEV WATCHDOG: eth0 (r8169): transmit queue 0 timed out
[  237.360024] Modules linked in: ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 ip_tables x_tables lm78 hwmon_vid nfsd nfs lockd fscache nfs_acl auth_rpcgss sunrpc xfs exportfs snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq snd_timer tpm_tis snd_seq_device i2c_i801 tpm tpm_bios evdev psmouse snd i2c_core serio_raw pcspkr soundcore button snd_page_alloc ext4 mbcache jbd2 crc16 dm_mod raid10 raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx raid1 raid0 multipath linear md_mod sd_mod usbhid ata_generic crc_t10dif hid usb_storage ata_piix r8168 sata_sil libata r8169 uhci_hcd scsi_mod ehci_hcd mii usbcore nls_base thermal [last unloaded: scsi_wait_scan]
[  237.360133] Pid: 0, comm: swapper Not tainted 2.6.35-unas-1.0 #1
[  237.360137] Call Trace:
[  237.360141]  <IRQ>  [<ffffffff81044013>] ? warn_slowpath_common+0x78/0x8c
[  237.360158]  [<ffffffff810440c6>] ? warn_slowpath_fmt+0x45/0x4a
[  237.360165]  [<ffffffff8126443a>] ? netif_tx_lock+0x3d/0x65
[  237.360172]  [<ffffffff81264551>] ? dev_watchdog+0xef/0x18c
[  237.360181]  [<ffffffff81057a0f>] ? __queue_work+0x27/0x38
[  237.360189]  [<ffffffff81038cbc>] ? enqueue_task_fair+0x21/0x62
[  237.360196]  [<ffffffff8104fb64>] ? run_timer_softirq+0x1cd/0x299
[  237.360203]  [<ffffffff8105f266>] ? sched_clock_local+0x12/0x75
[  237.360210]  [<ffffffff81264462>] ? dev_watchdog+0x0/0x18c
[  237.360217]  [<ffffffff8104952e>] ? __do_softirq+0xe4/0x1aa
[  237.360224]  [<ffffffff810658b5>] ? tick_dev_program_event+0x33/0xf0
[  237.360232]  [<ffffffff8100e796>] ? read_tsc+0x5/0x16
[  237.360240]  [<ffffffff8100989c>] ? call_softirq+0x1c/0x30
[  237.360246]  [<ffffffff8100ae73>] ? do_softirq+0x3f/0x79
[  237.360252]  [<ffffffff810493ae>] ? irq_exit+0x36/0x7a
[  237.360259]  [<ffffffff8101eb93>] ? smp_apic_timer_interrupt+0x87/0x94
[  237.360267]  [<ffffffff81009353>] ? apic_timer_interrupt+0x13/0x20
[  237.360271]  <EOI>  [<ffffffff811bb0a9>] ? intel_idle+0x10c/0x13c
[  237.360282]  [<ffffffff811bb089>] ? intel_idle+0xec/0x13c
[  237.360290]  [<ffffffff812380da>] ? cpuidle_idle_call+0x8f/0xed
[  237.360297]  [<ffffffff81007b36>] ? cpu_idle+0xa3/0xdd
[  237.360305]  [<ffffffff812f987c>] ? start_secondary+0x1ed/0x1f3
[  237.360310] ---[ end trace 1df5b5812560d904 ]---
[  237.373396] r8169 0000:01:00.0: eth0: link up
[  855.373335] r8169 0000:01:00.0: eth0: link up
[ 2349.373185] r8169 0000:01:00.0: eth0: link up
[ 2829.373140] r8169 0000:01:00.0: eth0: link up
root@U-NAS:~#

root@U-NAS:~# ethtool -i eth0
driver: r8169
version: 2.3LK-NAPI
firmware-version:
bus-info: 0000:01:00.0
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-11-26 00:19:50 | 显示全部楼层
xiaoQ 发表于 2011-11-25 09:35
你贴一下你的网卡信息:
使用ssh登录工具(putty)登录进去,输入
# lspci

This MB get more frequency link rest just likk my first one. Please HELP.

root@U-NAS:~# dmesg
      .
      .

[  237.373396] r8169 0000:01:00.0: eth0: link up
[  855.373335] r8169 0000:01:00.0: eth0: link up
[ 2349.373185] r8169 0000:01:00.0: eth0: link up
[ 2829.373140] r8169 0000:01:00.0: eth0: link up
[ 4095.373011] r8169 0000:01:00.0: eth0: link up
[ 4185.372997] r8169 0000:01:00.0: eth0: link up
[ 4197.373004] r8169 0000:01:00.0: eth0: link up
[ 4395.373394] r8169 0000:01:00.0: eth0: link up
[ 4503.372968] r8169 0000:01:00.0: eth0: link up
[ 4713.372952] r8169 0000:01:00.0: eth0: link up
[ 4881.372929] r8169 0000:01:00.0: eth0: link up
[ 6279.372797] r8169 0000:01:00.0: eth0: link up
[ 6507.372767] r8169 0000:01:00.0: eth0: link up
[ 7113.372708] r8169 0000:01:00.0: eth0: link up
[ 7155.372712] r8169 0000:01:00.0: eth0: link up
[ 7821.372639] r8169 0000:01:00.0: eth0: link up
[ 8103.372604] r8169 0000:01:00.0: eth0: link up
[ 8127.372611] r8169 0000:01:00.0: eth0: link up


root@U-NAS:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:e0:6f:0f:0e:86
           inet addr:192.168.1.110  Bcast:192.168.1.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:870050 errors:0 dropped:0 overruns:0 frame:0
           TX packets:18852683 errors:0 dropped:828 overruns:0 carrier:0
           collisions:0 txqueuelen:1000
           RX bytes:191997570 (183.1 MiB)  TX bytes:27575775675 (25.6 GiB)
           Interrupt:41 Base address:0xa000
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-11-26 01:20:32 | 显示全部楼层
xiaoQ 发表于 2011-11-25 09:35
你贴一下你的网卡信息:
使用ssh登录工具(putty)登录进去,输入
# lspci

Thanks. Below are what I've tried so far for your reference.

Hardware
    unplug SATA Raid with internal SATA and only one HDD ->  packet drop
    install U-NAS Home on different USB and internal 2.5" HDD ->  packet drop
    use my desktop SPI 450W desktop power supply for U-NAS -> packet drop
    install my MB on my friend's U-NAS (in his home) -> packet drop

Network
    update latest firmware on Netgear WNDR3700 and also tried DD-WRT -> packet drop
    use and old 100M route from PCCW -> packet drop
    NFS/SMB share media files from U-NAS to Xtreamer -> packet drop
    SMB share media files for ASUS desktop (Windows 7) to Xtreamer -> ok
    Use 3m Cat 6 cable direct connect U-NAS to ASUS desktop -> packet drop

Software
    U-NAS Home 1.0 -> packet drop
    U-NAS Home 1.1 -> packet drop
    update U-NAS Home 1.0 with apt-get update & upgrade -> packet drop
    update U-NAS Home 1.1 with apt-get update & upgrade -> packet drop
    install network driver r8168 v8.026.00 from Realtek (confrim with "ethtool -i eth0") -> packet drop
    install network driver r8169 v6.015.00 from Realtek (confrim with "ethtool -i eth0") -> much worse
    force to run 100M with "ethtool -s eth0 autoneg off speed 100 duplex full" -> packet drop
    tried below kernel parameter on boot up -> packet drop
             pci=noacpi -> no effect
             pci=noapci -> no such option
             pci=nomsi -> no effect
             acpi=force iqrpoll -> no effect
             pci=noacpi pci=nomsi acpi=force iqrpol -> no effect
             noapic -> cannot boot, DMA READ error
    update kernel to 3.1 from "deb http://debian.oregonstate.edu/debian sid main" -> packet drop
    install FreeNAS 8.0 -> packet drop
    install Windows 7 -> much better but still have little packet drop
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-11-26 01:24:41 | 显示全部楼层
xiaoQ 发表于 2011-11-25 09:35
你贴一下你的网卡信息:
使用ssh登录工具(putty)登录进去,输入
# lspci

Forget to said that the issue is mainly on upstream transmission (reading data from U-NAS)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-11-26 19:23:00 | 显示全部楼层
請問怎樣解決
謝謝
回复 支持 反对

使用道具 举报

发表于 2011-11-26 22:51:55 | 显示全部楼层
I think the main problem is the network driver.
You are using RTL8111/8168B network adapter,however you are loading   r8169.
Type the following cmd:
rmmod r8169
modprobe r8168
/etc/init.d/networking restart
update-initramfs -u
echo blacklist r8169 >>/etc/modprobe.d/blacklist
回复 支持 反对

使用道具 举报

发表于 2011-11-26 23:02:30 | 显示全部楼层
对,应该是驱动加载错误了
回复 支持 反对

使用道具 举报

发表于 2011-11-26 23:06:49 | 显示全部楼层
# lsmod |grep "r816"
可以查看加载的驱动。

如果有r8169 ,就按照 Jone 的方法把 网卡驱动都卸载,然后重新载入 r8168的驱动
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|万由科技 ( 浙ICP备10004788号-13 )

GMT+8, 2024-5-15 13:58 , Processed in 0.084411 second(s), 29 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表