Reducing the size of the ports tree (brainstorm v2)

Darren Pilgrim list_freebsd at
Tue Nov 4 23:31:29 UTC 2014

On 11/4/2014 2:28 PM, Chris H wrote:
> On Tue, 04 Nov 2014 13:21:31 -0800 "Chris H" <bsd-lists at> 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.

More information about the freebsd-ports mailing list