From owner-freebsd-net@FreeBSD.ORG Fri Oct 26 08:38:11 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C6B42A6 for ; Fri, 26 Oct 2012 08:38:11 +0000 (UTC) (envelope-from eugene@imedia.ru) Received: from mx2.imedia.ru (mx2.imedia.ru [91.230.26.134]) by mx1.freebsd.org (Postfix) with ESMTP id B1C368FC0A for ; Fri, 26 Oct 2012 08:38:10 +0000 (UTC) X-All-Recipients: X-DKIM: OpenDKIM Filter v2.5.2 mx2.imedia.ru q9Q8RGEr028934 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=imedia.ru; s=common; t=1351240037; bh=Tj0wRs+Tc2cjOgoK8ba/eLi0NAEmmLvw8/xTJH9VqS8=; h=From:Reply-To:To:Subject:Date:Cc:References:In-Reply-To; b=gp/kbKuqdyq7Lxj8LSMYVHJz2RX04T0Hh7oAOK3nJAvTyPYO9trJcP8psJ9Jg1ybw A655Jq5akgnRX9bEocZIGR9x4fPJAoH1baN3doapdEcLx6Pr6adePJr6ETZzk4K9Fc S+B2xOMmMyQo/b3rMldt4y2MQ3KfkYSChltVul3Y= Received: from badger.imedia.ru (root@badger.imedia.ru [10.167.1.243]) by mx2.imedia.ru (8.14.3/8.14.3/TWINS7_LDAP) with ESMTP id q9Q8RGEr028934; Fri, 26 Oct 2012 12:27:16 +0400 (MSK) (envelope-from eugene@imedia.ru) Received: from badger.imedia.ru (eugene@localhost [127.0.0.1]) by badger.imedia.ru (8.14.5/8.14.4) with ESMTP id q9Q8RGaq022152; Fri, 26 Oct 2012 12:27:16 +0400 (MSK) (envelope-from eugene@imedia.ru) Received: from localhost (localhost [[UNIX: localhost]]) by badger.imedia.ru (8.14.5/8.14.4/Submit) id q9Q8RFlJ022151; Fri, 26 Oct 2012 12:27:15 +0400 (MSK) (envelope-from eugene@imedia.ru) X-Authentication-Warning: badger.imedia.ru: eugene set sender to eugene@imedia.ru using -f From: Eugene Mitrofanov Organization: Sanoma Independent Media To: "David Christensen" Subject: Re: dev.bce.3.mbuf_alloc_failed_count increases permanently Date: Fri, 26 Oct 2012 12:27:15 +0400 User-Agent: KMail/1.9.10 References: <201210121812.37557.eugene@imedia.ru> <3A5015FE9E557D448AF7238AF0ACE20A24B0F4@IRVEXCHMB11.corp.ad.broadcom.com> In-Reply-To: <3A5015FE9E557D448AF7238AF0ACE20A24B0F4@IRVEXCHMB11.corp.ad.broadcom.com> X-Origin: badger.imedia.ru MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201210261227.15689.eugene@imedia.ru> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (mx2.imedia.ru [10.167.0.252]); Fri, 26 Oct 2012 12:27:17 +0400 (MSK) X-Virus-Scanned: clamav-milter 0.97.6-exp at lynx.imedia.ru X-Virus-Status: Clean Cc: "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Eugene Mitrofanov List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2012 08:38:11 -0000 On Thursday 25 October 2012, David Christensen wrote: > > sysctl -a | g bce.3|g -vE '(%|stat)'; echo; sleep 10; sysctl -a | g bce.3| > > g -vE '(%|stat)'; echo; netstat -m > > > > dev.bce.3.l2fhdr_error_count: 0 > > dev.bce.3.mbuf_alloc_failed_count: 2098854 > > dev.bce.3.mbuf_frag_count: 2655285 > > dev.bce.3.dma_map_addr_rx_failed_count: 0 > > dev.bce.3.dma_map_addr_tx_failed_count: 57 > > dev.bce.3.unexpected_attention_count: 0 > > dev.bce.3.com_no_buffers: 0 > > > > dev.bce.3.l2fhdr_error_count: 0 > > dev.bce.3.mbuf_alloc_failed_count: 2098856 > > dev.bce.3.mbuf_frag_count: 2655288 > > dev.bce.3.dma_map_addr_rx_failed_count: 0 > > dev.bce.3.dma_map_addr_tx_failed_count: 57 > > dev.bce.3.unexpected_attention_count: 0 > > dev.bce.3.com_no_buffers: 0 > > > > > > Any suggestions? What is the reason of this? > > It's normal in a system under load, the kernel can't always > allocate memory when requested by the driver. The result > is that RX frames will be dropped as the driver reuses an > existing mbuf, a response taken by many other drivers. > > If you notice rapid increases during certain system operations > then you should consider increasing the amount of system > memory. > Thanks for you answer, Dave. What do you mean under "systems memory"? Is it the physical memory or the virtual one? -- EVM7-RIPE