From nobody@FreeBSD.org  Tue Mar 28 08:58:18 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7D69216A400
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Mar 2006 08:58:18 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2009F43D46
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Mar 2006 08:58:18 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k2S8wGFZ003917
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 28 Mar 2006 08:58:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k2S8wGmx003913;
	Tue, 28 Mar 2006 08:58:16 GMT
	(envelope-from nobody)
Message-Id: <200603280858.k2S8wGmx003913@www.freebsd.org>
Date: Tue, 28 Mar 2006 08:58:16 GMT
From: Valery Marchuk <vmarchuk@argocom.cv.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Problem with "requests for mbufs denied"
X-Send-Pr-Version: www-2.3

>Number:         95030
>Category:       kern
>Synopsis:       Problem with "requests for mbufs denied"
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 28 09:00:27 GMT 2006
>Closed-Date:    Fri May 26 12:13:20 GMT 2006
>Last-Modified:  Fri May 26 12:13:20 GMT 2006
>Originator:     Valery Marchuk
>Release:        6.1-PRERELEASE
>Organization:
ArgoCom
>Environment:
FreeBSD vpn1.xxx.xxx 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #3: Thu Mar 23 11:54:35 EET 2006 root@vpn1.xxx.xxx: /usr/obj/usr/src/sys/vpn_kernel i386
>Description:
There is a problem with denied mbufs according to netstat output:

netstat -m
1825/1670/3495 mbufs in use (current/cache/total) 
1501/1305/2806/25600 mbuf clusters in use (current/cache/total/max) 
3501K/3027K/6529K bytes allocated to network (current/cache/total)
59555674/20385922/20390226 requests for mbufs denied (mbufs/clusters/mbuf+clusters)
0/5/6656 sfbufs in use (current/peak/max)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
551 calls to protocol drain routines

There are 3 NICs, 2 - em`s (Intel 1Gb) and 1 - rl (D-Link 100Mb). I`ve found 2 descriptions of the same (I guess) problem in Google, with em NICs installed. 
CPU: Pentium D 2.8 GHz (SMP)
RAM: Hynix 1Gb*2
Additional data:

kern.maxdsiz="1073741824"
kern.dfldsiz="1073741824"
kern.maxssiz="134217728"

net.inet.ip.same_prefix_carp_only=1
kern.ipc.somaxconn=32768

Kernel options:
kern.ipc.maxsockets: 25600 
kern.ipc.nmbclusters: 25600 

Current system`s sockets state:
netstat -an | grep tcp | awk '{print $6}' | sort | uniq -c
   7 CLOSE_WAIT 
 136 ESTABLISHED
  12 FIN_WAIT_1 
  34 FIN_WAIT_2 
   6 LAST_ACK   
  12 LISTEN     
   1 SYN_SENT   
  18 TIME_WAIT  

netstat -i shows no errors.
Will appreciate any help.
>How-To-Repeat:
I could not reproduce this problem on other systems (different hardware) with the same kernel options.
>Fix:

>Release-Note:
>Audit-Trail:

From: "Valery Marchuk" <security@nightmail.ru>
To: <bug-followup@FreeBSD.org>,
	"Valery Marchuk" <vmarchuk@argocom.cv.ua>
Cc:  
Subject: Re: kern/95030: Problem with "requests for mbufs denied"
Date: Fri, 26 May 2006 13:58:30 +0300

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0048_01C680CC.77F868D0
 Content-Type: text/plain;
 	charset="koi8-r"
 Content-Transfer-Encoding: quoted-printable
 
 Problem has been solved with FreeBSD 6.1-RELEASE.
 ------=_NextPart_000_0048_01C680CC.77F868D0
 Content-Type: text/html;
 	charset="koi8-r"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
 <META content=3D"MSHTML 6.00.3790.2666" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY bgColor=3D#ffffff>
 <DIV><FONT face=3DArial size=3D2>Problem has been solved with FreeBSD=20
 6.1-RELEASE.</FONT></DIV></BODY></HTML>
 
 ------=_NextPart_000_0048_01C680CC.77F868D0--
 
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Fri May 26 12:12:30 UTC 2006 
State-Changed-Why:  
Robert Watson has fixed the issue in rev. 1.137 sys/vm/uma_core.c 
and MFC'ed the patch to RELENG_6. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=95030 
>Unformatted:
