From owner-freebsd-current@FreeBSD.ORG Mon Dec 5 16:43:17 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EB93106564A for ; Mon, 5 Dec 2011 16:43:17 +0000 (UTC) (envelope-from Mark.Martinec+freebsd@ijs.si) Received: from mail.ijs.si (mail.ijs.si [IPv6:2001:1470:ff80::25]) by mx1.freebsd.org (Postfix) with ESMTP id AB1708FC20 for ; Mon, 5 Dec 2011 16:43:16 +0000 (UTC) Received: from amavis-proxy-ori.ijs.si (localhost [IPv6:::1]) by mail.ijs.si (Postfix) with ESMTP id 3SxsN35BTYzGMld for ; Mon, 5 Dec 2011 17:43:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ijs.si; h= message-id:content-transfer-encoding:content-type:content-type :mime-version:user-agent:date:date:subject:subject:organization :from:from:received:received:received:vbr-info; s=jakla2; t= 1323103394; x=1325695395; bh=Bzt/xk/euXGq+hNJ2cuiHWs4EMbmoOxAMjX xD3Sed1s=; b=TBUgGE69pUUjVx76xKRpRFbwVhuDstqE7Dha8fkuGgJomdYPGJ1 Fk683MeRwBKu+CpLoC/J/dZkNB7sWDWenUxLOfAbTqBofJUJKyJbSf7slNs+OotT VZTlpb5+3dXyecejmQHbjGvU4znLiZb75ZQTnNmW+v5Afe50BrsoZ8Z4= VBR-Info: md=ijs.si; mc=all; mv=dwl.spamhaus.org; X-Virus-Scanned: amavisd-new at ijs.si Received: from mail.ijs.si ([127.0.0.1]) by amavis-proxy-ori.ijs.si (mail.ijs.si [127.0.0.1]) (amavisd-new, port 10012) with ESMTP id gwhQke0mzpVX for ; Mon, 5 Dec 2011 17:43:14 +0100 (CET) Received: from rozamunda.ijs.si (unknown [IPv6:2001:1470:ff80:0:225:90ff:fe11:b090]) by mail.ijs.si (Postfix) with ESMTP for ; Mon, 5 Dec 2011 17:43:14 +0100 (CET) Received: from neli.ijs.si (neli.ijs.si [193.2.4.95]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by rozamunda.ijs.si (Postfix) with ESMTPSA id 8B0D2211244 for ; Mon, 5 Dec 2011 17:43:14 +0100 (CET) From: Mark Martinec Organization: J. Stefan Institute To: freebsd-current@freebsd.org Date: Mon, 5 Dec 2011 17:43:13 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.0-PRERELEASE; KDE/4.7.3; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201112051743.13483.Mark.Martinec+freebsd@ijs.si> Subject: bsdinstall guided partitioning should 4k-align swap and ufs partitions 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: Mon, 05 Dec 2011 16:43:17 -0000 Using a guided partitioning install of 9.0-RC2 on a 64GB (virtual) disk (from a 9.0-RC2 ISO image) results in the following GPT partitioning: # gpart show /dev/ada0 => 34 134217661 ada0 GPT (64G) 34 128 1 freebsd-boot (64k) 162 125828992 2 freebsd-ufs (60G) 125829154 6709248 3 freebsd-swap (3.2G) 132538402 1679293 - free - (820M) This is most unfortunate for installations using 4kB sectored disks or SSD disks, especially as the guided partitioning tool is "recommended for beginners" - who may not be aware of performance issues of using unaligned partitions on 4k sectored disk, or may not be aware they are using such disks, or may not dare to venture into manual partitioning. Neither the freebsd-ufs partition, nor the freebsd-swap partition are aligned on a 4k boundary - quite unnecessarily so. At the expense of making the boot partition larger by 2 kB or shrinking it by 2 kB, the rest would align just fine. I see no ill effect for 512 B disks, but obvious benefit for 4k disks. Btw (unrelated), tried the same with a 2 TB (virtual) disk, the guided partitioning suggested 64k boot, 2TB ufs, and 4GB swap, but then fails with "No free space left on device". Didn't investigate, looks like a bug. Mark