From: Josef Sipek Subject: Re: Allocation strategy - dynamic zone for small files Date: Mon, 13 Nov 2006 19:15:05 -0500 Message-ID: <20061114001505.GA15306@filer.fsl.cs.sunysb.edu> References: <20061113193816.GA31700@filer.fsl.cs.sunysb.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Bryan Henderson , avishay , linux-fsdevel@vger.kernel.org Return-path: Received: from filer.fsl.cs.sunysb.edu ([130.245.126.2]:10218 "EHLO filer.fsl.cs.sunysb.edu") by vger.kernel.org with ESMTP id S933215AbWKNAPO (ORCPT ); Mon, 13 Nov 2006 19:15:14 -0500 To: Ihar `Philips` Filipau Content-Disposition: inline In-Reply-To: Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Nov 14, 2006 at 12:32:07AM +0100, Ihar `Philips` Filipau wrote: ... > As person throwing in the idea, I feel bit responsible. So here go my > results from my primitive script (bear with my bashism) on my plain > Debian/unstable with 123k files on 10GB partition with ext3, default > 8K block. > > Script to count small files: > -+- > #!/bin/bash > find / -xdev 2>/dev/null | wc -l > find / -xdev -\( $(seq -f '-size %gc -o' 1 63) -false -\) 2>/dev/null | wc > -l > find / -xdev -\( $(seq -f '-size %gc -o' 64 128) -false -\) 2>/dev/null | > wc -l > -+- > First line to find all files on root fs, second to find all files with > sizes 1-63 bytes, third - 64-128. (Param '-xdev' tells find to remain > on same fs to exclude proc/sys/tmp and so on) > > And on my system counts are: > -+- > 107313 > 8302 > 2618 > -+- On my system (Debian Etch, the / contains everything except /home): 581564 11280 10994 > This is 10.1% of all files - are small files under 128 bytes. (7.7% < 63 > bytes) This is 3.8% of all files < 128 bytes (1.9% < 63 bytes). Josef "Jeff" Sipek. -- A CRAY is the only computer that runs an endless loop in just 4 hours...