查看: 3262|回复: 4

HELP: intermittent packects dropped and network freeze

[复制链接]
发表于 2011-10-23 23:18:46 | 显示全部楼层 |阅读模式
I've intermittent packects dropped. I've tried to replace network cable, change switch port and use Realtek official r8168 driver but problem still here. HELP.....{:soso_e118:}

# 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
          inet6 addr: fe80::2e0:6fff:fe0f:e86/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13373 errors:0 dropped:0 overruns:0 frame:0
          TX packets:237885 errors:0 dropped:990 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2117858 (2.0 MiB)  TX bytes:346041232 (330.0 MiB)
          Interrupt:16 Base address:0xc000

dmesg output
[  808.346642] ------------[ cut here ]------------
[  808.346657] WARNING: at net/sched/sch_generic.c:258 dev_watchdog+0xef/0x18c()
[  808.346662] Hardware name: To Be Filled By O.E.M.
[  808.346666] NETDEV WATCHDOG: eth0 (r8169): transmit queue 0 timed out
[  808.346670] Modules linked in: parport_pc ppdev lp parport iscsi_trgt appletalk ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 lm78 ip_tables hwmon_vid x_tables crc32c 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 psmouse tpm i2c_i801 tpm_bios i2c_core serio_raw pcspkr evdev snd soundcore snd_page_alloc button 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 usbhid sd_mod hid ata_generic crc_t10dif r8168 usb_storage ata_piix uhci_hcd sata_sil r8169 libata ehci_hcd mii scsi_mod usbcore nls_base thermal [last unloaded: scsi_wait_scan]
[  808.346785] Pid: 0, comm: swapper Not tainted 2.6.35-unas-1.0 #1
[  808.346790] Call Trace:
[  808.346793]  <IRQ>  [<ffffffff81044013>] ? warn_slowpath_common+0x78/0x8c
[  808.346809]  [<ffffffff810440c6>] ? warn_slowpath_fmt+0x45/0x4a
[  808.346817]  [<ffffffff8126443a>] ? netif_tx_lock+0x3d/0x65
[  808.346824]  [<ffffffff81264551>] ? dev_watchdog+0xef/0x18c
[  808.346831]  [<ffffffff8103f709>] ? try_to_wake_up+0x205/0x217
[  808.346838]  [<ffffffff8104fb64>] ? run_timer_softirq+0x1cd/0x299
[  808.346845]  [<ffffffff8105f266>] ? sched_clock_local+0x12/0x75
[  808.346852]  [<ffffffff81264462>] ? dev_watchdog+0x0/0x18c
[  808.346859]  [<ffffffff8104952e>] ? __do_softirq+0xe4/0x1aa
[  808.346867]  [<ffffffff810658b5>] ? tick_dev_program_event+0x33/0xf0
[  808.346874]  [<ffffffff8100e796>] ? read_tsc+0x5/0x16
[  808.346882]  [<ffffffff8100989c>] ? call_softirq+0x1c/0x30
[  808.346889]  [<ffffffff8100ae73>] ? do_softirq+0x3f/0x79
[  808.346895]  [<ffffffff810493ae>] ? irq_exit+0x36/0x7a
[  808.346902]  [<ffffffff8101eb93>] ? smp_apic_timer_interrupt+0x87/0x94
[  808.346910]  [<ffffffff81009353>] ? apic_timer_interrupt+0x13/0x20
[  808.346914]  <EOI>  [<ffffffff811bb0a9>] ? intel_idle+0x10c/0x13c
[  808.346925]  [<ffffffff811bb089>] ? intel_idle+0xec/0x13c
[  808.346933]  [<ffffffff812380da>] ? cpuidle_idle_call+0x8f/0xed
[  808.346940]  [<ffffffff81007b36>] ? cpu_idle+0xa3/0xdd
[  808.346948]  [<ffffffff812f987c>] ? start_secondary+0x1ed/0x1f3
[  808.346953] ---[ end trace c43652f2c44a0bbf ]---
[  808.360010] r8169 0000:01:00.0: eth0: link up
回复

使用道具 举报

发表于 2011-10-24 09:49:18 | 显示全部楼层
本帖最后由 jone 于 2011-10-24 17:43 编辑

First  be sure what type of network adapter it is.
You can type the command lspci .
root@U-NAS:~# lspci
00:00.0 Host bridge: Intel Corporation N10 Family DMI Bridge (rev 02)
00:02.0 VGA compatible controller: Intel Corporation N10 Family Integrated Graphics Controller (rev 02)
00:02.1 Display controller: Intel Corporation N10 Family Integrated Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 02)
00:1d.0 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 02)
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)


You can see  RTL8111/8168B PCI Express Gigabit Ethernet controlle is the network adapter.

Then  use command "lsmod  |grep  r816*"  to list which networking driver has been loaded.

root@U-NAS:~# lsmod |grep r816*
r8168                 175172  0
r8169                  35025  0
mii                     4525  1 r8169

Remove all of the networking drivers ,and reload r8168.
root@U-NAS:~# rmmod r8169
root@U-NAS:~# rmmod r8168
root@U-NAS:~#modprobe  r8168
root@U-NAS:~# /etc/init.d/networking restart
root@U-NAS:~#update-initramfs -u


回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-10-24 21:01:20 | 显示全部楼层
jone 发表于 2011-10-24 09:49
First  be sure what type of network adapter it is.
You can type the command lspci .
root@U-NAS:~# ls ...

Thanks. But I've no luck, the problem sill exist with r8168 driver. Any idea?

# lsmod | grep r81
r8168                 182437  0

# modinfo r8168
filename:       /lib/modules/2.6.35-unas-1.0/kernel/drivers/net/r8168.ko
version:        8.025.00-NAPI
license:        GPL
description:    RealTek RTL-8168 Gigabit Ethernet driver
author:         Realtek and the Linux r8168 crew <netdev@vger.kernel.org>

dmesg output
[ 1249.333231] ------------[ cut here ]------------
[ 1249.333246] WARNING: at net/sched/sch_generic.c:258 dev_watchdog+0xef/0x18c()
[ 1249.333251] Hardware name: To Be Filled By O.E.M.
[ 1249.333256] NETDEV WATCHDOG: eth0 (r8168): transmit queue 0 timed out
[ 1249.333259] Modules linked in: parport_pc ppdev lp parport iscsi_trgt ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 appletalk nf_conntrack nf_defrag_ipv4 ip_tables lm78 x_tables hwmon_vid crc32c nfsd nfs lockd fscache nfs_acl auth_rpcgss sunrpc xfs exportfs raid1 md_mod snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_seq snd_timer tpm_tis snd_seq_device psmouse i2c_i801 tpm tpm_bios evdev snd i2c_core pcspkr serio_raw soundcore button snd_page_alloc ext4 mbcache jbd2 crc16 dm_mod usbhid sd_mod crc_t10dif ata_generic hid usb_storage uhci_hcd sata_sil ata_piix libata ehci_hcd scsi_mod usbcore nls_base r8168 thermal [last unloaded: scsi_wait_scan]
[ 1249.333359] Pid: 0, comm: swapper Not tainted 2.6.35-unas-1.0 #1
[ 1249.333364] Call Trace:
[ 1249.333367]  <IRQ>  [<ffffffff81044013>] ? warn_slowpath_common+0x78/0x8c
[ 1249.333383]  [<ffffffff810440c6>] ? warn_slowpath_fmt+0x45/0x4a
[ 1249.333391]  [<ffffffff8126443a>] ? netif_tx_lock+0x3d/0x65
[ 1249.333398]  [<ffffffff81264551>] ? dev_watchdog+0xef/0x18c
[ 1249.333406]  [<ffffffff8100e796>] ? read_tsc+0x5/0x16
[ 1249.333414]  [<ffffffff810618e7>] ? ktime_get+0x5f/0xb8
[ 1249.333421]  [<ffffffff8101e0b3>] ? lapic_next_event+0x18/0x1d
[ 1249.333428]  [<ffffffff810658b5>] ? tick_dev_program_event+0x33/0xf0
[ 1249.333435]  [<ffffffff8104fb64>] ? run_timer_softirq+0x1cd/0x299
[ 1249.333442]  [<ffffffff8105f266>] ? sched_clock_local+0x12/0x75
[ 1249.333449]  [<ffffffff81264462>] ? dev_watchdog+0x0/0x18c
[ 1249.333456]  [<ffffffff8104952e>] ? __do_softirq+0xe4/0x1aa
[ 1249.333463]  [<ffffffff810658b5>] ? tick_dev_program_event+0x33/0xf0
[ 1249.333469]  [<ffffffff8100e796>] ? read_tsc+0x5/0x16
[ 1249.333478]  [<ffffffff8100989c>] ? call_softirq+0x1c/0x30
[ 1249.333484]  [<ffffffff8100ae73>] ? do_softirq+0x3f/0x79
[ 1249.333491]  [<ffffffff810493ae>] ? irq_exit+0x36/0x7a
[ 1249.333497]  [<ffffffff8101eb93>] ? smp_apic_timer_interrupt+0x87/0x94
[ 1249.333505]  [<ffffffff81009353>] ? apic_timer_interrupt+0x13/0x20
[ 1249.333509]  <EOI>  [<ffffffff811bb0a9>] ? intel_idle+0x10c/0x13c
[ 1249.333520]  [<ffffffff811bb089>] ? intel_idle+0xec/0x13c
[ 1249.333528]  [<ffffffff812380da>] ? cpuidle_idle_call+0x8f/0xed
[ 1249.333535]  [<ffffffff81007b36>] ? cpu_idle+0xa3/0xdd
[ 1249.333542]  [<ffffffff812ffd53>] ? _raw_spin_unlock_irqrestore+0xb/0x11
[ 1249.333550]  [<ffffffff812f987c>] ? start_secondary+0x1ed/0x1f3
[ 1249.333556] ---[ end trace 895ea3c2243301d7 ]---
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-10-25 01:15:14 | 显示全部楼层
jone 发表于 2011-10-24 09:49
First  be sure what type of network adapter it is.
You can type the command lspci .
root@U-NAS:~# ls ...

After my days of painful trouble shooting on the intermittent packets drop and network freeze issue, the on-board network port is now totally gone lastly (may be lucky). There is no link signel anymore. Will ask for hardware support. Thanks.
回复 支持 反对

使用道具 举报

发表于 2011-10-25 09:19:38 | 显示全部楼层
zitax 发表于 2011-10-25 01:15
After my days of painful trouble shooting on the intermittent packets drop and network freeze issu ...

Maybe you can take discharge on the mainboard.
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-15 19:12 , Processed in 0.062333 second(s), 24 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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