From owner-freebsd-ports@FreeBSD.ORG Tue Nov 4 23:31:29 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0069F4C6 for ; Tue, 4 Nov 2014 23:31:28 +0000 (UTC) Received: from luigi.brtsvcs.net (luigi.brtsvcs.net [204.109.60.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D14261BB for ; Tue, 4 Nov 2014 23:31:28 +0000 (UTC) Received: from chombo.houseloki.net (c-73-37-112-64.hsd1.or.comcast.net [73.37.112.64]) by luigi.brtsvcs.net (Postfix) with ESMTPSA id 29EBD2D4F9F; Tue, 4 Nov 2014 23:31:21 +0000 (UTC) Received: from [IPv6:2601:7:2580:674:baca:3aff:fe83:bd29] (unknown [IPv6:2601:7:2580:674:baca:3aff:fe83:bd29]) by chombo.houseloki.net (Postfix) with ESMTPSA id 33D3BCC4; Tue, 4 Nov 2014 15:31:19 -0800 (PST) Message-ID: <545961C0.9070303@bluerosetech.com> Date: Tue, 04 Nov 2014 15:31:12 -0800 From: Darren Pilgrim Reply-To: FreeBSD Ports ML User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Chris H Subject: Re: Reducing the size of the ports tree (brainstorm v2) References: <20141031185621.GC15967@ivaldir.etoilebsd.net> <54573B31.7080809@gmx.de>, <20141103212438.0893c3dc@kalimero.tijl.coosemans.org>, <14d0c0b9ee9ca31877d43a3c29481717@ultimatedns.net> <238b9bc5e8987fe4fa2e9de3f68dc2ac@ultimatedns.net> In-Reply-To: <238b9bc5e8987fe4fa2e9de3f68dc2ac@ultimatedns.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2014 23:31:29 -0000 On 11/4/2014 2:28 PM, Chris H wrote: > On Tue, 04 Nov 2014 13:21:31 -0800 "Chris H" wrote >> gpart(8) -a gives you what you need. If it's truly as bad as all that, >> mounting the ports tree on a 512k aligned slice will reduce the "slack" > ahem... > that was s/512k/512b/g The issue of 512b sector storage media going underlies this discussion. 4k drives are the new typical. Flash uses even larger block sizes. Using an alignment of less than one sector yields significant performance penalties when doing small reads or writes. The on-disk size of the ports tree more than doubles when using 4k blocks because all those files use 4k to store what often fits in 512b. Cutting down the number of files has wide-reaching performance gains with subversion as well.