From owner-freebsd-questions@FreeBSD.ORG Fri Nov 17 10:15:07 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 8682316A415 for ; Fri, 17 Nov 2006 10:15:07 +0000 (UTC) (envelope-from maanjee@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id E232E43D49 for ; Fri, 17 Nov 2006 10:15:06 +0000 (GMT) (envelope-from maanjee@gmail.com) Received: by py-out-1112.google.com with SMTP id f31so492317pyh for ; Fri, 17 Nov 2006 02:15:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=LoVFrqv2tgzpjW3NaAUTFAfTe7z5F4QAkT9B8nocEwFwufDPo2mh0G6ETykRgFF2OjPZILI95z8+8QRwDg81IJnETe2LKs8CJEiKkstS8qhvwl+fNyx+AFR/azQXe+1I9lcpVlB4qOHzHu+55UqtTYpbDl9a1KJAARNQAikugb4= Received: by 10.35.115.18 with SMTP id s18mr2821800pym.1163758500794; Fri, 17 Nov 2006 02:15:00 -0800 (PST) Received: by 10.35.32.17 with HTTP; Fri, 17 Nov 2006 02:15:00 -0800 (PST) Message-ID: <2cd0a0da0611170215w2a2d6855me48163247ad059ca@mail.gmail.com> Date: Fri, 17 Nov 2006 11:15:00 +0100 From: VeeJay To: maanjee@gmail.com, freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Block Size (FreeBSD 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: Fri, 17 Nov 2006 10:15:07 -0000 * Hello there I am building a Web Server with 4 x 146GB SAS disks (using RAID 10) with FreeBSD 6.1, Apache 2 & MySQL. I have read this below quoted information that to increase performance, one can set a Block Size. If so, how much? Could some genius advise what to do? I am having over 100GB for /var, 100GB for /home, 256MB for /root, 16GB for /swap, 4GB for /usr, etc. Block Size This section contains options that can really impair system performance. If you're new to FreeBSD, take the defaults! This is for experienced UNIX administrators who know exactly what they're doing. Block size refers to the minimum size of a file. If you have a file that contains just one tiny character, it uses one whole block, even if it barely fills that block. By the same token, if your file is just over the block size, it takes up one block and a fragment of another. Each block can be divided into fragments, so that multiple, slightly oversized files can use one block to store their extra tidbits. FreeBSD defaults to 8KB blocks. If you're creating a large partition―say, 1GB or more―use 16KB blocks. When you do this, you also need to change your fragment size. The FreeBSD file system (UFS, or UNIX File System) works best with fragments one−eighth the size of a block. This would be 16,384−byte blocks and 2,048−bit fragments. Set the block size with the newfs program. From the Disklabel screen, press N while on a partition to display a pop−up dialog box containing newfs options. To use 16KB blocks and 2KB fragments, enter .................................................................................................... newfs −f 2048 −b 16384 .................................................................................................... -- Thanks! BR / vj *