From owner-freebsd-current@freebsd.org Sat Mar 27 13:32:02 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 84F875C4DE8 for ; Sat, 27 Mar 2021 13:32:02 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4F70BB2Sncz3kxm for ; Sat, 27 Mar 2021 13:32:02 +0000 (UTC) (envelope-from herbert@gojira.at) Received: by mailman.nyi.freebsd.org (Postfix) id 547A75C4DE7; Sat, 27 Mar 2021 13:32:02 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 542E95C5068; Sat, 27 Mar 2021 13:32:02 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [IPv6:2a01:4f8:13b:240c::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.bsd4all.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F70B91znvz3kfG; Sat, 27 Mar 2021 13:32:00 +0000 (UTC) (envelope-from herbert@gojira.at) Date: Sat, 27 Mar 2021 14:30:58 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gojira.at; s=mail202005; t=1616851913; bh=jFYLWEawXQkN+rtC2OYcEhC6dvcXqBpFe+LUK7zqbXM=; h=Date:Message-ID:From:To:Cc:Subject:MIME-Version:Content-Type; b=vYrzLSV1D6kffTvMqnjALsrIFEkI3wb+E+msw5fZ9GjXXk7NuZ26Myyh+ozeYRDPd pwiSF8UoEjsNmquggc3d0GxT5a4/cIRftVjY0SAKasV+GWeemMMPzqykm+sBoQ+Bg5 p38D/wLLBPxWA6Hpj1dIcnB56Znw9w0CgInqTVZkWMe/I3olY3q8vUC9Rw6JTPmS1a XDV6EuoWqApExCRgZo6TrAIwhddkc5F1cnxrzpi7cOyI4EJIkT2EdNTR80FW1rPbOd Lk+jqCjxBoceuOdmWqK7S+9JHj8UuXEEiQuTIkxnP4RfXzuvfBiJg7TkdmcqCQ/XFp FGmz+LFjS1ukw== Message-ID: <87ft0glo4t.wl-herbert@gojira.at> From: "Herbert J. Skuhra" To: stable@freebsd.org Cc: current@freebsd.org Subject: Re: WITHOUT_KERNEL_SYMBOLS - *.ko now with debug_info In-Reply-To: References: <875z1ktawz.wl-herbert@gojira.at> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/28.0 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 4F70B91znvz3kfG X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gojira.at header.s=mail202005 header.b=vYrzLSV1; dmarc=none; spf=pass (mx1.freebsd.org: domain of herbert@gojira.at designates 2a01:4f8:13b:240c::25 as permitted sender) smtp.mailfrom=herbert@gojira.at X-Spamd-Result: default: False [-2.50 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gojira.at:s=mail202005]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a01:4f8:13b:240c::25]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[gojira.at]; SPAMHAUS_ZRD(0.00)[2a01:4f8:13b:240c::25:from:127.0.2.255]; DKIM_TRACE(0.00)[gojira.at:+]; RCPT_COUNT_TWO(0.00)[2]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a01:4f8:13b:240c::25:from]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MAILMAN_DEST(0.00)[current,stable] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 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, 27 Mar 2021 13:32:02 -0000 add Cc: current@ On Mon, 22 Mar 2021 02:17:11 +0100, "Herbert J. Skuhra" wrote: > > On Sun, Mar 21, 2021 at 11:11:08PM +0100, Herbert J. Skuhra wrote: > > Hi, > > > > since upgrading to stable/13 I was wondering why /boot/kernel is much > > larger. When using "WITHOUT_KERNEL_SYMBOLS=" in /etc/src.conf the > > kernel modules now contain debug_info. OK? (I manually run "objcopy > > --strip-debug".) > > I found the following commit: > > commit 9b6edf364eb05aca4709732136e92a6ab739bb36 > Author: Conrad Meyer > Date: Tue Jun 23 18:25:31 2020 +0000 > > If this change is correct maybe src.conf(5) should be updated: > > WITHOUT_KERNEL_SYMBOLS > Set to not install kernel symbol files. This option is > recommended for those people who have small root partitions. ??? % make -j4 buildkernel KERNCONF=GENERIC SRCCONF=/dev/null % doas make installkernel KERNCONF=GENERIC SRCCONF=/dev/null KODIR=/boot/testkernel % doas rm -rf /usr/obj/usr/src/amd64.amd64/sys/GENERIC % cat /etc/src_tmp.conf WITHOUT_KERNEL_SYMBOLS= % make -j4 buildkernel KERNCONF=GENERIC SRCCONF=/etc/src_tmp.conf % doas make installkernel KERNCONF=GENERIC SRCCONF=/etc/src_tmp.conf KODIR=/boot/testkernel2 % du -sh /boot/testkernel 63M /boot/testkernel (=> ~ 153M UFS or ZFS with compression=off) % du -sh /usr/lib/debug/boot/testkernel/ 151M /usr/lib/debug/boot/testkernel/ (=> ~ 491M UFS or ZFS with compression=off) % du -sh /boot/testkernel2 155M /boot/testkernel2 (=> ~ 494M UFS or ZFS with compression=off) -- Herbert