From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 15 07:01:59 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8675106566C for ; Mon, 15 Aug 2011 07:01:59 +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 A865C8FC0C for ; Mon, 15 Aug 2011 07:01:59 +0000 (UTC) Received: (qmail 6787 invoked from network); 15 Aug 2011 06:35:18 -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; 15 Aug 2011 06:35:18 -0000 Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: multipart/signed; boundary="Apple-Mail=_F41316D9-9EAF-4049-B943-82F91E01AB1F"; protocol="application/pkcs7-signature"; micalg=sha1 From: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= In-Reply-To: <81D83998-D920-4A69-ACF8-519527D3BC7F@FreeBSD.org> Date: Sun, 14 Aug 2011 23:35:16 -0700 Message-Id: References: <81D83998-D920-4A69-ACF8-519527D3BC7F@FreeBSD.org> To: Henrik Brix Andersen X-Mailer: Apple Mail (2.1244.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-embedded@freebsd.org Subject: Re: Problem with NanoBSD And Alix Board not device boot X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 07:01:59 -0000 --Apple-Mail=_F41316D9-9EAF-4049-B943-82F91E01AB1F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Jun 5, 2011, at 10:10, Henrik Brix Andersen wrote: >> nopacket mode is the hardest of all modes to use. Your CF's reported = geometry *MUST* be encoded properly in the nano config file. This isn't = the geometry that the CF card reader reports, but what the CF card = reports in true IDE mode. This will vary from card to card (even cards = with exactly the same label). Unless your boot loader doesn't support = packet mode properly, I'd strongly urge you to use packet mode. >=20 > Last time I checked, the TinyBIOS used in the Alix boards does not = support packet mode properly (but according to = http://blog.brixandersen.dk/?p=3D94 this was 3 years ago, I'll try to = find time to retest against a newer version of TinyBIOS). One of the 0.99x firmware updates fixed that I believe (sometime in 2007 = or 2008). (I use packet mode on Alix boards for what it's worth). - ask --=20 http://develooper.com/ - http://askask.com/ --Apple-Mail=_F41316D9-9EAF-4049-B943-82F91E01AB1F-- From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 15 11:06:59 2011 Return-Path: Delivered-To: freebsd-embedded@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 954D51065674 for ; Mon, 15 Aug 2011 11:06:59 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 83F528FC1D for ; Mon, 15 Aug 2011 11:06:59 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p7FB6xhV014691 for ; Mon, 15 Aug 2011 11:06:59 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p7FB6wD1014689 for freebsd-embedded@FreeBSD.org; Mon, 15 Aug 2011 11:06:58 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 15 Aug 2011 11:06:58 GMT Message-Id: <201108151106.p7FB6wD1014689@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-embedded@FreeBSD.org X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 11:06:59 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o misc/52256 embedded [picobsd] picobsd build script does not read in user/s o kern/42728 embedded [picobsd] many problems in src/usr.sbin/ppp/* after c 2 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 15 14:16:59 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6385E1065672; Mon, 15 Aug 2011 14:16:59 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0434E8FC2C; Mon, 15 Aug 2011 14:16:58 +0000 (UTC) Received: by vxh11 with SMTP id 11so5135333vxh.13 for ; Mon, 15 Aug 2011 07:16:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=osa4NE4avLgtsXH8ECINWGykcxVEBBEnyGHlmU9CE9M=; b=pRexNSjINJ+YvXeZj1DtAsRR6sUhCwro/fmIRvyTL6cUxPBs5nuEJcjs1HyQAnt/rO Q5MFM5KkHbS/m8qYetsl062RqHgLFzfiXl/XM/qqER7rART+Djwrfork+9+xUd/ELtde JQj7YDM+mcYc5dfNeK5pxoQyF0+8WpMTcFmZc= MIME-Version: 1.0 Received: by 10.52.111.72 with SMTP id ig8mr3735153vdb.38.1313416427002; Mon, 15 Aug 2011 06:53:47 -0700 (PDT) Received: by 10.52.183.39 with HTTP; Mon, 15 Aug 2011 06:53:46 -0700 (PDT) In-Reply-To: References: <81D83998-D920-4A69-ACF8-519527D3BC7F@FreeBSD.org> Date: Mon, 15 Aug 2011 08:53:46 -0500 Message-ID: From: Espartano To: =?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-embedded@freebsd.org Subject: Re: Problem with NanoBSD And Alix Board not device boot X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 14:16:59 -0000 On Mon, Aug 15, 2011 at 1:35 AM, Ask Bj=F8rn Hansen wr= ote: > > On Jun 5, 2011, at 10:10, Henrik Brix Andersen wrote: > >>> nopacket mode is the hardest of all modes to use. =A0Your CF's reported= geometry *MUST* be encoded properly in the nano config file. =A0This isn't= the geometry that the CF card reader reports, but what the CF card reports= in true IDE mode. =A0This will vary from card to card (even cards with exa= ctly the same label). Unless your boot loader doesn't support packet mode p= roperly, I'd strongly urge you to use packet mode. >> >> Last time I checked, the TinyBIOS used in the Alix boards does not suppo= rt packet mode properly (but according to http://blog.brixandersen.dk/?p=3D= 94 this was 3 years ago, I'll try to find time to retest against a newer ve= rsion of TinyBIOS). > > One of the 0.99x firmware updates fixed that I believe (sometime in 2007 = or 2008). =A0 (I use packet mode on Alix boards for what it's worth). > > > =A0- ask > Thanks for the answer, my problem was with the CF writer, it had one pin cuted and that caused a bad written nanobsd image and not boot. From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 15 14:40:34 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72EDB106566C for ; Mon, 15 Aug 2011 14:40:34 +0000 (UTC) (envelope-from huubsch@xs4all.nl) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by mx1.freebsd.org (Postfix) with ESMTP id 05AF58FC19 for ; Mon, 15 Aug 2011 14:40:33 +0000 (UTC) Received: from huubsmc.fritz.box (huubs.xs4all.nl [83.160.119.88]) (authenticated bits=0) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id p7FEOYKj083011 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 15 Aug 2011 16:24:34 +0200 (CEST) (envelope-from huubsch@xs4all.nl) Message-ID: <4E492C22.4040301@xs4all.nl> Date: Mon, 15 Aug 2011 16:24:34 +0200 From: Huub Schuurmans User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: freebsd-embedded@freebsd.org References: <81D83998-D920-4A69-ACF8-519527D3BC7F@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: Problem with NanoBSD And Alix Board not device boot X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 14:40:34 -0000 Op 8/15/11 3:53 PM, Espartano schreef: .. > > Thanks for the answer, my problem was with the CF writer, it had one > pin cuted and that caused a bad written nanobsd image and not boot. FYI check written images by mounting them, as described here: http://www.wirelessleiden.nl/projects/nodefactory/wiki/NanoBSD Huub From owner-freebsd-embedded@FreeBSD.ORG Mon Aug 15 15:28:12 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 492A41065678 for ; Mon, 15 Aug 2011 15:28:12 +0000 (UTC) (envelope-from espartano.mail@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 002E08FC16 for ; Mon, 15 Aug 2011 15:28:11 +0000 (UTC) Received: by vws18 with SMTP id 18so5260724vws.13 for ; Mon, 15 Aug 2011 08:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=KWA8lOm7eyb42u8GVfgBjkbKNfAwEwzFY0AgGs6QB0A=; b=cd7Uuc9d52xuHZQj0xBfON75oKwZqFVOD0K9/rzXp7qZvrQ+X9swWVW1reRQ8EgrWc awdu6+7z7FXOMZrJ8EuCPkQlnSrbnxWoQe7Ziq7kCPLjdQGDKqnO8MQ/cP3NP6Ndntp7 +jdPi4S/IOnj+XkKLefnuzKSwQXLP3vsXvTTk= MIME-Version: 1.0 Received: by 10.52.94.136 with SMTP id dc8mr3746349vdb.373.1313422091030; Mon, 15 Aug 2011 08:28:11 -0700 (PDT) Received: by 10.52.183.39 with HTTP; Mon, 15 Aug 2011 08:28:11 -0700 (PDT) In-Reply-To: <4E492C22.4040301@xs4all.nl> References: <81D83998-D920-4A69-ACF8-519527D3BC7F@FreeBSD.org> <4E492C22.4040301@xs4all.nl> Date: Mon, 15 Aug 2011 10:28:11 -0500 Message-ID: From: Espartano To: Huub Schuurmans Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-embedded@freebsd.org Subject: Re: Problem with NanoBSD And Alix Board not device boot X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Aug 2011 15:28:12 -0000 On Mon, Aug 15, 2011 at 9:24 AM, Huub Schuurmans wrote: > Op 8/15/11 3:53 PM, Espartano schreef: > .. >> >> Thanks for the answer, my problem was with the CF writer, it had one >> pin cuted and that caused a bad written nanobsd image and not boot. > > > FYI > check written images by mounting them, as described here: > http://www.wirelessleiden.nl/projects/nodefactory/wiki/NanoBSD > > Huub I did it, even more I changed the file /etc/rc.conf to enable an ip to could do ssh after boot. the image looked normal but it never booted and I notice CF problem by causality, after change the CF writter the image booted without problems. From owner-freebsd-embedded@FreeBSD.ORG Tue Aug 16 18:07:53 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C29991065670 for ; Tue, 16 Aug 2011 18:07:53 +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 A2F0F8FC1E for ; Tue, 16 Aug 2011 18:07:53 +0000 (UTC) Received: (qmail 25484 invoked from network); 16 Aug 2011 17:41:11 -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; 16 Aug 2011 17:41:11 -0000 From: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= Content-Type: multipart/signed; boundary="Apple-Mail=_7DE512B5-2629-412F-8C0F-4B569DE9952C"; protocol="application/pkcs7-signature"; micalg=sha1 Date: Tue, 16 Aug 2011 10:41:06 -0700 Message-Id: To: embedded@freebsd.org, net@freebsd.org Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 18:07:53 -0000 --Apple-Mail=_7DE512B5-2629-412F-8C0F-4B569DE9952C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi everyone, Over the weekend I upgraded a couple of NanoBSD based systems (on PC = Engines Alix boards) from 7.4 to 8.2. The box is a small firewall and = have been running stable for several years. Since then the busy systems consistently lock up. I had a 'top -bS = -s1' running and it stopped a couple hours before the system locked up = after showing basically 100% interrupts for a few minutes. (Divided = ~50/50 between the two "vr" interfaces that gets most of the traffic). = Another terminal tailing /var/log/messages kept running for another hour = or so.=20 An hour or two after the log stopped showing; the system stopped routing = packets, but frustratingly kept sending CARP messages out so the = secondary firewall didn't pick up the IP addresses to take over. Any ideas? - ask --=20 http://develooper.com/ - http://askask.com/ --Apple-Mail=_7DE512B5-2629-412F-8C0F-4B569DE9952C-- From owner-freebsd-embedded@FreeBSD.ORG Tue Aug 16 18:15:30 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 454A41065675; Tue, 16 Aug 2011 18:15:30 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id 093DE8FC1C; Tue, 16 Aug 2011 18:15:29 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p7GIFJAi062395; Tue, 16 Aug 2011 14:15:19 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4E4AB3BE.4090603@sentex.net> Date: Tue, 16 Aug 2011 14:15:26 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?= References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.71 on IPv6:2607:f3e0:0:1::12 Cc: embedded@freebsd.org, net@freebsd.org Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 18:15:30 -0000 On 8/16/2011 1:41 PM, Ask Bjørn Hansen wrote: > Hi everyone, > > Over the weekend I upgraded a couple of NanoBSD based systems (on PC Engines Alix boards) from 7.4 to 8.2. The box is a small firewall and have been running stable for several years. > > Since then the busy systems consistently lock up. I had a 'top -bS -s1' running and it stopped a couple hours before the system locked up after showing basically 100% interrupts for a few minutes. (Divided ~50/50 between the two "vr" interfaces that gets most of the traffic). Another terminal tailing /var/log/messages kept running for another hour or so. > > An hour or two after the log stopped showing; the system stopped routing packets, but frustratingly kept sending CARP messages out so the secondary firewall didn't pick up the IP addresses to take over. > > Any ideas? Not sure if CARP has something to do with it as I have quite a few RELENG_8 boxes out there running on Alix boxes (2 and 3 port as well as Soekris 5501s). But I think the 7.4 and 8.2 drivers for vr are essentially the same. That being said, there are some updates in RELENG_8 to the driver. Not sure if that makes any difference to your issue. http://svnweb.freebsd.org/base?view=revision&revision=223681 MFC r223405: Remove link state change callback handler. There is no need to register both status change and link state change callbacks. Implement checking valid link in state change callback and poll active link state in vr_tick(). This allows immediate detection of lost link as well as protecting driver from frequent link flips during link renegotiation. taskq implementation was removed because driver now needs to poll link state in vr_tick(). While I'm here do not report current link state if interface is not running. > > > - ask > -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-embedded@FreeBSD.ORG Tue Aug 16 18:16:12 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4499B10656D1 for ; Tue, 16 Aug 2011 18:16:12 +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 294DE8FC23 for ; Tue, 16 Aug 2011 18:16:12 +0000 (UTC) Received: (qmail 768 invoked from network); 16 Aug 2011 18:16:11 -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; 16 Aug 2011 18:16:11 -0000 From: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= Content-Type: multipart/signed; boundary="Apple-Mail=_ECFFEA75-CD52-42F2-91D7-B85615B517C7"; protocol="application/pkcs7-signature"; micalg=sha1 Date: Tue, 16 Aug 2011 11:16:05 -0700 Message-Id: <4874688C-7D3D-428D-B654-C500A4F61DA2@develooper.com> To: embedded@freebsd.org Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: "gpart set -a active" not changing boot loader X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2011 18:16:12 -0000 --Apple-Mail=_ECFFEA75-CD52-42F2-91D7-B85615B517C7 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi, I run # gpart set -a active -i 2 ad0 active set on ad0s2 `gpart show` confirms that it was done. However, when booting I get: 1 FreeBSD 2 FreeBSD Default: 1=20 (and it boots the first partition) =85 and `gpart show` now shows the first partition as the active one. Is my boot loader too old or some such? This is a NanoBSD system that = might have been upgraded since some 6.x version. - ask --=20 http://develooper.com/ - http://askask.com/ --Apple-Mail=_ECFFEA75-CD52-42F2-91D7-B85615B517C7-- From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 00:15:08 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E24241065672 for ; Wed, 17 Aug 2011 00:15:08 +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 1A7B68FC1D for ; Wed, 17 Aug 2011 00:15:05 +0000 (UTC) Received: (qmail 867 invoked from network); 17 Aug 2011 00:15:04 -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 00:15:04 -0000 Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: multipart/signed; boundary="Apple-Mail=_03AF8E95-0643-40C5-9041-A4F3FC5C62D2"; protocol="application/pkcs7-signature"; micalg=sha1 From: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= In-Reply-To: <4E4AB3BE.4090603@sentex.net> Date: Tue, 16 Aug 2011 17:14:59 -0700 Message-Id: <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> References: <4E4AB3BE.4090603@sentex.net> To: Mike Tancsa X-Mailer: Apple Mail (2.1244.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: embedded@freebsd.org, net@freebsd.org Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 00:15:09 -0000 --Apple-Mail=_03AF8E95-0643-40C5-9041-A4F3FC5C62D2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On Aug 16, 2011, at 11:15, Mike Tancsa wrote: >> An hour or two after the log stopped showing; the system stopped = routing packets, but frustratingly kept sending CARP messages out so the = secondary firewall didn't pick up the IP addresses to take over. >>=20 >> Any ideas? >=20 > Not sure if CARP has something to do with it as I have quite a few > RELENG_8 boxes out there running on Alix boxes (2 and 3 port as well = as > Soekris 5501s). Yeah, there must be thousands! > But I think the 7.4 and 8.2 drivers for vr are essentially the same. = That being said, there are some updates in RELENG_8 to the driver. Not = sure if that makes any difference to your issue. >=20 > http://svnweb.freebsd.org/base?view=3Drevision&revision=3D223681 Yeah - none of that looks relevant. Indeed I'm not even sure that it = has anything to do with the vr driver -- that's just the only potential = symptom that I could find. I've stripped down those boxes so they = really don't do anything more than routing (from vr interfaces) and = firewall (with pf). The only daemons running (other than getty and = sshd) are ntpd and radvd. One of them just imploded in this way again (and it's a new board, so = I'm pretty sure it's not a hardware problem). I now disabled OpenVPN = (it was idle already), an unnecessary VLAN and made the configuration as = simple as it can be and still work -- I am including it in full (with = un-obfuscated IP addresses to make sure I don't hide any potential = problem). Some years ago I recall trouble running carp on vlan interfaces. Is it = possible that's back in some way? - ask --=20 http://develooper.com/ - http://askask.com/ sshd_enable=3D"YES" ntpd_enable=3D"YES" ntpd_flags=3D"-p /var/run/ntpd.pid -f /etc/ntp/ntpd.drift -g" hostname=3D"gw-b.dev" ipv6_enable=3D"YES" radvd_enable=3D"YES" ifconfig_vr0=3D"inet 207.171.2.196/29" ipv6_ifconfig_vr0=3D"2607:F238:0:11::4/125" ifconfig_vr1=3D"inet 207.171.7.3/24" ipv6_ifconfig_vr1=3D"2607:f238:3::3/64" ifconfig_vr2=3D"up" ifconfig_lo0_alias1=3D"inet 127.0.0.3" ifconfig_vlan1=3D"inet 10.77.73.2/29 vlan 103 vlandev vr2" ifconfig_vlan2=3D"inet 10.0.100.3/24 vlan 102 vlandev vr2" ifconfig_carp0=3D"vhid 110 advskew 120 pass aherjkhfare = 207.171.2.194/29" ifconfig_carp1=3D"vhid 111 advskew 120 pass j798gyuhjks 207.171.7.1/24" ifconfig_carp2=3D"vhid 112 advskew 120 pass 5783jkdfssd 10.0.100.1/24" ifconfig_carp4=3D"vhid 114 advskew 120 pass ketrjhstres 10.0.100.254/24" ipv6_ifconfig_carp0=3D"2607:F238:0:11::2/125" ipv6_ifconfig_carp1=3D"2607:F238:3::1/64" defaultrouter=3D"207.171.2.193" ipv6_defaultrouter=3D"2607:F238:0:11::1" pfsync_enable=3D"YES" pfsync_syncdev=3D"vlan1" cloned_interfaces=3D"vlan1 vlan2 vlan3 carp0 carp1 carp2 carp3 carp4 = carp60 carp61 carp63" gateway_enable=3D"YES" ipv6_gateway_enable=3D"YES" pf_enable=3D"YES" pflog_enable=3D"NO" --Apple-Mail=_03AF8E95-0643-40C5-9041-A4F3FC5C62D2-- From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 00:55:17 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B5EE106566C; Wed, 17 Aug 2011 00:55:17 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by mx1.freebsd.org (Postfix) with ESMTP id 13FE08FC08; Wed, 17 Aug 2011 00:55:16 +0000 (UTC) Received: by iye7 with SMTP id 7so1361377iye.17 for ; Tue, 16 Aug 2011 17:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=Y6y+c9sv+70JvXC0ZhbgHymmueAVPbsycKs+gxWE+bg=; b=cJNbz5182HNJglYtp25iuFkigiVKFUYrAFnbgELgEev2bRPyzZI4vM8zV1+ktsosWS 6/nBRxu37IH2N6T1udnGBINbjKX0lbTXbOco6C06SD1vIlq2mlYAbl0Cz6ho5FQExD5i U5Y1CPNcjSVSxXYX+PGjJXtF/27Taqx4//QHs= Received: by 10.231.4.72 with SMTP id 8mr760669ibq.49.1313540957101; Tue, 16 Aug 2011 17:29:17 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id v16sm165598ibe.34.2011.08.16.17.29.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 16 Aug 2011 17:29:15 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Tue, 16 Aug 2011 17:29:11 -0700 From: YongHyeon PYUN Date: Tue, 16 Aug 2011 17:29:11 -0700 To: Ask =?iso-8859-1?Q?Bj=F8rn?= Hansen Message-ID: <20110817002911.GA7614@michelle.cdnetworks.com> References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> User-Agent: Mutt/1.4.2.3i Cc: net@freebsd.org, embedded@freebsd.org Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 00:55:17 -0000 On Tue, Aug 16, 2011 at 05:14:59PM -0700, Ask Bj??rn Hansen wrote: > > On Aug 16, 2011, at 11:15, Mike Tancsa wrote: > > >> An hour or two after the log stopped showing; the system stopped routing packets, but frustratingly kept sending CARP messages out so the secondary firewall didn't pick up the IP addresses to take over. > >> > >> Any ideas? > > > > Not sure if CARP has something to do with it as I have quite a few > > RELENG_8 boxes out there running on Alix boxes (2 and 3 port as well as > > Soekris 5501s). > > Yeah, there must be thousands! > > > But I think the 7.4 and 8.2 drivers for vr are essentially the same. That being said, there are some updates in RELENG_8 to the driver. Not sure if that makes any difference to your issue. > > > > http://svnweb.freebsd.org/base?view=revision&revision=223681 > > Yeah - none of that looks relevant. Indeed I'm not even sure that it has anything to do with the vr driver -- that's just the only potential symptom that I could find. I've stripped down those boxes so they really don't do anything more than routing (from vr interfaces) and firewall (with pf). The only daemons running (other than getty and sshd) are ntpd and radvd. > Could you show me full dmesg and ifconfig output? It would also be interesting to know whether vr(4) spewed some logs. How many PPS or interrupts do you see from vr interface under high network load? > One of them just imploded in this way again (and it's a new board, so I'm pretty sure it's not a hardware problem). I now disabled OpenVPN (it was idle already), an unnecessary VLAN and made the configuration as simple as it can be and still work -- I am including it in full (with un-obfuscated IP addresses to make sure I don't hide any potential problem). > > Some years ago I recall trouble running carp on vlan interfaces. Is it possible that's back in some way? > > > - ask > > -- > http://develooper.com/ - http://askask.com/ > > > sshd_enable="YES" > ntpd_enable="YES" > ntpd_flags="-p /var/run/ntpd.pid -f /etc/ntp/ntpd.drift -g" > > hostname="gw-b.dev" > ipv6_enable="YES" > radvd_enable="YES" > > ifconfig_vr0="inet 207.171.2.196/29" > ipv6_ifconfig_vr0="2607:F238:0:11::4/125" > ifconfig_vr1="inet 207.171.7.3/24" > ipv6_ifconfig_vr1="2607:f238:3::3/64" > > ifconfig_vr2="up" > ifconfig_lo0_alias1="inet 127.0.0.3" > > ifconfig_vlan1="inet 10.77.73.2/29 vlan 103 vlandev vr2" > ifconfig_vlan2="inet 10.0.100.3/24 vlan 102 vlandev vr2" > > ifconfig_carp0="vhid 110 advskew 120 pass aherjkhfare 207.171.2.194/29" > ifconfig_carp1="vhid 111 advskew 120 pass j798gyuhjks 207.171.7.1/24" > ifconfig_carp2="vhid 112 advskew 120 pass 5783jkdfssd 10.0.100.1/24" > ifconfig_carp4="vhid 114 advskew 120 pass ketrjhstres 10.0.100.254/24" > > ipv6_ifconfig_carp0="2607:F238:0:11::2/125" > ipv6_ifconfig_carp1="2607:F238:3::1/64" > > defaultrouter="207.171.2.193" > ipv6_defaultrouter="2607:F238:0:11::1" > > pfsync_enable="YES" > pfsync_syncdev="vlan1" > > cloned_interfaces="vlan1 vlan2 vlan3 carp0 carp1 carp2 carp3 carp4 carp60 carp61 carp63" > > gateway_enable="YES" > ipv6_gateway_enable="YES" > > pf_enable="YES" > pflog_enable="NO" > From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 01:39:58 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91407106566B 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 702158FC0C 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 Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems 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-- From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 03:54:30 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E735B1065688 for ; Wed, 17 Aug 2011 03:54:30 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id 724C38FC1B for ; Wed, 17 Aug 2011 03:54:30 +0000 (UTC) Received: from julian-mac.elischer.org (home-nat.elischer.org [67.100.89.137]) (authenticated bits=0) by vps1.elischer.org (8.14.4/8.14.4) with ESMTP id p7H3Fj4w066830 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 16 Aug 2011 20:15:47 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <4E4B3267.8050707@freebsd.org> Date: Tue, 16 Aug 2011 20:15:51 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Ask_Bj=F8rn_Hansen?= References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> In-Reply-To: <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: net@freebsd.org, embedded@freebsd.org Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 03:54:31 -0000 On 8/16/11 5:14 PM, Ask Bjørn Hansen wrote: from your description it doesn't sound like a vr problem. I suggest you hook up teh serial console (I am guessing you already have) and set the config options to allow break-to-debugger or alt-break-to-debugger on it when it happens next, drop into the debugger.. in fact, drop in, and do a ps to see what processes are runnable, 'tr [pid] (or thread id)' to get a stack trace of anything that looks interesting, and then cont and do it again a few times to get a feel for where the processor is hanging out (a straight 'tr' will give you the interrupt of the com port which is not intresting..) > From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 08:08:32 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F492106566B for ; Wed, 17 Aug 2011 08:08:32 +0000 (UTC) (envelope-from uffe@uffe.org) Received: from mail.starion.dk (mx0.starion.dk [93.162.70.34]) by mx1.freebsd.org (Postfix) with SMTP id 5C0E68FC15 for ; Wed, 17 Aug 2011 08:08:30 +0000 (UTC) Received: (qmail 56602 invoked by uid 1004); 17 Aug 2011 07:41:53 -0000 Message-ID: <4E4B6E39.6030008@uffe.org> Date: Wed, 17 Aug 2011 09:31:05 +0200 From: Uffe Jakobsen X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; DSN=0; uuencode=0 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.11 MIME-Version: 1.0 To: embedded@freebsd.org References: <4874688C-7D3D-428D-B654-C500A4F61DA2@develooper.com> In-Reply-To: <4874688C-7D3D-428D-B654-C500A4F61DA2@develooper.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: Re: "gpart set -a active" not changing boot loader X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 08:08:32 -0000 On 2011-08-16 20:16, Ask Bjørn Hansen wrote: > > # gpart set -a active -i 2 ad0 > active set on ad0s2 > > `gpart show` confirms that it was done. > > However, when booting I get: > > 1 FreeBSD > 2 FreeBSD > > Default: 1 > > … and `gpart show` now shows the first partition as the active one. > > Is my boot loader too old or some such? This is a NanoBSD system that might have been upgraded since some 6.x version. > boot0 setting and the active partition mark in the partition table is having the usual disagreements... I've never come around to get the completely picture of the problem - but see the problem it quite ofent. Display boot0 settings: boot0cfg -v /dev/ad0 Update boot0 settings to reflect your gpart wish: boot0cfg -v -s 2 /dev/ad0 /Uffe From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 08:33:42 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E29CD106564A; Wed, 17 Aug 2011 08:33:42 +0000 (UTC) (envelope-from andrew@ugh.net.au) Received: from starbug.ugh.net.au (starbug.ugh.net.au [202.3.36.37]) by mx1.freebsd.org (Postfix) with ESMTP id 63F1B8FC19; Wed, 17 Aug 2011 08:33:42 +0000 (UTC) Received: from dayo.lan (87-194-128-97.bethere.co.uk [87.194.128.97]) by starbug.ugh.net.au (Postfix) with ESMTPSA id 29F2D386C46; Wed, 17 Aug 2011 19:04:55 +1000 (EST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=windows-1252 From: Andrew Stevenson In-Reply-To: Date: Wed, 17 Aug 2011 09:15:34 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> <20110817002911.GA7614@michelle.cdnetworks.com> To: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= X-Mailer: Apple Mail (2.1084) Cc: pyunyh@gmail.com, embedded@freebsd.org, net@freebsd.org Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 08:33:43 -0000 On 17 Aug 2011, at 02:39, Ask Bj=F8rn Hansen wrote: >> How many PPS or interrupts do you see from vr interface under high >> network load? >=20 > 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. "systat -vmstat" shows interrupts per second per device. Some use of awk = or sed may be required. HTH, Andrew From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 12:53:35 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BF60106566B; Wed, 17 Aug 2011 12:53:35 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (mail.in-addr.com [IPv6:2001:470:8:162::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3BD7A8FC08; Wed, 17 Aug 2011 12:53:35 +0000 (UTC) Received: from gjp by noop.in-addr.com with local (Exim 4.76 (FreeBSD)) (envelope-from ) id 1Qtfci-000JUJ-Jw; Wed, 17 Aug 2011 08:53:32 -0400 Date: Wed, 17 Aug 2011 08:53:32 -0400 From: Gary Palmer To: Andrew Stevenson Message-ID: <20110817125332.GD88904@in-addr.com> References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> <20110817002911.GA7614@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on noop.in-addr.com); SAEximRunCond expanded to false Cc: pyunyh@gmail.com, embedded@freebsd.org, net@freebsd.org Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 12:53:35 -0000 On Wed, Aug 17, 2011 at 09:15:34AM +0100, Andrew Stevenson wrote: > > On 17 Aug 2011, at 02:39, Ask Bj?rn Hansen wrote: > > >> 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 ? 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. > > "systat -vmstat" shows interrupts per second per device. Some use of awk or sed may be required. "vmstat -i" is probably closer to what the OP is looking for Regards, Gary From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 12:59:45 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 237CC106564A; Wed, 17 Aug 2011 12:59:45 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id D76B78FC0C; Wed, 17 Aug 2011 12:59:44 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p7HCxavS061862; Wed, 17 Aug 2011 08:59:36 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4E4BBB3D.8070801@sentex.net> Date: Wed, 17 Aug 2011 08:59:41 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: =?windows-1252?Q?Ask_Bj=F8rn_Hansen?= References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> <20110817002911.GA7614@michelle.cdnetworks.com> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.71 on IPv6:2607:f3e0:0:1::12 Cc: embedded@freebsd.org, net@freebsd.org Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 12:59:45 -0000 On 8/16/2011 9:39 PM, Ask Bjørn Hansen wrote: > > Honestly I'm not sure. I only know how to see the interrupt busy percentage from top … 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. also, does sysctl -w dev.vr.0.stats=1 sysctl -w dev.vr.1.stats=1 sysctl -w dev.vr.2.stats=1 show any errors for the NICs ? vmstat -i ? -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 14:52:56 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF2AE1065670 for ; Wed, 17 Aug 2011 14:52:56 +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 6DC738FC0A for ; Wed, 17 Aug 2011 14:52:56 +0000 (UTC) Received: (qmail 3346 invoked from network); 17 Aug 2011 14:52: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 14:52:56 -0000 From: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: multipart/signed; boundary="Apple-Mail=_6413ECB9-93A9-41EC-9BEC-95B1379028E3"; protocol="application/pkcs7-signature"; micalg=sha1 Date: Wed, 17 Aug 2011 07:52:51 -0700 In-Reply-To: To: net@freebsd.org, embedded@freebsd.org References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> <20110817002911.GA7614@michelle.cdnetworks.com> Message-Id: X-Mailer: Apple Mail (2.1244.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 14:52:56 -0000 --Apple-Mail=_6413ECB9-93A9-41EC-9BEC-95B1379028E3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Hi everyone, The box crashed early this morning. I didn't have BREAK_TO_DEBUGGER = enabled in the kernel so I couldn't get into the debugger. I fixed that = so hopefully I can get that next time. I haven't seen any vr errors (thanks for telling me how to). Indeed as = someone else pointed out, it's likely not related to 'vr' at all. When = it last hung the 'top' execution stopped about 15 minutes before the box = stopped routing packets; but during the last runs the interrupt "busy %" = according to top was only 30-ish percent. I didn't log the interrupt rate when it was crashing; but the ifconfig = and dmesg outputs didn't show anything. (Though my logging jobs might = have stopped well before the system failed, similar to the shell running = top). Grasping at straws here, but when enabling BREAK_TO_DEBUGGER I noticed = that the kernel had ZERO_COPY_SOCKETS and TCP_SIGNATURE enabled. I = disabled those, "just in case". - ask --Apple-Mail=_6413ECB9-93A9-41EC-9BEC-95B1379028E3-- From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 15:04:04 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E9490106564A; Wed, 17 Aug 2011 15:04:04 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id A94288FC0A; Wed, 17 Aug 2011 15:04:04 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p7HF3mGp087989; Wed, 17 Aug 2011 11:03:48 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4E4BD859.5070301@sentex.net> Date: Wed, 17 Aug 2011 11:03:53 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: =?windows-1252?Q?Ask_Bj=F8rn_Hansen?= References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> <20110817002911.GA7614@michelle.cdnetworks.com> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.71 on IPv6:2607:f3e0:0:1::12 Cc: embedded@freebsd.org, net@freebsd.org Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 15:04:05 -0000 > Grasping at straws here, but when enabling BREAK_TO_DEBUGGER I noticed that the kernel had ZERO_COPY_SOCKETS and TCP_SIGNATURE enabled. I disabled those, "just in case". I have a couple of boxes with TCP_SIGNATURE (and IPSEC) in the kernel and they work fine. ZERO_COPY... not so sure of. Do you have any other non standard options in your kernel ? ---Mike ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 15:09:43 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E85C9106566B for ; Wed, 17 Aug 2011 15:09:43 +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 C53568FC16 for ; Wed, 17 Aug 2011 15:09:43 +0000 (UTC) Received: (qmail 7654 invoked from network); 17 Aug 2011 15:09:43 -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 15:09:43 -0000 Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: multipart/signed; boundary="Apple-Mail=_2FEA7E67-3BB9-44C9-A275-46CB508366CF"; protocol="application/pkcs7-signature"; micalg=sha1 From: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= In-Reply-To: <4E4BD859.5070301@sentex.net> Date: Wed, 17 Aug 2011 08:09:42 -0700 Message-Id: <04C160A1-7217-494E-9D4C-2ED94975989D@develooper.com> References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> <20110817002911.GA7614@michelle.cdnetworks.com> <4E4BD859.5070301@sentex.net> To: Mike Tancsa X-Mailer: Apple Mail (2.1244.3) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: embedded@freebsd.org, net@freebsd.org Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 15:09:44 -0000 --Apple-Mail=_2FEA7E67-3BB9-44C9-A275-46CB508366CF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Aug 17, 2011, at 8:03, Mike Tancsa wrote: >> Grasping at straws here, but when enabling BREAK_TO_DEBUGGER I = noticed that the kernel had ZERO_COPY_SOCKETS and TCP_SIGNATURE enabled. = I disabled those, "just in case". >=20 > I have a couple of boxes with TCP_SIGNATURE (and IPSEC) in the kernel > and they work fine. ZERO_COPY... not so sure of. Do you have any = other > non standard options in your kernel ? I think the rest are pretty ordinary. It's generic, minus a bunch of = drivers, plus DEVICE_POLLING, ALTQ*, CPU_ELAN, CPU_GEODE, CPU_SOEKRIS, = HZ=3D1000. I wasn't using polling, but I tried it after the last reboot to see if = it helps (grasping at straws, as I said!). - ask --=20 http://develooper.com/ - http://askask.com/ --Apple-Mail=_2FEA7E67-3BB9-44C9-A275-46CB508366CF-- From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 15:17:09 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7CC7106564A; Wed, 17 Aug 2011 15:17:08 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1-6.sentex.ca [IPv6:2607:f3e0:0:1::12]) by mx1.freebsd.org (Postfix) with ESMTP id A6AB68FC16; Wed, 17 Aug 2011 15:17:08 +0000 (UTC) Received: from [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a] (saphire3.sentex.ca [IPv6:2607:f3e0:0:4:f025:8813:7603:7e4a]) by smarthost1.sentex.ca (8.14.4/8.14.4) with ESMTP id p7HFGwis092697; Wed, 17 Aug 2011 11:16:58 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: <4E4BDB6F.9060906@sentex.net> Date: Wed, 17 Aug 2011 11:17:03 -0400 From: Mike Tancsa Organization: Sentex Communications User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: =?windows-1252?Q?Ask_Bj=F8rn_Hansen?= References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> <20110817002911.GA7614@michelle.cdnetworks.com> <4E4BD859.5070301@sentex.net> <04C160A1-7217-494E-9D4C-2ED94975989D@develooper.com> In-Reply-To: <04C160A1-7217-494E-9D4C-2ED94975989D@develooper.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.71 on IPv6:2607:f3e0:0:1::12 Cc: embedded@freebsd.org, net@freebsd.org Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 15:17:09 -0000 On 8/17/2011 11:09 AM, Ask Bjørn Hansen wrote: >> I have a couple of boxes with TCP_SIGNATURE (and IPSEC) in the kernel >> and they work fine. ZERO_COPY... not so sure of. Do you have any other >> non standard options in your kernel ? > > I think the rest are pretty ordinary. It's generic, minus a bunch of drivers, plus DEVICE_POLLING, ALTQ*, CPU_ELAN, CPU_GEODE, CPU_SOEKRIS, HZ=1000. > > I wasn't using polling, but I tried it after the last reboot to see if it helps (grasping at straws, as I said!). I would take out the polling as well as the HZ setting. ---Mike -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/ From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 18:06:46 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5BD00106564A; Wed, 17 Aug 2011 18:06:46 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 014558FC19; Wed, 17 Aug 2011 18:06:45 +0000 (UTC) Received: by gxk28 with SMTP id 28so1105922gxk.13 for ; Wed, 17 Aug 2011 11:06:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=4eh+K5FfHbNByz0qB/jrfAZwquuhqimY3COAzvAMgrQ=; b=HANzrruMLOax7YzJb9orY1mY7Lx47X0VWH5Vz4AB9ZEs3GQzsA5OSnxo2HXiVjIryC 7CKrmX6EgUSY9njlK3094I6QAuWPcNl4OH4W3eGj7BtL//ciZ+S2PkSE4+MHeMWtNwR6 YqxZ5/wpj55G4tZvn5NhluG2CZ1O9HGd2fN9g= Received: by 10.42.159.69 with SMTP id k5mr1136190icx.389.1313604404579; Wed, 17 Aug 2011 11:06:44 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id a9sm547142ibi.26.2011.08.17.11.06.41 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 17 Aug 2011 11:06:42 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 17 Aug 2011 11:06:38 -0700 From: YongHyeon PYUN Date: Wed, 17 Aug 2011 11:06:38 -0700 To: Ask =?iso-8859-1?Q?Bj=F8rn?= Hansen Message-ID: <20110817180638.GA10923@michelle.cdnetworks.com> References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> <20110817002911.GA7614@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: net@freebsd.org, embedded@freebsd.org Subject: Re: system locks up with vr driver on alix board X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 18:06:46 -0000 On Tue, Aug 16, 2011 at 06:39:51PM -0700, Ask Bj??rn Hansen wrote: > > 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. > I thought vr(4) have showed some abnormal messages and it would have been logged via syslog. Initially I suspected link flips and TX/RX MAC restart failure triggered by the flips but it seems you don't see this kind of issue. > > 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 … 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. > Apart from systat or vmstat, you could get rough PPS with "netstat -ndI vr0 -w 1" > > - ask > > gw-b.dev# ifconfig -a [...] It seems vlan3 is not configured(i.e. just cloned). Apart from that all looks normal. From owner-freebsd-embedded@FreeBSD.ORG Sat Aug 20 23:59:02 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 045D61065672 for ; Sat, 20 Aug 2011 23:59:02 +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 C0FB78FC13 for ; Sat, 20 Aug 2011 23:59:01 +0000 (UTC) Received: (qmail 11027 invoked from network); 20 Aug 2011 23:59:00 -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; 20 Aug 2011 23:59:00 -0000 Mime-Version: 1.0 (Apple Message framework v1244.3) Content-Type: text/plain; charset=windows-1252 From: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= In-Reply-To: Date: Sat, 20 Aug 2011 16:58:59 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <865C098E-2A24-481B-9B97-2E426AE481CB@develooper.com> References: <4E4AB3BE.4090603@sentex.net> <9255C71C-BB78-417E-A900-85140FC2050C@develooper.com> <20110817002911.GA7614@michelle.cdnetworks.com> To: =?iso-8859-1?Q?Ask_Bj=F8rn_Hansen?= X-Mailer: Apple Mail (2.1244.3) Cc: embedded@freebsd.org, net@freebsd.org Subject: Hang with ZERO_COPY_SOCKETS or TCP_SIGNATURE enabled? (was: system locks up with vr driver on alix board) X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2011 23:59:02 -0000 On Aug 17, 2011, at 7:52, Ask Bj=F8rn Hansen wrote: > Grasping at straws here, but when enabling BREAK_TO_DEBUGGER I noticed = that the kernel had ZERO_COPY_SOCKETS and TCP_SIGNATURE enabled. I = disabled those, "just in case". Hi everyone, Thanks again for your help and hints getting this fixed for me. I just wanted to send an update that those kernel options seemed to be = the ticket to make it stable again. I haven't had it hang since = disabling IPSEC, ZERO_COPY_SOCKETS and TCP_SIGNATURE (I wasn't using md5 = signatures, having any ipsec sessions or to my knowledge running any = applications that'd be using zero copy sockets). - ask=