From owner-freebsd-current@freebsd.org Fri Mar 18 22:35:12 2016 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 46D08AD5E34 for ; Fri, 18 Mar 2016 22:35:12 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail.madpilot.net (grunt.madpilot.net [78.47.145.38]) (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 09296917; Fri, 18 Mar 2016 22:35:11 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from mail (mail [192.168.254.3]) by mail.madpilot.net (Postfix) with ESMTP id 3qRg5l1HHfzb4F; Fri, 18 Mar 2016 23:35:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= content-transfer-encoding:content-type:content-type:in-reply-to :mime-version:user-agent:date:date:message-id:from:from :references:subject:subject:received:received; s=mail; t= 1458340505; x=1460154906; bh=dRfYzI3qr8yxMYe4pfGXJSFP61HKjk2dfEo SST8RscU=; b=YO0H6JQHnIpgjAmqeXbqOIXSw2Sjwky56MGgpMmF3v9cUXpCOMA ol04K/AEa+YUVNWXfpTdAZV3EM7kVy4JTUSU1kqcq8JKkNtzQACpQRtLDaMxzKVF +XvkS7v3ii2BkqYLyNASQNDhvDf9WO4fpYNjyv5h0QZQrGm77golVjbI= Received: from mail.madpilot.net ([192.168.254.3]) by mail (mail.madpilot.net [192.168.254.3]) (amavisd-new, port 10024) with ESMTP id 6ZpNLrD2rzf9; Fri, 18 Mar 2016 23:35:05 +0100 (CET) Received: from tommy.madpilot.net (micro.madpilot.net [88.149.173.206]) by mail.madpilot.net (Postfix) with ESMTPSA; Fri, 18 Mar 2016 23:35:05 +0100 (CET) Subject: Re: boot loaders got fatter in the last few days To: Freddie Cash , cem@freebsd.org References: <56EC2DD3.6050803@madpilot.net> <56EC34CE.1000002@freebsd.org> Cc: Allan Jude , freebsd-current From: Guido Falsi Message-ID: <56EC8298.5010503@madpilot.net> Date: Fri, 18 Mar 2016 23:35:04 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 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: Fri, 18 Mar 2016 22:35:12 -0000 On 03/18/16 22:41, Freddie Cash wrote: > On Fri, Mar 18, 2016 at 10:39 AM, Conrad Meyer wrote: > >> On Fri, Mar 18, 2016 at 10:03 AM, Allan Jude >> wrote: >>> On 2016-03-18 12:33, Guido Falsi wrote: >>>> >>>> Hi, >>>> >>>> I have just update one of my machines and noticed the booloaders files >>>> got quite fat in the last few days, some by a big margin. >>>> >>>> on an updated machine(r296993): >>>> >>>> -r--r--r-- 1 root wheel 85794 Mar 18 16:47 /boot/gptboot >>>> >>>> from a machine I still have not updated(r296719): >>>> >>>> -r--r--r-- 1 root wheel 16059 Mar 13 21:01 /boot/gptboot >> >> So the loader grew 70 kB. How big are your disks? >> >>>> I noticed because mu gpt boot partition is 64K and gptzfsboot just >>>> passed 100K. >>> >>> This is a side effect of the loader gaining the ability to boot from GELI >>> encrypted partitions. >>> >>> ... >>> >>> Maybe we should be putting the GELI enabled boot blocks in a different >>> filename? I generally wanted to avoid creating a new version of each >>> bootcode with GELI support. >> >> >> I think we should just suggest that boot partitions be much larger >> than 64kB (1MB is still <0.1% of any disk sold today) and not worry >> about it too much. Embedded applications can disable GELI loader >> support to save a few bytes. >> > > ​The boot partition doesn't necessarily need ​ > > ​to be 1 MB (and can't due to some issues with the assembler used right > now, or something like that). We just need to make sure people have slack > space in their partition table to expand into in the future. My strategy, which helped me in this case, is having swap space just after the boot partition, in this way I can just resize the swap space and boot partition and reorganize the system. The OS will not comply about a few hundred Kilobytes swap less :) -- Guido Falsi