From owner-freebsd-questions@FreeBSD.ORG Sun Jul 26 02:34:02 2009 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 0E7601065670 for ; Sun, 26 Jul 2009 02:34:02 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from mail-yw0-f180.google.com (mail-yw0-f180.google.com [209.85.211.180]) by mx1.freebsd.org (Postfix) with ESMTP id BF4168FC15 for ; Sun, 26 Jul 2009 02:34:01 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by ywh10 with SMTP id 10so145940ywh.3 for ; Sat, 25 Jul 2009 19:34:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=90yXLAMX1odgTklNRfjbKuwRy5zAtsteLqZ38SpamFI=; b=RN481zdxUoMGx1kqeya0noiAwwl80bkX6ERO5J+AxblDGkV0UadVTsgmKdjMTVpTMa DeYShXW2P+bKVMTILOeOjuhI0cVFVNLNnwessFhBma9Am3ax1Ik3Wg3ZRqQyW0qIvnPY 338zqn0f6qmaALEkrzziWTlFnywSw923oI3wk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=sW2ncIaseD/v2QiFqRkwA8UkfBgkIa3IFafrwCm+C8JfbudkaIzfc0iK9TQd2Odg2G SP46bDguTXkfh4+c1HRJvxweaKAxwFmWeZUFrUlA/+qiSwFtTEJgSdJ9KbwPPt3pf+Yb 0aVDdOFGSNinI+IO2b3fxYbiDsUJS9gOCWH/8= MIME-Version: 1.0 Received: by 10.90.87.19 with SMTP id k19mr4481073agb.33.1248575641231; Sat, 25 Jul 2009 19:34:01 -0700 (PDT) From: Maxim Khitrov Date: Sat, 25 Jul 2009 22:33:41 -0400 Message-ID: <26ddd1750907251933r14f7347dh30d92c2d25f305e8@mail.gmail.com> To: Free BSD Questions list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: UFS2 tuning for heterogeneous 4TB file system 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: Sun, 26 Jul 2009 02:34:02 -0000 Hi all, I've spent a few hours now reading on how to set newfs parameters for various environments (many small files, many large files, etc.). I must say that I still don't have a clear picture of the relationships between cylinders, blocks, fragments, and inodes. That's making things difficult for me in figuring out what to use in my situation. The file system in question will not have a common file size (which is what, as I understand, bytes per inode should be tuned for). There will be many small files (< 10 KB) and many large ones (> 500 MB). A similar, in terms of content, 2TB ntfs file system on another server has an average file size of about 26 MB with 59,246 files. Ideally, I would prefer that small files do not waste more than 4 KB of space, which is what you have with ntfs. At the same time, having fsck running for days after an unclean shutdown is also not a good option (I always disable background checking). From what I've gathered so far, the two requirements are at the opposite ends in terms of file system optimization. So the question is what would be the optimal newfs parameters in my situation? Please don't suggest using zfs. Right now I'm in the testing phase and need to get the best configuration for usf2. After that I will give zfs a try. OS is FreeBSD 7.2-RELEASE-p2 amd64. Thanks for your help, Max