From owner-freebsd-questions@FreeBSD.ORG Tue Sep 23 22:04:34 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06098106566B for ; Tue, 23 Sep 2008 22:04:34 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id E14B88FC20 for ; Tue, 23 Sep 2008 22:04:32 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m8NM4P2U055840; Wed, 24 Sep 2008 00:04:25 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m8NM4Ps7055837; Wed, 24 Sep 2008 00:04:25 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Wed, 24 Sep 2008 00:04:25 +0200 (CEST) From: Wojciech Puchar To: Laszlo Nagy In-Reply-To: <48D95A19.8030700@shopzeus.com> Message-ID: <20080923235932.U55719@wojtek.tensor.gdynia.pl> References: <48D95A19.8030700@shopzeus.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org, Tony Nagy - SHOPZEUS Subject: Re: dovecot, maildir, UFS 2 performance 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: Tue, 23 Sep 2008 22:04:34 -0000 > dir goes to SATA. > > The secondary task for this server is to be an IMAP and mail server. We will > be using dovecot, and shared maildir folders with ten thousands of messages. > I'm not sure where to put the maildir folders, and what options to use for unless you have tens of thousands of mail users, put it anywhere ;) it will work fine. > #1 maildir stores each message in a separate file. I think I need to dedicate > a separate disk slice for maildirs and decrease block size on it. How big > should the blocksize be? i have everything (/) on single partition on most of my servers, including those having lots of mail. i too use dovecot and maildirs. default fragment size of 2K is fine, average mailfile size is not that small to bother making smaller fragments. > #2 searching in messages is a common operation. Possibly read speed is very > most important. But since there will be thousands of files to open, seek > operation is also important. On which RAID array should I put mail dirs? dovecot do make indexes and scans all files only when rebuilding them. > Small SAS or bigger SATA array? assuming you configured your RAID1+0 properly it will give you MUCH more performance from 10 disks, than RAID1 on 2 - a bit faster - drives. IMHO you wasted money for SAS drives, simply having SATA only system could be enough. just keep your SAS drives for OS, ports, sources, logs, whatever, while /home on your big RAID1+0 volume.