From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 24 15:37:09 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id D7ACECCB for ; Thu, 24 Jan 2013 15:37:09 +0000 (UTC) (envelope-from nowakpl@platinum.linux.pl) Received: from platinum.linux.pl (platinum.edu.pl [81.161.192.4]) by mx1.freebsd.org (Postfix) with ESMTP id 97ECCFAF for ; Thu, 24 Jan 2013 15:37:09 +0000 (UTC) Received: by platinum.linux.pl (Postfix, from userid 87) id 907D947E11; Thu, 24 Jan 2013 16:37:07 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on platinum.linux.pl X-Spam-Level: X-Spam-Status: No, score=-1.4 required=3.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.3.2 Received: from [10.255.0.2] (unknown [83.151.38.73]) by platinum.linux.pl (Postfix) with ESMTPA id AD23147DE6 for ; Thu, 24 Jan 2013 16:37:07 +0100 (CET) Message-ID: <51015523.2060701@platinum.linux.pl> Date: Thu, 24 Jan 2013 16:37:07 +0100 From: Adam Nowacki User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: ZFS regimen: scrub, scrub, scrub and scrub again. References: <20130122073641.GH30633@server.rulingia.com> <51013345.8010701@platinum.linux.pl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jan 2013 15:37:09 -0000 On 2013-01-24 15:45, Zaphod Beeblebrox wrote: > Ok... so my question then would be... what of the small files. If I write > several small files at once, does the transaction use a record, or does > each file need to use a record? Additionally, if small files use > sub-records, when you delete that file, does the sub-record get moved or > just wasted (until the record is completely free)? Each file is a fully self-contained object (together with full parity) all the way to the physical storage. A 1 byte file on RAID-Z2 pool will always use 3 disks, 3 sectors total for data alone. You can use du to verify - it reports physical size together with parity. Metadata like directory entry or file attributes is stored separately and shared with other files. For small files there may be a lot of "wasted" space.