From owner-freebsd-current@freebsd.org Sat Jan 28 19:13:42 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5E271CC6094 for ; Sat, 28 Jan 2017 19:13:42 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 399A277D for ; Sat, 28 Jan 2017 19:13:42 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 3905ECC6092; Sat, 28 Jan 2017 19:13:42 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 38AA3CC6091 for ; Sat, 28 Jan 2017 19:13:42 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from mx1.scaleengine.net (mx1.scaleengine.net [209.51.186.6]) (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 03F8477C; Sat, 28 Jan 2017 19:13:41 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (unknown [10.1.1.2]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by mx1.scaleengine.net (Postfix) with ESMTPSA id E4AB3138C2; Sat, 28 Jan 2017 19:13:39 +0000 (UTC) Subject: Re: gptzfsboot grew a lot after skein support was added; need knob to control bloat To: Ngie Cooper References: Cc: Warner Losh , Julian Elischer , Toomas Soome , FreeBSD Current From: Allan Jude Message-ID: <373376e9-2a30-3cb4-ec60-b5b5f27de596@freebsd.org> Date: Sat, 28 Jan 2017 14:13:33 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QHkB8Q8lFhRSF8IkdiwRXKj56fDTJTWGn" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 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: Sat, 28 Jan 2017 19:13:42 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --QHkB8Q8lFhRSF8IkdiwRXKj56fDTJTWGn Content-Type: multipart/mixed; boundary="sQWooSjU6VngCnKNJGvrRMuWggk6xowle"; protected-headers="v1" From: Allan Jude To: Ngie Cooper Cc: Warner Losh , Julian Elischer , Toomas Soome , FreeBSD Current Message-ID: <373376e9-2a30-3cb4-ec60-b5b5f27de596@freebsd.org> Subject: Re: gptzfsboot grew a lot after skein support was added; need knob to control bloat References: In-Reply-To: --sQWooSjU6VngCnKNJGvrRMuWggk6xowle Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2017-01-28 14:04, Ngie Cooper wrote: > On Sat, Jan 28, 2017 at 10:57 AM, Allan Jude wr= ote: >> On 2017-01-28 13:56, Ngie Cooper wrote: >>> On Sat, Jan 28, 2017 at 8:56 AM, Warner Losh wrote: >>> >>> ... >>> >>>> So? It literally doesn't matter where the freebsd-boot partition >>>> lives, or what it's number is. You can put it at the start or end of= >>>> the swap partition after adjusting its size. I've done this on sever= al >>>> systems... NanoBSD plays games with this stuff as well to be bootab= le >>>> on old / new systems. >>> >>> True. Hopefully my BIOS/disk controller isn't dumb enough to not >>> support large disks properly. >>> >>> *sigh* Unfortunately, in my infinity cleverness I only put 2 >>> partitions on the drive -- freebsd-boot and freebsd-zfs. I guess I'll= >>> need to make backups of my workstation so I don't lose anything >>> critical. >> >> Did gptzfsboot not fall below 64kb when you used the >> LOADER_NO_GELI_SUPPORT knob? >=20 > It did, but unfortunately that's still way too small for my > freebsd-boot partition (which apparently is only 44kB large :/..): >=20 > Before: >=20 > $ ls -l `make -V.OBJDIR`/gptzfsboot > -rw-r--r-- 1 ngie wheel 111662 Jan 28 11:00 > /usr/obj/usr/src/sys/boot/i386/gptzfsboot/gptzfsboot >=20 > After: >=20 > $ ls -l `make -V.OBJDIR`/gptzfsboot > -rw-r--r-- 1 ngie wheel 65371 Jan 28 11:05 > /usr/obj/usr/src/sys/boot/i386/gptzfsboot/gptzfsboot >=20 > Time to do some more tricks to pare down the bootloader size. >=20 > Sidenote to the folks who drive the release notes and upgrade > instructions for FreeBSD 12.x -- it needs to be clearly explained that > gptzfsboot has grown considerably in size and mitigation instructions > should be provided for updating gptzfsboot -- in particular with folks > who might be using freebsd-update, so don't have the luxury of the > choice of bootloader build options when upgrading. >=20 > Thanks, > -Ngie >=20 > $ gpart list da0 > Geom name: da0 > modified: false > state: OK > fwheads: 255 > fwsectors: 63 > last: 250069646 > first: 34 > entries: 128 > scheme: GPT > Providers: > 1. Name: da0p1 > Mediasize: 45056 (44K) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 20480 > Mode: r0w0e0 > rawuuid: 29a79300-48b1-11e4-97ff-fc4dd43f2de9 > rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f > label: (null) > length: 45056 > offset: 20480 > type: freebsd-boot > index: 1 > end: 127 > start: 40 > 2. Name: da0p2 > Mediasize: 128035593728 (119G) > Sectorsize: 512 > Stripesize: 0 > Stripeoffset: 65536 > Mode: r1w1e1 > rawuuid: 4416180d-48b1-11e4-97ff-fc4dd43f2de9 > rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b > label: (null) > length: 128035593728 > offset: 65536 > type: freebsd-zfs > index: 2 > end: 250069646 > start: 128 > Consumers: > 1. Name: da0 > Mediasize: 128035676160 (119G) > Sectorsize: 512 > Mode: r1w1e2 >=20 What created a partition that small? Even the FreeBSD 9.3 or 10.3 ZFS boot loaders would struggle to fit in that space: 9.3: -r--r--r-- 1 root wheel 42083 Jul 30 2015 /boot/gptzfsboot 10.3: -r--r--r-- 1 root wheel 42143 Mar 25 2016 /boot/gptzfsboot --=20 Allan Jude --sQWooSjU6VngCnKNJGvrRMuWggk6xowle-- --QHkB8Q8lFhRSF8IkdiwRXKj56fDTJTWGn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQIcBAEBAgAGBQJYjO1gAAoJEBmVNT4SmAt+2GgQAKKTExVadzo9GJNN1cSi/8Oc Alf8DGR91BdjX9I0LfOw8OQFXfyl3VvST+0IHVfF0TYJgrrOIwcDbwhDU1IkIiwY bQcXKjs3m7/UXv8TD5rTZNLbkrR5x28FZ+ps9shqUsMR+LM9tSegC6A+Sg29zxsn L1ipIUKknxlbn4Zbe6Pl47X8vTnoB2VEcGtonIUCnvxSnhOQIrYni0t661YAlH/G YZswa9H1MHs7Ur9EOVpZnzNIS8hG59wUZQvTl6Hk5FxxwYAP4jYepXNI+85m4YV0 maGqFvhp+LU6ETjoY25yLkyEi8jSPY4tu1V3nuNHJHom0l1cutyuZtcuuM6qaCP7 a1bxvQExl6V29n2+LJJIg0YlKbu2Xc1nhsUTEygVVrd+3uFzaJyiVpZs9L/vKAke +/67TPoEeLzY6kkNRJDHBilEc+DKjhMpir9zEqRhg1JAy+auSXnzNfZewNQWL5lM iFDWeRL+i14sXtWQZkd7rDo0hJ8Fvw6HMcad1wTv7R2yRm/aRcTJl8TVmeAksKIs FINtd5XfumsM0SHL7sjl+dAm1G4ZYcPguGbCvsMlMT+HytaCfzj/S4KTmIuPRu4F 6xeveEyOejNhJp4+gIbGvmP6rIeCPshJYJCWoIVPg9fk2Dsx5mRDYwg4OYALlEJ4 2bY2eoydEeiGy+jmyQJS =VRPL -----END PGP SIGNATURE----- --QHkB8Q8lFhRSF8IkdiwRXKj56fDTJTWGn--