From owner-freebsd-performance@FreeBSD.ORG Tue Apr 17 10:15:35 2007 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9046116A404 for ; Tue, 17 Apr 2007 10:15:35 +0000 (UTC) (envelope-from teklimbu@wlink.com.np) Received: from smtp5.wlink.com.np (smtp5.wlink.com.np [202.79.32.52]) by mx1.freebsd.org (Postfix) with SMTP id 5763213C459 for ; Tue, 17 Apr 2007 10:15:28 +0000 (UTC) (envelope-from teklimbu@wlink.com.np) Received: (qmail 26524 invoked from network); 17 Apr 2007 10:15:20 -0000 Received: from unknown (HELO smtp8.wlink.com.np) (202.79.32.38) by 0 with SMTP; 17 Apr 2007 10:15:20 -0000 Received: (qmail 37049 invoked by uid 98); 17 Apr 2007 10:15:20 -0000 Received: from 202.79.32.77 by smtp8.wlink.com.np (envelope-from , uid 1004) with qmail-scanner-1.25 (clamdscan: 0.88.4/1879. Clear:RC:1(202.79.32.77):. Processed in 0.074221 secs); 17 Apr 2007 10:15:20 -0000 X-Qmail-Scanner-Mail-From: teklimbu@wlink.com.np via smtp8.wlink.com.np X-Qmail-Scanner: 1.25 (Clear:RC:1(202.79.32.77):. Processed in 0.074221 secs) Received: from smtp2.wlink.com.np (202.79.32.77) by smtp8.wlink.com.np with SMTP; 17 Apr 2007 10:15:20 -0000 Received: (qmail 20192 invoked by uid 516); 17 Apr 2007 10:15:19 -0000 Received: from [202.79.36.216] (HELO teklimbu.wlink.com.np) by smtp2.wlink.com.np (qmail-smtpd) with SMTP; 17 Apr 2007 10:15:14 -0000 (Tue, 17 Apr 2007 16:00:14 +0545) Received: from teklimbu.wlink.com.np (teklimbu.wlink.com.np [202.79.36.216]) by teklimbu.wlink.com.np (Postfix) with SMTP id E467D73032; Tue, 17 Apr 2007 16:00:10 +0545 (NPT) Date: Tue, 17 Apr 2007 16:00:10 +0545 From: Tek Bahadur Limbu To: "Sunil Sunder Raj" Message-Id: <20070417160010.afa7b31f.teklimbu@wlink.com.np> In-Reply-To: References: <20070330122858.93392f43.teklimbu@wlink.com.np> Organization: Worldlink Communications Pvt. Ltd. X-Mailer: Sylpheed version 2.2.0 (GTK+ 2.8.12; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Check-By: smtp2.wlink.com.np Spam: No ; 0.1 / 7.0 X-Spam-Status-WL: No, hits=0.1 required=7.0 Cc: freebsd-performance@freebsd.org Subject: Re: FreeBSD-6.1 reboots due to high mbufs X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2007 10:15:35 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 15 Apr 2007 00:37:27 +0000 "Sunil Sunder Raj" wrote: > Hi, > > Seems to be an old posting. Were you able to solve this problem. What is > your ifconfig output. > > Sunil Sunder Raj > http://daemon.in > > Hi Sunil, Well the overall usage of mbufs has definitely gone down. But still, there are occasions where the mbufs usage are still above 64K. My ifconfig output shows just my Public static IP and 1 alias. > >From: Tek Bahadur Limbu > >To: freebsd-performance@freebsd.org > >Subject: FreeBSD-6.1 reboots due to high mbufs > >Date: Fri, 30 Mar 2007 12:28:58 +0545 > > > >-----BEGIN PGP SIGNED MESSAGE----- > >Hash: SHA1 > > > >Dear All, > > > >I am quite new to FreeBSD in general and I also don't have much experience > >and knowledge as required by this mailing list. I had posted this on > >freebsd-questions but till now have not received any kind of feedback which > >is fine. > > > >I need some help and suggestions from this mailing list if permissible. I > >am sorry if I am posting this to the wrong mailing list. > > > >I have squid proxy server running on a FreeBSD-6.1 (amd) box. I have been > >facing this problem for sometime now. It's related to mbufs. For some > >reasons, my mbufs usage is extremely high. This high mbufs usage causes > >slow responses from Squid and in rare occasions, it even causes my server > >to reboot or locks out SSH sessions. > > > >This FreeBSD-6.1 squid box serves about 3000-4000 users. > > > >Server specs are: > > > >Dell 430 Intel(R) Pentium(R) D CPU 3.00GHz-Dual CPU > >real memory = 2145959936 (2046 MB) > >bge0: >traffic load: 10Mb/s (through satellite) > > > >root@server# netstat -m > > > >66713/2677/69390 mbufs in use (current/cache/total) > >66686/2210/68896/0 mbuf clusters in use (current/cache/total/max) > >66686/2178 mbuf+clusters out of packet secondary zone in use > >(current/cache) > >0/0/0/0 4k (page size) jumbo clusters in use (current/cache/total/max) > >0/0/0/0 9k jumbo clusters in use (current/cache/total/max) > >0/0/0/0 16k jumbo clusters in use (current/cache/total/max) > >150050K/5089K/155139K bytes allocated to network (current/cache/total) > >0/0/0 requests for mbufs denied (mbufs/clusters/mbuf+clusters) > >0/0/0 requests for jumbo clusters denied (4k/9k/16k) > >0/0/0 sfbufs in use (current/peak/max) > >0 requests for sfbufs denied > >0 requests for sfbufs delayed > >0 requests for I/O initiated by sendfile > >0 calls to protocol drain routines > > > > > >/etc/sysctl.conf: > > > >kern.maxfilesperproc=8192 > >kern.ipc.somaxconn=8192 > >kern.maxprocperuid=8192 > >net.inet.ip.portrange.hifirst=10000 > >net.inet.ip.portrange.first=30000 > >net.inet.ip.portrange.last=65535 > >net.inet.tcp.recvspace=65535 > >net.inet.tcp.sendspace=65535 > >net.inet.tcp.blackhole=2 > >net.inet.udp.blackhole=1 > >net.inet.ip.fw.verbose_limit=5000 > >net.inet.icmp.icmplim=0 > >net.inet.tcp.msl=3000 > >net.isr.direct=1 > >vfs.read_max=16 > > > >/boot/loader.conf: > > > >kern.ipc.nmbclusters=0 > >kern.maxusers=0 > >kern.maxfiles=16384 > >kern.maxproc=8192 > > > >Relevant Kernel Options: > > > >options IPFIREWALL > >options IPFIREWALL_VERBOSE > >options IPFIREWALL_FORWARD > >options IPFIREWALL_VERBOSE_LIMIT=5000 > >options IPFIREWALL_FORWARD_EXTENDED > > > >options MSGMNB=16384 > >options MSGMNI=41 > >options MSGSEG=2049 > >options MSGSSZ=64 > >options MSGTQL=2048 > >options SHMSEG=128 > >options SHMMNI=192 > >options SHMMAX=33554432 > >options SHMMIN=1 > >options SHMALL=8192 > > > >options HZ=1000 #Polling Enabled > > > > > >Note: Running IPFW. Also my other FreeBSD-4.x servers don't seem to suffer > >from this problem. They have almost the same IPFW, Squid and Sysctl > >configs. > > > >Any feedback and suggestions will be highly appreciated. > > > >Thanking you... > > > > > >- -- > > > > > >With best regards and good wishes, > > > >Yours sincerely, > > > >Tek Bahadur Limbu > > > >(TAG/TDG Group) > >Jwl Systems Department > > > >Worldlink Communications Pvt. Ltd. > > > >Jawalakhel, Nepal > > > >http://www.wlink.com.np > >-----BEGIN PGP SIGNATURE----- > >Version: GnuPG v1.4.2.2 (FreeBSD) > > > >iD8DBQFGDLGuVrOl+eVhOvYRAk8dAJ9dumhWCNTp6iHUy5PsQ0ie2OdMqQCgjG8u > >eTxXgRCNSe3R2mmTGSbuSqo= > >=mVGh > >-----END PGP SIGNATURE----- > >_______________________________________________ > >freebsd-performance@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-performance > >To unsubscribe, send any mail to > >"freebsd-performance-unsubscribe@freebsd.org" > > _________________________________________________________________ > Interest Rates Fall Again! $430,000 Mortgage for $1,399/mo - Calculate new > payment > http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-18679&moid=7581 > > - -- With best regards and good wishes, Yours sincerely, Tek Bahadur Limbu (TAG/TDG Group) Jwl Systems Department Worldlink Communications Pvt. Ltd. Jawalakhel, Nepal http://www.wlink.com.np -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFGJJ4uVrOl+eVhOvYRAgAzAKCBdnRkNMTmpbhhIAA3X8z5cz62pACgmFh/ wy7BHBBUth0wp/0+NmMLYbs= =FqgM -----END PGP SIGNATURE-----