Date: Mon, 5 Dec 2011 13:53:03 +0200 From: Sami Halabi <sodynet1@gmail.com> To: pyunyh@gmail.com Cc: freebsd-net@freebsd.org Subject: Re: Problem on re0 Message-ID: <CAEW%2BogbPwPY8r=uHhpkkp9-_K_gNsAVzKhVmgWScAMsHt2SJKQ@mail.gmail.com> In-Reply-To: <20111205022730.GE1729@michelle.cdnetworks.com> References: <CAEW%2BogauicnjsNdMCBBtoYzOLKVQoxP92Lw9Q_YgYPAe96dS5g@mail.gmail.com> <20111205022730.GE1729@michelle.cdnetworks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Dmesg: re0: <RealTek 8169/8169S/8169SB(L)/8110S/8110SB(L) Gigabit Ethernet> port 0x9000-0x90ff mem 0xf4000000-0xf40000ff irq 16 at device 6.0 on pci1 re0: Chip rev. 0x10000000 re0: MAC rev. 0x00000000 miibus0: <MII bus> on re0 rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re0: Ethernet address: 00:a1:b0:69:15:5d re0: [FILTER] re1: <RealTek 8169/8169S/8169SB(L)/8110S/8110SB(L) Gigabit Ethernet> port 0x9400-0x94ff mem 0xf4001000-0xf40010ff irq 17 at device 7.0 on pci1 re1: Chip rev. 0x10000000 re1: MAC rev. 0x00000000 miibus1: <MII bus> on re1 rgephy1: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus1 rgephy1: 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow re1: Ethernet address: 00:a1:b0:69:76:28 re1: [FILTER] ------------------------------------------------ here is "sysctl dev.re.0.stats=1" output: Dec 5 14:58:27 mpd kernel: re0 statistics: Dec 5 14:58:27 mpd kernel: Tx frames : 15790052 Dec 5 14:58:27 mpd kernel: Rx frames : 11847483 Dec 5 14:58:27 mpd kernel: Tx errors : 0 Dec 5 14:58:27 mpd kernel: Rx errors : 10378 Dec 5 14:58:27 mpd kernel: Rx missed frames : 0 Dec 5 14:58:27 mpd kernel: Rx frame alignment errs : 0 Dec 5 14:58:27 mpd kernel: Tx single collisions : 0 Dec 5 14:58:27 mpd kernel: Tx multiple collisions : 0 Dec 5 14:58:27 mpd kernel: Rx unicast frames : 11847483 Dec 5 14:58:27 mpd kernel: Rx broadcast frames : 0 Dec 5 14:58:27 mpd kernel: Rx multicast frames : 0 Dec 5 14:58:27 mpd kernel: Tx aborts : 0 Dec 5 14:58:27 mpd kernel: Tx underruns : 0 here is current netstat: Name Mtu Network Address Ipkts Ierrs Idrop Ibytes Opkts Oerrs Obytes Coll re0 1500 <Link#1> 00:a1:b0:69:15:5d 294056550 280 0 86154803011 420449814 0 350472123744 0 01:00:5e:00:00:01 261 0 re0 1500 188.64.96.4/3 5.1886496.royalsh 435 - - 35076 420439431 - 344585787536 - re1* 1500 <Link#2> 00:a1:b0:69:76:28 0 0 0 0 0 0 0 0 i had in the last 36 hours 7 time card stuck and ifconfig down/up... >When you notice the controller is in stuck condition, could you >check which part(either TX or RX or both) of controller does not >work? how i can output that? Thanks in advance, Sami On Mon, Dec 5, 2011 at 4:27 AM, YongHyeon PYUN <pyunyh@gmail.com> wrote: > On Sun, Dec 04, 2011 at 07:33:01PM +0200, Sami Halabi wrote: > > Hi, > > I have a desktop on which being used as a MPD server. > > the server isn't that loaded, and the cpu is highly idel 90-92% of the > time. > > > > My problem is in the network card connected to the cables provider. > > in a random manner ot stops working whith no notice, and all l2tp/pptp > > users disconnect, > > also the provider side stops answering my pings until i ifconfig down the > > card and ifconfig up it gain. > > As a work around i wrote a script that does ping every 2 minutes and if > the > > ping timesout it do: > > ifconfig re0 down > > sleep 1 > > ifconfig re0 up > > mail me about it > > > > I had FBSD-8.1-R and upgraded yesterday to FBSD-8.2-p4, and did > > freebsd-update fetch/install. > > but the problem persists, i got already 4 emails since the upgrade (and > > didn't pass yet the 24 hours). > > > > here is the plot of lspci: > > 01:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 > > Gigabit Ethernet (rev 10) > > 01:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8169 > > Gigabit Ethernet (rev 10) > > (the 2nd driver isn't used, and no cable connected). > > > > # ifconfig -m re0 > > re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 > > > > > options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC> > > > > > capabilities=439db<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,POLLING,VLAN_HWCSUM,TSO4,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO> > > ether 00:a1:b0:69:15:5d > > inet 1.2.3.5 netmask 0xfffffffc broadcast 1.2.3.7 > > media: Ethernet autoselect (1000baseT <full-duplex>) > > status: active > > supported media: > > media autoselect mediaopt flowcontrol > > media autoselect > > media 1000baseT mediaopt full-duplex,flowcontrol,master > > media 1000baseT mediaopt full-duplex,flowcontrol > > media 1000baseT mediaopt full-duplex,master > > media 1000baseT mediaopt full-duplex > > media 1000baseT mediaopt master > > media 1000baseT > > media 100baseTX mediaopt full-duplex,flowcontrol > > media 100baseTX mediaopt full-duplex > > media 100baseTX > > media 10baseT/UTP mediaopt full-duplex,flowcontrol > > media 10baseT/UTP mediaopt full-duplex > > media 10baseT/UTP > > media none > > > > # netstat -aib | grep -v ng|grep -v "all\-sys" > > Name Mtu Network Address Ipkts Ierrs Idrop > Ibytes > > Opkts Oerrs Obytes Coll > > re0 1500 <Link#1> 00:a1:b0:69:15:5d 147089824 126 0 > > 46718527073 206253261 0 154140535336 0 > > 01:00:5e:00:00:01 139 > > 0 > > re0 1500 1.2.3.3/30 1.2.3.5 435 - - 35076 206240451 > > - 151252235756 - > > re1* 1500 <Link#2> 00:a1:b0:69:76:28 0 0 0 > 0 > > 0 0 0 0 > > > > > > Please help me debug and fix this issue... > > > > Show me dmesg output to know which controller you have(pciconf(8) > output is not enough). > When you notice the controller is in stuck condition, could you > check which part(either TX or RX or both) of controller does not > work? > > From netstat(1) I can see you have 126 RX errors. Could you show me > the output of "sysctl dev.re.0.stats=1"? > -- Sami Halabi Information Systems Engineer NMS Projects Expert
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEW%2BogbPwPY8r=uHhpkkp9-_K_gNsAVzKhVmgWScAMsHt2SJKQ>