From owner-freebsd-net@FreeBSD.ORG Wed Aug 11 08:19:12 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BF9D106567A for ; Wed, 11 Aug 2010 08:19:12 +0000 (UTC) (envelope-from mr4hughz@hotmail.com) Received: from snt0-omc2-s29.snt0.hotmail.com (snt0-omc2-s29.snt0.hotmail.com [65.55.90.104]) by mx1.freebsd.org (Postfix) with ESMTP id 424B98FC16 for ; Wed, 11 Aug 2010 08:19:12 +0000 (UTC) Received: from SNT142-W26 ([65.55.90.72]) by snt0-omc2-s29.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 11 Aug 2010 01:19:11 -0700 Message-ID: X-Originating-IP: [213.194.32.13] From: Victor Ophof To: Date: Wed, 11 Aug 2010 10:19:11 +0200 Importance: Normal In-Reply-To: <20100810213754.GH6960@michelle.cdnetworks.com> References: , <20100810213754.GH6960@michelle.cdnetworks.com> MIME-Version: 1.0 X-OriginalArrivalTime: 11 Aug 2010 08:19:11.0517 (UTC) FILETIME=[E0A14CD0:01CB392D] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: RE: "RX ring hdr initialization error" 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, 11 Aug 2010 08:19:12 -0000 =20 From: pyunyh@gmail.com Date: Tue=2C 10 Aug 2010 14:37:54 -0700 To: mr4hughz@hotmail.com CC: jfv@freebsd.org=3B freebsd-net@freebsd.org Subject: Re: "RX ring hdr initialization error" On Tue=2C Aug 10=2C 2010 at 12:52:56PM +0200=2C Victor Ophof wrote: >=20 >=20 >=20 >=20 > Hi=20 >=20 > I've bought a asus M4a78-EM Motherboard. to build a NAS on=2C=20 > thinking the onboard Realtek would be sufficant speed=20 > unfortunatly the onboard fives 16/31 mbs at best=20 >=20 > ps later It improved with enabeling "polling" in the kernel (duh)=20 >=20 > so I had a PCI intel GT nic around=2C what gave intermittent tcp/ip conne= ctions in a other machine (ESXi)=20 > unfortunatly this was the same with Freebsd (card issue?) The card is sti= ll in the machine > even with the Intel supplied BSD driver=20 >=20 > now I bought a PCIe intel CT nic=2C put it in and the kernel panic with=20 > "RX ring hdr initialization error" > so replaced the intel with the freebsd one by doing=20 > intel overwrites the freebsd one /boot/kernel/if_em.ko=20 > # cd /usr/src/sys/modules/em/ && make obj depend all install > (was already in the kernel)=20 > =20 >=20 > still panic=20 > anybody got some idea's howto fix ?=20 >=20 --- reaction pyunyh --- I have been using the attached patch for em(4)/igb(4) controllers. These drivers explicitly calls panic(9) when memory allocation failure happens. I don't think it's good idea to panic the box under resource shortage condition as it's common to see this situation on heavily loaded servers. =20 The patch does not solve the one issue yet. The panic caused by RX buffer allocation failure condition which in turn means you're allocating a lot of buffers. Reduce number of descriptors if you=20 increased that too high and see whether the issue could be gone. ---/reaction pyunyh ---What buffers /descriptors I need to reduce? I have 2= gb ram and set the following in /boot/loader.conf vm.kmem_size_max=3D"1024m= " vm.kmem_size=3D"1024m" #vfs.zfs.prefetch_disable=3D1 vm.kmem_size=3D"2048M" vfs.zfs.arc_min=3D"1024M" vfs.zfs.arc_max=3D"1536M" vfs.zfs.vdev.min_pending=3D2 vfs.zfs.vdev.max_pending=3D8 vfs.zfs.txg.timeout=3D5 aio_load=3D"YES" ahci_load=3D"YES" =20 _______________________________________________ freebsd-net@freebsd.org mai= ling list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscr= ibe=2C send any mail to "freebsd-net-unsubscribe@freebsd.org" =