From owner-freebsd-net@FreeBSD.ORG Wed Aug 17 01:39:58 2011 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 70DE1106564A for ; Wed, 17 Aug 2011 01:39:58 +0000 (UTC) (envelope-from ask@develooper.com) Received: from mbox1.develooper.com (mbox1.develooper.com [207.171.7.178]) by mx1.freebsd.org (Postfix) with ESMTP id 4FD658FC0A for ; Wed, 17 Aug 2011 01:39:57 +0000 (UTC) Received: (qmail 19675 invoked from network); 17 Aug 2011 01:39:56 -0000 Received: from cpe-75-83-150-233.socal.res.rr.com (HELO embla.bn.dev) (ask@mail.dev@75.83.150.233) by smtp.develooper.com with ESMTPA; 17 Aug 2011 01:39:56 -0000 Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: multipart/signed; boundary="Apple-Mail=_140B9BF8-B4BD-4805-BE70-86861A12BE72"; protocol="application/pkcs7-signature"; micalg=sha1 From: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= In-Reply-To: <20110817002911.GA7614@michelle.cdnetworks.com> Date: Tue, 16 Aug 2011 18:39:51 -0700 Message-Id: References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> <20110817002911.GA7614@michelle.cdnetworks.com> To: pyunyh@gmail.com X-Mailer: Apple Mail (2.1244.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: net@freebsd.org, embedded@freebsd.org, Mike Tancsa Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 01:39:58 -0000 --Apple-Mail=_140B9BF8-B4BD-4805-BE70-86861A12BE72 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Aug 16, 2011, at 17:29, YongHyeon PYUN wrote: Hi -- thank you for asking. It's frustrating to have such an obscure = and unlikely problem and I apologies for taking your time with it! > Could you show me full dmesg and ifconfig output? Included below from a happy system. I setup some scripts to monitor those things every second and print out = diffs on the console and will post again next time it = hangs/crashes/whatever is happening with any data. > It would also be interesting to know whether vr(4) spewed some logs. Where would they have gone? I didn't see anything in messages (via = syslog) or dmesg earlier, for what it's worth. > How many PPS or interrupts do you see from vr interface under high > network load? Honestly I'm not sure. I only know how to see the interrupt busy = percentage from top =85 Is there a cheap way to get those numbers? = If so then I'll log them every second or two and see if it catches = anything. - ask gw-b.dev# ifconfig -a vr0: flags=3D8943 metric = 0 mtu 1500 = options=3D8280b ether 00:0d:b9:1a:18:7c inet 207.171.2.196 netmask 0xfffffff8 broadcast 207.171.2.199 inet6 fe80::20d:b9ff:fe1a:187c%vr0 prefixlen 64 scopeid 0x1=20 inet6 2607:f238:0:11::4 prefixlen 125=20 nd6 options=3D3 media: Ethernet autoselect (100baseTX ) status: active vr1: flags=3D8943 metric = 0 mtu 1500 = options=3D8280b ether 00:0d:b9:1a:18:7d inet 207.171.7.3 netmask 0xffffff00 broadcast 207.171.7.255 inet6 fe80::20d:b9ff:fe1a:187d%vr1 prefixlen 64 scopeid 0x2=20 inet6 2607:f238:3::3 prefixlen 64=20 nd6 options=3D3 media: Ethernet autoselect (100baseTX ) status: active vr2: flags=3D8943 metric = 0 mtu 1500 = options=3D8280b ether 00:0d:b9:1a:18:7e inet6 fe80::20d:b9ff:fe1a:187e%vr2 prefixlen 64 scopeid 0x3=20 nd6 options=3D3 media: Ethernet autoselect (100baseTX ) status: active ipfw0: flags=3D8801 metric 0 mtu 65536 lo0: flags=3D8049 metric 0 mtu 16384 options=3D3 inet 127.0.0.1 netmask 0xff000000=20 inet6 ::1 prefixlen 128=20 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5=20 nd6 options=3D3 pfsync0: flags=3D41 metric 0 mtu 1460 pfsync: syncdev: vlan1 syncpeer: 224.0.0.240 maxupd: 128 pflog0: flags=3D41 metric 0 mtu 33200 enc0: flags=3D41 metric 0 mtu 1536 vlan1: flags=3D8843 metric 0 mtu = 1500 ether 00:0d:b9:1a:18:7e inet 10.77.73.2 netmask 0xfffffff8 broadcast 10.77.73.7 inet6 fe80::20d:b9ff:fe1a:187c%vlan1 prefixlen 64 scopeid 0x9=20 nd6 options=3D3 media: Ethernet autoselect (100baseTX ) status: active vlan: 103 parent interface: vr2 vlan2: flags=3D8943 = metric 0 mtu 1500 ether 00:0d:b9:1a:18:7e inet 10.0.100.3 netmask 0xffffff00 broadcast 10.0.100.255 inet6 fe80::20d:b9ff:fe1a:187c%vlan2 prefixlen 64 scopeid 0xa=20 nd6 options=3D3 media: Ethernet autoselect (100baseTX ) status: active vlan: 102 parent interface: vr2 vlan3: flags=3D8003 metric 0 mtu 1500 ether 00:00:00:00:00:00 inet6 fe80::20d:b9ff:fe1a:187c%vlan3 prefixlen 64 scopeid 0xb=20 nd6 options=3D3 vlan: 0 parent interface: carp0: flags=3D49 metric 0 mtu 1500 inet6 2607:f238:0:11::2 prefixlen 125=20 inet 207.171.2.194 netmask 0xfffffff8=20 nd6 options=3D3 carp: MASTER vhid 110 advbase 1 advskew 90 carp1: flags=3D49 metric 0 mtu 1500 inet6 2607:f238:3::1 prefixlen 64=20 inet 207.171.7.1 netmask 0xffffff00=20 nd6 options=3D3 carp: MASTER vhid 111 advbase 1 advskew 90 carp2: flags=3D49 metric 0 mtu 1500 inet 10.0.100.1 netmask 0xffffff00=20 carp: MASTER vhid 112 advbase 1 advskew 90 carp3: flags=3D9 metric 0 mtu 1500 carp4: flags=3D49 metric 0 mtu 1500 inet 10.0.100.254 netmask 0xffffff00=20 carp: MASTER vhid 114 advbase 1 advskew 90 carp60: flags=3D9 metric 0 mtu 1500 carp61: flags=3D9 metric 0 mtu 1500 carp63: flags=3D9 metric 0 mtu 1500 gw-b.dev# dmesg Copyright (c) 1992-2011 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights = reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.2-RELEASE-p2 #1: Sun Aug 14 02:06:11 PDT 2011 = root@fbsd8-32.la.sol:/usr/obj/nanobsd.grundwall/usr/src/sys/GRUNDCLOCK = i386 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Geode(TM) Integrated Processor by AMD PCS (498.05-MHz 586-class = CPU) Origin =3D "AuthenticAMD" Id =3D 0x5a2 Family =3D 5 Model =3D a = Stepping =3D 2 Features=3D0x88a93d AMD Features=3D0xc0400000 real memory =3D 268435456 (256 MB) avail memory =3D 249028608 (237 MB) pnpbios: Bad PnP BIOS data checksum K6-family MTRR support enabled (2 registers) ACPI Error: A valid RSDP was not found (20101013/tbxfroot-309) ACPI: Table initialisation failed: AE_NOT_FOUND ACPI: Try disabling either ACPI or apic support. cryptosoft0: on motherboard pcib0: pcibus 0 on motherboard pci0: on pcib0 Geode LX: PC Engines ALIX.2 v0.99h tinyBIOS V1.4a (C)1997-2007 glxsb0: mem = 0xefff4000-0xefff7fff irq 9 at device 1.2 on pci0 vr0: port 0x1000-0x10ff mem = 0xe0000000-0xe00000ff irq 10 at device 9.0 on pci0 vr0: Quirks: 0x2 vr0: Revision: 0x96 miibus0: on vr0 ukphy0: PHY 1 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr0: Ethernet address: 00:0d:b9:1a:18:7c vr0: [ITHREAD] vr1: port 0x1400-0x14ff mem = 0xe0040000-0xe00400ff irq 11 at device 10.0 on pci0 vr1: Quirks: 0x2 vr1: Revision: 0x96 miibus1: on vr1 ukphy1: PHY 1 on miibus1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr1: Ethernet address: 00:0d:b9:1a:18:7d vr1: [ITHREAD] vr2: port 0x1800-0x18ff mem = 0xe0080000-0xe00800ff irq 15 at device 11.0 on pci0 vr2: Quirks: 0x2 vr2: Revision: 0x96 miibus2: on vr2 ukphy2: PHY 1 on miibus2 ukphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto vr2: Ethernet address: 00:0d:b9:1a:18:7e vr2: [ITHREAD] isab0: port = 0x6000-0x6007,0x6100-0x61ff,0x6200-0x623f,0x9d00-0x9d7f,0x9c00-0x9c3f at = device 15.0 on pci0 isa0: on isab0 atapci0: port = 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 15.2 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] ohci0: mem 0xefffe000-0xefffefff irq 12 = at device 15.4 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ehci0: mem 0xefffd000-0xefffdfff = irq 12 at device 15.5 on pci0 ehci0: [ITHREAD] usbus1: EHCI version 1.0 usbus1: on ehci0 cpu0 on motherboard orm0: at iomem 0xe0000-0xea7ff pnpid ORM0000 on isa0 uart0: <16550 or compatible> at port 0x3f8-0x3ff irq 4 flags 0x10 on = isa0 uart0: [FILTER] uart0: console (9600,n,8,1) uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0 uart1: [FILTER] atrtc0: at port 0x70 irq 8 on isa0 Timecounter "TSC" frequency 498053428 Hz quality 800 Timecounters tick every 1.000 msec IPsec: Initialized Security Association Processing. ipfw2 (+ipv6) initialized, divert enabled, nat loadable, rule-based = forwarding enabled, default to accept, logging disabled load_dn_sched dn_sched FIFO loaded load_dn_sched dn_sched PRIO loaded load_dn_sched dn_sched QFQ loaded load_dn_sched dn_sched RR loaded load_dn_sched dn_sched WF2Q+ loaded usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 ad0: 245MB at ata0-master PIO4=20 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 Root mount waiting for: usbus1 usbus0 uhub0: 4 ports with 4 removable, self powered Root mount waiting for: usbus1 uhub1: 4 ports with 4 removable, self powered Trying to mount root from ufs:/dev/ad0s1a carp0: link state changed to DOWN carp0: INIT -> MASTER (preempting) carp0: link state changed to UP carp1: link state changed to DOWN carp1: INIT -> MASTER (preempting) carp1: link state changed to UP carp2: link state changed to DOWN carp2: INIT -> MASTER (preempting) carp2: link state changed to UP carp4: link state changed to DOWN carp4: INIT -> MASTER (preempting) carp4: link state changed to UP --=20 http://develooper.com/ - http://askask.com/ --Apple-Mail=_140B9BF8-B4BD-4805-BE70-86861A12BE72--