From owner-freebsd-bugs@FreeBSD.ORG Sun Oct 16 18:00:29 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5FCC01065675 for ; Sun, 16 Oct 2011 18:00:29 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 22FA38FC12 for ; Sun, 16 Oct 2011 18:00:29 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9GI0SOc094590 for ; Sun, 16 Oct 2011 18:00:29 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9GI0Smo094588; Sun, 16 Oct 2011 18:00:28 GMT (envelope-from gnats) Resent-Date: Sun, 16 Oct 2011 18:00:28 GMT Resent-Message-Id: <201110161800.p9GI0Smo094588@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Warren Block Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C6661065677 for ; Sun, 16 Oct 2011 17:59:59 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 8C0148FC19 for ; Sun, 16 Oct 2011 17:59:59 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p9GHxxpZ074715 for ; Sun, 16 Oct 2011 17:59:59 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p9GHxxBV074714; Sun, 16 Oct 2011 17:59:59 GMT (envelope-from nobody) Message-Id: <201110161759.p9GHxxBV074714@red.freebsd.org> Date: Sun, 16 Oct 2011 17:59:59 GMT From: Warren Block To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/161720: bsdinstall: partition editor does not put partitions on even 4K boundaries X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Oct 2011 18:00:29 -0000 >Number: 161720 >Category: misc >Synopsis: bsdinstall: partition editor does not put partitions on even 4K boundaries >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 16 18:00:28 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Warren Block >Release: 9.0-BETA3 >Organization: >Environment: FreeBSD machine3.example.com 9.0-BETA3 FreeBSD 9.0-BETA3 #0: Sat Sep 24 21:31:28 UTC 2011 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: Partitions created by the Auto option of bsdinstall's partition editor do not start on even 4K boundaries. This will seriously compromise performance on drives with 4K-byte blocks. gpart show ada0 => 34 25694141 ada0 GPT (12G) 34 128 1 freebsd-boot (64k) 162 23068544 2 freebsd-ufs (11G) 23068706 1284096 3 freebsd-swap (627M) 24352802 1341373 - free - (655M) Partition 2 starts at block 162. Instead, it should start at 1M as with gpart add -t freebsd-ufs -b 1M -s 11G ada0 Note: at present, FreeBSD boot code fails when freebsd-boot partitions are larger than 512K, so making the freebsd-boot partition 1M is not the simple fix it appears to be. Reported by je33 in http://forums.freebsd.org/showthread.php?t=27044 >How-To-Repeat: Install FreeBSD 9.0-BETA3 with bsdinstall and Auto partitioning. >Fix: FreeBSD partition types other than freebsd-boot should start at the next even multiple of 1M for good performance on Advanced Format (4K block) drives without harming performance of 512 byte drives. >Release-Note: >Audit-Trail: >Unformatted: