From owner-freebsd-hackers Sun Dec 5 14:34:16 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from alcanet.com.au (border.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with ESMTP id BC36B14CAD for ; Sun, 5 Dec 1999 14:34:08 -0800 (PST) (envelope-from jeremyp@gsmx07.alcatel.com.au) Received: by border.alcanet.com.au id <40335>; Mon, 6 Dec 1999 09:26:20 +1100 Content-return: prohibited Date: Mon, 6 Dec 1999 09:33:41 +1100 From: Peter Jeremy Subject: Re: tmpfs .. ? To: hackers@FreeBSD.ORG Cc: rfg@monkeys.com Reply-To: peter.jeremy@alcatel.com.au Message-Id: <99Dec6.092620est.40335@border.alcanet.com.au> MIME-version: 1.0 X-Mailer: Mutt 1.0pre3i Content-type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 04 Dec 1999 15:44:49 -0800, "Ronald F. Guilmette" wrote: >Specifically, I'm planning a large mail server... which will use Sendmail... >and I'd really like to allocate the Sendmail queue files... which typically >have a rather short lifespan... on/in some sort of filesystem (e.g. an >mfs or else this VN thing you are talking about) that would tend to give >petter performance than just using an ordinary disk-based filesystem. This doesn't sound like a good application for a temporary filesystem. Whilst the files do typically have a short lifetime, and there are lots of them, they represent mail items which your server has accepted responsibility for delivering. Also, the queue files can potentially exist for several days (the default timeout is 5 days). I would suggest that UFS with softupdates represents a better performance/ reliability tradeoff than MFS or a swap-backed vnode. The main problem is that sendmail places all queue files (and there are several for each undelivered message) in one directory - and very large directories are not handled particularly efficently by UFS. The simple solutions are: 1) switch to an alternative MTA that doesn't display this behaviour. 2) hack sendmail to have multiple subdirectories within the main queue directory - with the subdirectory chosen by hashing the sendmail job id. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message