From owner-freebsd-questions Sun Nov 5 13:30:52 2000 Delivered-To: freebsd-questions@freebsd.org Received: from fedde.littleton.co.us (cfedde.dsl.frii.net [216.17.139.141]) by hub.freebsd.org (Postfix) with ESMTP id B6E6C37B4C5 for ; Sun, 5 Nov 2000 13:30:49 -0800 (PST) Received: from fedde (localhost [127.0.0.1]) by fedde.littleton.co.us (8.11.0/8.11.0.Beta3) with ESMTP id eA5LU9x15228; Sun, 5 Nov 2000 14:30:10 -0700 (MST) Message-Id: <200011052130.eA5LU9x15228@fedde.littleton.co.us> To: Len Conrad Cc: freebsd-questions@FreeBSD.ORG Subject: Re: where to increase number of files In-Reply-To: <5.0.0.25.0.20001105185632.00ad8680@mail.Go2France.com> From: Chris Fedde Date: Sun, 05 Nov 2000 14:30:09 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 05 Nov 2000 19:05:04 +0100 Len Conrad wrote: +------------------ | I've got a client with largish FreeBSD/posfif mailhub (200K | mgs/weekday) that is hitting the 1024 open files limit. +------------------ I've done a few wag calculations on this volume. Assuming that your client's site is like most others, 80% of the messages transit in 20% of the time. so 160K messages will transit the hub in 4.8 hours or about 9/second. If I assume that very connection takes three file descriptors (remote connection, queue file, and log) then the 1024 above represents something like 340 actual concurrent connections. Plugging that through Littles law gives an average hold time at peak of around 35 seconds. This seems like a long average hold time for mail transits. In my experiance with sendmail times beyond 5 seconds are the exception rather than the rule. Other things that factor into long hold times are identd queries and long DNS lookups. You can probably turn off identd queries. DNS tends to be a bit harder to speed up. Managing resource consumption is probably a good idea too. I don't have any experiance with postfix. Is there a connection rate throttle that can be turned on? Or a peak connection count? BTW /etc/rc makes reference to /etc/rc.sysctl. I might consider creating it and putting your commands there. chris -- Chris Fedde 303 773 9134 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message