From owner-freebsd-questions@FreeBSD.ORG Mon Apr 25 15:09:41 2005 Return-Path: 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 9D8D616A4CE for ; Mon, 25 Apr 2005 15:09:41 +0000 (GMT) Received: from relay02.roc.ny.frontiernet.net (relay02.roc.ny.frontiernet.net [66.133.182.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0A5743D53 for ; Mon, 25 Apr 2005 15:09:40 +0000 (GMT) (envelope-from drew@mykitchentable.net) Received: from filter08.roc.ny.frontiernet.net (filter08.roc.ny.frontiernet.net [66.133.183.75]) by relay02.roc.ny.frontiernet.net (Postfix) with ESMTP id 619F537003F for ; Mon, 25 Apr 2005 15:09:40 +0000 (UTC) Received: from relay02.roc.ny.frontiernet.net ([66.133.182.165]) [66.133.183.75]) (amavisd-new, port 10024) with LMTP id 12619-07-55 for ; Mon, 25 Apr 2005 15:09:40 +0000 (UTC) Received: from blacklamb.mykitchentable.net (70-97-204-86.dsl2.elk.ca.frontiernet.net [70.97.204.86]) by relay02.roc.ny.frontiernet.net (Postfix) with ESMTP id 08B95370205 for ; Mon, 25 Apr 2005 15:09:38 +0000 (UTC) Received: from [165.107.42.217] (unknown [165.107.42.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id E0E173BF36B for ; Mon, 25 Apr 2005 08:09:37 -0700 (PDT) Message-ID: <426D0805.7060001@mykitchentable.net> Date: Mon, 25 Apr 2005 08:08:53 -0700 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20040701 (2.0) at filter08.roc.ny.frontiernet.net Subject: Filesystem Tuning Recommendations X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 15:09:41 -0000 I'm attempting to build a FBSD 5.4 box running MythTV. The box has a 160 gb drive I want to use for nothing more than storing recorded shows. Since the files are likely to be several gigabytes in size, what are some suggested tuning parameters for this file system. I assume it's UFS2 (the default?) as I did nothing to change that. I've read 'man tunefs' and suspect the two options I should change are 'maximum blocks' and 'average filesize'. So without really understanding the consequences, I changed them: tv# tunefs -p /tv tunefs: ACLs: (-a) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) enabled tunefs: maximum blocks per file in a cylinder group: (-e) 64000000 tunefs: average file size: (-f) 512000000 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 8% tunefs: optimization preference: (-o) time tunefs: volume label: (-L) This seemed to help some because I used to get a "encoder dma not enough buffer space free" error on /dev/cxm0 and now that's gone away so I assume disk access is faster. But what parameter would be optimum for my purpose? Also there is some suggestion on the mythtv-users list that file sizes greater than 4 gb are not allowed. What is the limit as far as FBSD UFS2 is concerned? Thanks for your advice! Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, & More! http://www.alchemistswarehouse.com