From owner-freebsd-current@FreeBSD.ORG Wed Sep 28 09:31:11 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DFA416A41F for ; Wed, 28 Sep 2005 09:31:11 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2563043D48 for ; Wed, 28 Sep 2005 09:31:11 +0000 (GMT) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id 59F866155; Wed, 28 Sep 2005 11:30:56 +0200 (CEST) Received: from xps.des.no (des.no [80.203.228.37]) by tim.des.no (Postfix) with ESMTP id 472CC6152; Wed, 28 Sep 2005 11:30:56 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id 3AC7D33C3E; Wed, 28 Sep 2005 11:31:05 +0200 (CEST) To: Mikhail Teterin References: <200509220446.j8M4kBPA019823@blue.virtual-estates.net> <20050922182104.GC990@galgenberg.net> <200509221652.54123.mi+mx@aldan.algebra.com> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Wed, 28 Sep 2005 11:31:05 +0200 In-Reply-To: <200509221652.54123.mi+mx@aldan.algebra.com> (Mikhail Teterin's message of "Thu, 22 Sep 2005 16:52:53 -0400") Message-ID: <863bnppmhy.fsf@xps.des.no> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Tests: ALL_TRUSTED,AWL,BAYES_00 X-Spam-Learn: ham X-Spam-Score: -5.2/3.0 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on tim.des.no Cc: current@freebsd.org Subject: Re: using bzip2 to compress man-pages X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2005 09:31:11 -0000 Mikhail Teterin writes: > One does not need to save the entire sector-size. Only the (size % > sector_size), which currently pushes the file into an additional > sector. sectors are irrelevant. what you need to look at is the block size, which is 16k by default. if your file system is nearly full (enough to switch the optimization algorithm from time to space), ffs may start storing multiple files per block, but never more than one per fragment, which is usually one quarter of a block. > % find /usr/share/man/ -name \*.gz -ls | sort -k 1 | awk '$1 =3D=3D inode= { next } > { inode=3D$1; total++; if ($7 % 512 < $7*0.10) savings++ } END {print sav= ings " > out of " total}' > 1200 out of 2694 % find /usr/share/man/ -name \*.gz -ls | sort -k 1 | awk '$1 =3D=3D inode {= next } \ { inode=3D$1; total++; if ($7 % 16384 < $7*0.10) savings++ } \ END {print savings " out of " total}' 6 out of 2788 DES --=20 Dag-Erling Sm=F8rgrav - des@des.no