From owner-freebsd-current@freebsd.org Sat Jan 28 19:04:43 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 8B0DCCC5D0F for ; Sat, 28 Jan 2017 19:04:43 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) 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 659081F24 for ; Sat, 28 Jan 2017 19:04:43 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 64B41CC5D0C; Sat, 28 Jan 2017 19:04:43 +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 64481CC5D0B for ; Sat, 28 Jan 2017 19:04:43 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (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 1EB731F21; Sat, 28 Jan 2017 19:04:43 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-qk0-x22d.google.com with SMTP id 11so93977345qkl.3; Sat, 28 Jan 2017 11:04:43 -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=Af0rTk8O9jizk2CXK6jtrTuiDAh3ooyHyD96J8nv2AE=; b=LQ5QC3L08WU0W6PMCtBLRIa7QPYxkugDClAmVfTugC3Fn7AzsG0Bo5tfU8BlxmSWG9 D55Wtc0mARef283Bb5aAkBCWFldqkTA8ka5G0LfP7zBNz5Lb9AwQ9lwyUqEj2EyWnvOF dOIqM4qu7aihhTdpdgvdmfgyg/CRbdyhx7ZiTgFk+asSiRFuT/7DcnQT/CYs2IVKc+dP 5wev7ScIaNq70r4+2GoRkmkcIO7jeJyf+J0dvN8aWp7qT/NGal2X6CvUAWP8gPaRjOXB kUa46uFEI5QT2w0j97AFzWyrIbq0+UWfN9GQwvAOi2eAU8nAak+mCAYbfBs96XEgN/vD DvQA== 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=Af0rTk8O9jizk2CXK6jtrTuiDAh3ooyHyD96J8nv2AE=; b=kvjW8yYkLIl1GYYX0zlCCvzJvBjHLe3TK6hZmFqk0ILs2G2PJ16W4QaW5YlETFJicl ntS1OHQMafrgtTL+2iqYUh64aRAnOZGhizEbxLAAjTqYbCqZUGTvWDoHEz5+/wjHiRzG hYUWi+FS1HDcLPCVRwT1bFgDydo2gp1fNMav0ePN4IMvQ6+afeT5JXrfiPRuR+tOv7sN In8yG5AQ3FFsbuv+Fb//hMLv3gD1TbHVLwyEZHdyACf1c7Xs1BBuJS0je88xz1O05jh9 RasUgejPk9QoFDEt57dFKETRCPQyrxT6oLLZrvi7iMl/ULoUjXq0XN19DvgRBlUEJJJi uAaQ== X-Gm-Message-State: AIkVDXKXsy+qFIHSptnVDSM1Uaw9qd9Lnz0J/nc+Oodlv3UtzaoraVSrHVC8Rc80R3q14thl4iuRr4xq0MW42Q== X-Received: by 10.55.16.11 with SMTP id a11mr15291454qkh.3.1485630282056; Sat, 28 Jan 2017 11:04:42 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.84.230 with HTTP; Sat, 28 Jan 2017 11:04:41 -0800 (PST) In-Reply-To: References: From: Ngie Cooper Date: Sat, 28 Jan 2017 11:04:41 -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 19:04:43 -0000 On Sat, Jan 28, 2017 at 10:57 AM, Allan Jude wrote: > 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 several >>> systems... NanoBSD plays games with this stuff as well to be bootable >>> 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? It did, but unfortunately that's still way too small for my freebsd-boot partition (which apparently is only 44kB large :/..): Before: $ 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 After: $ 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 Time to do some more tricks to pare down the bootloader size. 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. Thanks, -Ngie $ 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