From owner-freebsd-questions@FreeBSD.ORG Mon Dec 12 15:57:36 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B367316A41F for ; Mon, 12 Dec 2005 15:57:36 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B6E843D58 for ; Mon, 12 Dec 2005 15:57:36 +0000 (GMT) (envelope-from ringworm01@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1407424nzo for ; Mon, 12 Dec 2005 07:57:35 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:cc:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=d0t3edeUz8VruZC+9/cFuLvulMYiCgZYun/nOZ8mPumFiueSjeJCu8bfl4L5LyYUlTYPHM5J8Q5UziovioHe7OglUCBAUHvpGhqCZvfjFeN/1sNb11/0Lb+SyAqcSJPQbvttm9IxL0ZU56U20ctydbMeRG9QAwOmJHsYVeF+4rU= Received: by 10.65.239.7 with SMTP id q7mr1249432qbr; Mon, 12 Dec 2005 07:57:35 -0800 (PST) Received: from ringworm.mechee.com ( [71.102.14.129]) by mx.gmail.com with ESMTP id e18sm3135028qba.2005.12.12.07.57.33; Mon, 12 Dec 2005 07:57:34 -0800 (PST) From: "Michael C. Shultz" To: freebsd-questions@freebsd.org Date: Mon, 12 Dec 2005 07:57:30 -0800 User-Agent: KMail/1.8.3 References: <1134397159.6334.21.camel@columbus> In-Reply-To: <1134397159.6334.21.camel@columbus> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512120757.31052.ringworm01@gmail.com> Cc: Robert Fitzpatrick Subject: Re: Reaching kern.maxfiles X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2005 15:57:36 -0000 On Monday 12 December 2005 06:19, Robert Fitzpatrick wrote: > Been running this FreeBSD 5.2.1 server since 5.2 was released, never had > an issue couldn't resolve, especially with the help of this and other > lists. Now I'm stumped. I posted this issue last week, someone suggested > I look at: > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-kern >el-limits.html > > The problem with reaching kern.maxfiles started immediately after doing > several upgrades including Perl 5.8.4 to 5.8.7 and other minor level > upgrades - Postfix 2.2.3 to 2.2.6, amavisd-new 2.2 to 2.3, SpamAssassin > 3.0 to 3.1 and others. Since stopping and starting Postfix every 10 > minutes alliviates the issue, I portdowngraded Postfix, amavisd-new and > SpamAssassin to previous packages and still reach the kern.maxfiles of > over 12000 within minutes. Downgrading just a few ports doesn't take into account their dependencies, and if you downgrade the dependencies then other ports that need them will have problems. -Mike > > Anyone have an inclination of what I can do to track down the cause of > this issue? Do I need to increase kern.maxfiles (but why) or am I going > to have to reinstall FreeBSD (I thought I'd never say that to fix a > problem, like Winblows). I have already checked all partitions where a > lot of issues were found on /var, but went to single user mode and > repaired it to a clean state, disks (RAID 5) all seemed fine. > > The lsof command shows mostly smtp and smtpd processes with open files > during this issue, but a lot of postfix clean up processes with open > files to various libraries. This is just a snippet of the 11000 files > open at one time, but most entries are like these: > > smtpd 10522 root 111u KQUEUE 0xc756f900 > count=0, state=0 > smtpd 10522 root 112u KQUEUE 0xc728b000 > count=0, state=0 > smtpd 10522 root 113u KQUEUE 0xc7c72100 > count=0, state=0 > smtpd 10522 root 114u KQUEUE 0xc7cb3a00 > count=0, state=0 > smtpd 10522 root 115u KQUEUE 0xca892800 > count=0, state=0 > smtpd 10522 root 116u KQUEUE 0xc7d89d00 > count=0, state=0 > smtpd 10522 root 117u KQUEUE 0xc72bdc00 > count=0, state=0 > smtpd 10522 root 118u KQUEUE 0xc7d5d500 > count=0, state=0 > cleanup 10530 postfix cwd VDIR 4,17 512 > 965640 /var/spool/postfix > cleanup 10530 postfix rtd VDIR 4,13 512 2 / > cleanup 10530 postfix txt VREG 4,16 250855 > 2499176 /usr/local/libexec/postfix/cleanup > cleanup 10530 postfix txt VREG 4,13 135188 > 94210 /libexec/ld-elf.so.1 > cleanup 10530 postfix txt VREG 4,16 97995 > 2246523 /usr/local/lib/libsasl2.so.2 > cleanup 10530 postfix txt VREG 4,16 28036 > 1413244 /usr/lib/libpam.so.2 > cleanup 10530 postfix txt VREG 4,13 32740 > 70658 /lib/libcrypt.so.2 > cleanup 10530 postfix txt VREG 4,16 259651 > 2248530 /usr/local/lib/libssl.so.4 > cleanup 10530 postfix txt VREG 4,16 1308218 > 2248522 /usr/local/lib/libcrypto.so.4 > cleanup 10530 postfix txt VREG 4,16 969676 > 2496614 /usr/local/lib/db42/libdb-4.2.so.2 > cleanup 10530 postfix txt VREG 4,16 241030 > 2241407 /usr/local/lib/libldap-2.2.so.7 > cleanup 10530 postfix txt VREG 4,16 61071 > 2241404 /usr/local/lib/liblber-2.2.so.7 > cleanup 10530 postfix txt VREG 4,16 53192 > 2242521 /usr/local/lib/libpcre.so.0 > cleanup 10530 postfix txt VREG 4,13 892348 > 70667 /lib/libc.so.5 > cleanup 10530 postfix txt VREG 4,16 111336 > 1415475 /usr/lib/libc_r.so.5 > cleanup 10530 postfix txt VREG 4,16 204560 > 1413283 /usr/lib/libssl.so.3 > cleanup 10530 postfix txt VREG 4,13 1106720 > 70679 /lib/libcrypto.so.3 > cleanup 10530 postfix txt VREG 4,16 47428 > 2237797 /usr/local/lib/nss_ldap.so.1 > cleanup 10530 postfix 0u VCHR 2,2 0t0 > 8 /dev/null > cleanup 10530 postfix 1u VCHR 2,2 0t0 > 8 /dev/null > cleanup 10530 postfix 2u VCHR 2,2 0t0 > 8 /dev/null > cleanup 10530 postfix 3u PIPE 0xc8864e1c 16384 > ->0xc7ac9810 > cleanup 10530 postfix 4u PIPE 0xc7ac9810 16384 > ->0xc8864e1c > cleanup 10530 postfix 5u PIPE 0xc72160ac 16384 > ->0xc6e1d2b0 > cleanup 10530 postfix 6u unix 0xc71180f0 0t0 > public/cleanup > cleanup 10530 postfix 7u unix 0xc71614b0 0t0 > ->0xc6d674b0 > cleanup 10530 postfix 8u VREG 4,17 0 > 965683 /var/spool/postfix/pid/unix.cleanup > cleanup 10530 postfix 9u unix 0xcad4d2d0 0t0 > public/cleanup > cleanup 10530 postfix 10r VREG 4,16 49152 > 2386167 /usr/local/etc/postfix/transport.map.db > cleanup 10530 postfix 11r VREG 4,16 49152 > 2386167 /usr/local/etc/postfix/transport.map.db > cleanup 10530 postfix 12u IPv4 0xc71648a0 0t0 TCP > directory.webtent.net:60741->directory.webtent.net:ldap (ESTABLISHED) > cleanup 10530 postfix 13u VREG 4,17 0 > 966093 /var/spool/postfix/incoming/632A6EBDCD > cleanup 10530 postfix 14u unix 0xc7235690 0t0 > ->0xc7217a50 > cleanup 10531 postfix cwd VDIR 4,17 512 > 965640 /var/spool/postfix > cleanup 10531 postfix rtd VDIR 4,13 512 2 / > cleanup 10531 postfix txt VREG 4,16 250855 > 2499176 /usr/local/libexec/postfix/cleanup > cleanup 10531 postfix txt VREG 4,13 135188 > 94210 /libexec/ld-elf.so.1 > cleanup 10531 postfix txt VREG 4,16 97995 > 2246523 /usr/local/lib/libsasl2.so.2 > cleanup 10531 postfix txt VREG 4,16 28036 > 1413244 /usr/lib/libpam.so.2 > cleanup 10531 postfix txt VREG 4,13 32740 > 70658 /lib/libcrypt.so.2 > cleanup 10531 postfix txt VREG 4,16 259651 > 2248530 /usr/local/lib/libssl.so.4 > cleanup 10531 postfix txt VREG 4,16 1308218 > 2248522 /usr/local/lib/libcrypto.so.4 > cleanup 10531 postfix txt VREG 4,16 969676 > 2496614 /usr/local/lib/db42/libdb-4.2.so.2 > > Clues? > > -- > Robert > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"