From owner-freebsd-current@freebsd.org Sat Jan 28 20:17:50 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 49F6BCC5271 for ; Sat, 28 Jan 2017 20:17:50 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 24DE6B29 for ; Sat, 28 Jan 2017 20:17:50 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 21607CC526C; Sat, 28 Jan 2017 20:17:50 +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 21111CC526A for ; Sat, 28 Jan 2017 20:17:50 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-qk0-x234.google.com (mail-qk0-x234.google.com [IPv6:2607:f8b0:400d:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CD1A7B28; Sat, 28 Jan 2017 20:17:49 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-qk0-x234.google.com with SMTP id s140so95263943qke.0; Sat, 28 Jan 2017 12:17:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=I+JZZPlpb3nrPUH3TlPDb67kG0L9AbIweEcOCb+vqHY=; b=inLtbOsfzP+YpK123jCpT+GKfY3HtPKHcLnwyuw+4Fh8TWbiXTyKR3AEt/YVRugIDs 75WwvsWyt5O148NP6Sq9nA0FQVhW6hkKgrWFLX6/Lw5LtQPo6ZcGe4vKIBrrGOMrRQNj J0nd60bFkFkNmw9185EHGcJB7Ix0jbdbcaqsiobWrPGd5l9a4/0KyAEDzMe2fXllZbN9 kpI6sqGSBqM1IRw7wKdAWdggFKsbR7dK+DLvPp/nGnzyQQxfpP9MmArpT20SM+gg62vs JAoLaztkg0YIr5R69/jANNOqdET/NFAKdEwKDVNnOS5TD84OaTuEaSXtIDW8EOgEORT9 2CaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=I+JZZPlpb3nrPUH3TlPDb67kG0L9AbIweEcOCb+vqHY=; b=m2f6vRinDdj/9L9Omnpkbm4Q9+hGtBUVgJWJzTZ/09G75EhxLn1GRvuqDIgHyCEXOF a3/FzAKOKQlW74ONqyj18MCcZq+adOE2cZlhsgbnqf02OdgUhGq4W9pNJuYOi4LNuX5m hf+mFwWx4xoM4T9iiOmMmTKEE1sFTjDvMhCi3yWZtipUzJnmw0jeZAO1sSRsZwLW2TwC kan3RXTuN1Qg4Wo8hNP9YEK11G+6+cdDVTUXgc+QgtF0V/Fttob8Tzl4vXutxuyTpYDR pO4TVnLFNQBgsg0tVTy2CvKPRWkaGPk3KLvbK4ifdSYdZgCNXDBHAvbWEwRHkjb+j75r Qn/A== X-Gm-Message-State: AIkVDXLJvOZEFpKK1YV3jiJGGkiCipO1zB928+LtHibNJgyXtb+qBdsfVErYMkynn5o7r65dNyJRZHJNUcIDqA== X-Received: by 10.55.16.11 with SMTP id a11mr15536745qkh.3.1485634668619; Sat, 28 Jan 2017 12:17:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.84.230 with HTTP; Sat, 28 Jan 2017 12:17:48 -0800 (PST) In-Reply-To: References: <373376e9-2a30-3cb4-ec60-b5b5f27de596@freebsd.org> From: Ngie Cooper Date: Sat, 28 Jan 2017 12:17:48 -0800 Message-ID: Subject: Re: gptzfsboot grew a lot after skein support was added; need knob to control bloat To: Allan Jude Cc: Warner Losh , Julian Elischer , Toomas Soome , FreeBSD Current Content-Type: text/plain; charset=UTF-8 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 20:17:50 -0000 On Sat, Jan 28, 2017 at 11:22 AM, Ngie Cooper wrote: >> What created a partition that small? > > Me. > > gpart up until last summer said that users should create 44kB > freebsd-boot partitions -- des@ corrected that in r303289: > > -This example uses 88 blocks (44 kB) so the next partition will be > -aligned on a 64 kB boundary without the need to specify an explicit > -offset or alignment. > -The boot partition itself is aligned on a 4 kB boundary. > +We create a 472-block (236 kB) boot partition at offset 40, which is > +the size of the partition table (34 blocks or 17 kB) rounded up to the > +nearest 4 kB boundary. > .Bd -literal -offset indent > -/sbin/gpart add -b 40 -s 88 -t freebsd-boot ada0 > +/sbin/gpart add -b 40 -s 472 -t freebsd-boot ada0 After some creative hacking... tada! # find /usr/obj/usr/src/sys/boot/ -type f -name \*zfsboot -exec ls -l {} \; -rw-r--r-- 1 root wheel 131584 Jan 28 12:07 /usr/obj/usr/src/sys/boot/i386/zfsboot/zfsboot -rw-r--r-- 1 root wheel 47527 Jan 28 12:07 /usr/obj/usr/src/sys/boot/i386/gptzfsboot/gptzfsboot -- wait, why is the size of zfsboot vs gptzfsboot so different? Oh, r304321 added that as `BOOT2SIZE`. Still, it seems a bit silly to only increase the size of one bootloader and not the other 4 instances of the bootloader :/. I don't understand the point in the size restriction 100%, but I'll leave it be. Patch will be available sometime next week if my testing goes well. Cheers, -Ngie