From owner-freebsd-stable@FreeBSD.ORG Thu May 27 09:06:44 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F09D41065678 for ; Thu, 27 May 2010 09:06:44 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id 9DCE98FC19 for ; Thu, 27 May 2010 09:06:44 +0000 (UTC) Received: by qyk11 with SMTP id 11so11078186qyk.13 for ; Thu, 27 May 2010 02:06:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=TqOw65RlxuYLG0Q+GUR6BZXPh72hcqKPU1Lfh9hHuoE=; b=W7GvPeI+0fHLr3LSTmKnEtsispu8E/O3slOPdm3JDwMCFDBYP3Kv7NF3gxkEQ0vXei R9vPgl+QPFTIticz/nvzI3NoMJMytZ4V9+gUUK8VXTgx+wQd0CcH/hI69z4psN3Qriwj M8m75KhZuIhYt7UV5YcCrilFh52K4+k8DPxz8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=O2dI+i3YSrRRDKedRoR7JPdKCGuPjUZnRZBpH8qldpFQ9HsdA3eQxzMAD6Gae4GFSy chai7LwYjJqA/iP5LbZEm/G8wCoOZJamF/em8016seLYcxDdH1MLfP52m5pfPUKgR/PO 1lTF0KFUkru5vg3v2PSno0EiApeBWF5spIK+4= MIME-Version: 1.0 Received: by 10.229.240.199 with SMTP id lb7mr2180882qcb.126.1274951203562; Thu, 27 May 2010 02:06:43 -0700 (PDT) Received: by 10.229.184.76 with HTTP; Thu, 27 May 2010 02:06:43 -0700 (PDT) In-Reply-To: <839697.7226.qm@web120505.mail.ne1.yahoo.com> References: <839697.7226.qm@web120505.mail.ne1.yahoo.com> Date: Thu, 27 May 2010 02:06:43 -0700 Message-ID: From: Jack Vogel To: Kirill Yelizarov Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-stable@freebsd.org Subject: Re: Strange igb befavior X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 May 2010 09:06:45 -0000 Panic is due to a failure to get enough mbufs, when you make your ring that big you hit the problem, I have been experimenting with a change to fix it but am not yet completely confident, for the moment don't make your ring so big :) Jack On Thu, May 27, 2010 at 1:08 AM, Kirill Yelizarov wrote: > Hi > > I'm having reproducible panics with 8-Stable of May13 2010. Panic occurs in > igb code. Panic start to happen when i set hw.igb.rxd="4096" and > hw.igb.txd="4096" in /boot/loader.conf. Panic happens immediately after boot > in igb1 code in my case. igb1 is connected to 100Mbit 3COM switch and switch > is not connected to anything else. > > Here is dmesg for igb > # dmesg | grep igb > igb0: port > 0x2020-0x203f mem 0xb1a20000-0xb1a3ffff,0xb1a44000-0xb1a47fff irq 40 at > device 0.0 on pci1 > igb0: Using MSIX interrupts with 5 vectors > igb0: [ITHREAD] > igb0: [ITHREAD] > igb0: [ITHREAD] > igb0: [ITHREAD] > igb0: [ITHREAD] > igb0: Ethernet address: 00:15:17:ba:2e:00 > igb1: port > 0x2000-0x201f mem 0xb1a00000-0xb1a1ffff,0xb1a40000-0xb1a43fff irq 28 at > device 0.1 on pci1 > igb1: Using MSIX interrupts with 5 vectors > igb1: [ITHREAD] > igb1: [ITHREAD] > igb1: [ITHREAD] > igb1: [ITHREAD] > igb1: [ITHREAD] > igb1: Ethernet address: 00:15:17:ba:2e:01 > igb1: link state changed to UP > igb0: link state changed to UP > > border2# ifconfig > igb0: flags=8843 metric 0 mtu 1500 > options=13b > ether 00:15:17:ba:2e:00 > inet 192.168.10.2 netmask 0xffffff00 broadcast 192.168.10.255 > inet 192.168.10.201 netmask 0xffffffff broadcast 192.168.10.201 > inet 192.168.10.202 netmask 0xffffffff broadcast 192.168.10.202 > inet 192.168.10.203 netmask 0xffffffff broadcast 192.168.10.203 > inet 192.168.10.204 netmask 0xffffffff broadcast 192.168.10.204 > media: Ethernet autoselect (1000baseT ) > status: active > igb1: flags=8843 metric 0 mtu 1500 > options=13b > ether 00:15:17:ba:2e:01 > inet XXX.74.229.230 netmask 0xfffffff0 broadcast XXX.74.229.239 > inet XXX.74.229.226 netmask 0xffffffff broadcast XXX.74.229.226 > inet XXX.74.229.227 netmask 0xffffffff broadcast XXX.74.229.227 > media: Ethernet autoselect (100baseTX ) > status: active > lo0: flags=8049 metric 0 mtu 16384 > options=3 > inet 127.0.0.1 netmask 0xff000000 > pfsync0: flags=0<> metric 0 mtu 1460 > syncpeer: 224.0.0.240 maxupd: 128 > pflog0: flags=141 metric 0 mtu 33152 > > #pciconf -lv > igb0@pci0:1:0:0: class=0x020000 card=0x34de8086 chip=0x10a78086 > rev=0x02 hdr=0x00 > vendor = 'Intel Corporation' > device = '82575EB Gigabit Network Connection' > class = network > subclass = ethernet > igb1@pci0:1:0:1: class=0x020000 card=0x34de8086 chip=0x10a78086 > rev=0x02 hdr=0x00 > vendor = 'Intel Corporation' > device = '82575EB Gigabit Network Connection' > class = network > subclass = ethernet > > # netstat -i > Name Mtu Network Address Ipkts Ierrs Idrop Opkts > Oerrs Coll > igb0 1500 00:15:17:ba:2e:00 2315 0 0 1415 > 0 0 > igb0 1500 192.168.10.0 border2 1664 - - 1412 > - - > igb0 1500 192.168.10.20 mysql-border2 0 - - 0 > - - > igb0 1500 192.168.10.20 apache-border2 0 - - 0 > - - > igb0 1500 192.168.10.20 squid-border2 0 - - 0 > - - > igb0 1500 192.168.10.20 postgresql-border 1 - - 0 > - - > igb1 1500 00:15:17:ba:2e:01 129 0 0 0 > 0 0 > igb1 1500 XXX.74.229.22 border2 0 - - 0 > - - > igb1 1500 XXX.74.229.22 apache-border2 0 - - 0 > - - > igb1 1500 XXX.74.229.22 squid-border2 0 - - 0 > - - > lo0 16384 1 0 0 1 > 0 0 > lo0 16384 your-net localhost 0 - - 1 > - - > pfsyn 1460 0 0 0 0 > 0 0 > pflog 33152 0 0 0 0 > 0 0 > > There are several jails on this server. > > When i set hw.igb.rxd="2048" and hw.igb.txd="2048" i don't have panic > anymore. > > The reason i tried to add more buffers than default is because i have NFS > export on this server. But it is on igb0. igb1 is currently doing nothing > but it will soon once the server will be ready for production. > > I didn't get core dump because my system is rather old. But i can do it if > needed. > > Regards, > Kirill > > > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >