Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Jan 2017 14:13:33 -0500
From:      Allan Jude <allanjude@freebsd.org>
To:        Ngie Cooper <yaneurabeya@gmail.com>
Cc:        Warner Losh <imp@bsdimp.com>, Julian Elischer <julian@freebsd.org>, Toomas Soome <tsoome@me.com>, FreeBSD Current <current@freebsd.org>
Subject:   Re: gptzfsboot grew a lot after skein support was added; need knob to control bloat
Message-ID:  <373376e9-2a30-3cb4-ec60-b5b5f27de596@freebsd.org>
In-Reply-To: <CAGHfRMAR4XbJCae5K_XXYYzFrFjhfUVGscZ4gLhsALWouT26aw@mail.gmail.com>
References:  <A33154F2-70E1-4047-8496-7D4D85CFF292@gmail.com> <EF719374-BF9D-44EF-9F45-53B2B506047C@me.com> <CANCZdfrzOr3YdbAKRrwUXsFDhdQ3hErf1vbYSG7MdpV_m%2B=YRQ@mail.gmail.com> <EB309E42-BEA6-49DF-BF34-172076851891@gmail.com> <f251f193-0fcd-cb2d-0fff-c443c4ca49d6@freebsd.org> <CANCZdfqdZumJvRcHGmZR_9s-ULFWsvp7h91H39o4nPgyqPBooA@mail.gmail.com> <CAGHfRMBQNSgAUGZfZQ7gD-OU4q-5sW54bdCS%2B-9_3k1ZbLu-kw@mail.gmail.com> <cea48de5-447c-bd84-c6b0-2803d00f50f9@freebsd.org> <CAGHfRMAR4XbJCae5K_XXYYzFrFjhfUVGscZ4gLhsALWouT26aw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--QHkB8Q8lFhRSF8IkdiwRXKj56fDTJTWGn
Content-Type: multipart/mixed; boundary="sQWooSjU6VngCnKNJGvrRMuWggk6xowle";
 protected-headers="v1"
From: Allan Jude <allanjude@freebsd.org>
To: Ngie Cooper <yaneurabeya@gmail.com>
Cc: Warner Losh <imp@bsdimp.com>, Julian Elischer <julian@freebsd.org>,
 Toomas Soome <tsoome@me.com>, FreeBSD Current <current@freebsd.org>
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: <A33154F2-70E1-4047-8496-7D4D85CFF292@gmail.com>
 <EF719374-BF9D-44EF-9F45-53B2B506047C@me.com>
 <CANCZdfrzOr3YdbAKRrwUXsFDhdQ3hErf1vbYSG7MdpV_m+=YRQ@mail.gmail.com>
 <EB309E42-BEA6-49DF-BF34-172076851891@gmail.com>
 <f251f193-0fcd-cb2d-0fff-c443c4ca49d6@freebsd.org>
 <CANCZdfqdZumJvRcHGmZR_9s-ULFWsvp7h91H39o4nPgyqPBooA@mail.gmail.com>
 <CAGHfRMBQNSgAUGZfZQ7gD-OU4q-5sW54bdCS+-9_3k1ZbLu-kw@mail.gmail.com>
 <cea48de5-447c-bd84-c6b0-2803d00f50f9@freebsd.org>
 <CAGHfRMAR4XbJCae5K_XXYYzFrFjhfUVGscZ4gLhsALWouT26aw@mail.gmail.com>
In-Reply-To: <CAGHfRMAR4XbJCae5K_XXYYzFrFjhfUVGscZ4gLhsALWouT26aw@mail.gmail.com>

--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 <allanjude@freebsd.org> wr=
ote:
>> On 2017-01-28 13:56, Ngie Cooper wrote:
>>> On Sat, Jan 28, 2017 at 8:56 AM, Warner Losh <imp@bsdimp.com> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?373376e9-2a30-3cb4-ec60-b5b5f27de596>