From owner-freebsd-stable Tue Dec 18 3:36:12 2001 Delivered-To: freebsd-stable@freebsd.org Received: from oneplusone.ch (oneplusone.ch [212.55.208.170]) by hub.freebsd.org (Postfix) with ESMTP id 08B8637B405 for ; Tue, 18 Dec 2001 03:36:09 -0800 (PST) Received: (from uucp@localhost) by oneplusone.ch (8.11.4/8.11.3) with UUCP id fBIBa2477764 for stable@freebsd.org; Tue, 18 Dec 2001 12:36:02 +0100 (MET) (envelope-from ast@marabu.ch) Received: from marabu.marabu.ch (marabu.marabu.ch [192.168.21.3]) by marabu.ch (8.9.3/2000102801) with ESMTP id MAA23126 for ; Tue, 18 Dec 2001 12:33:17 +0100 (CET) (envelope-from ast@marabu.ch) Received: by marabu.marabu.ch (8.7.5/20001028-ast-8.3) id MAA11130; Tue, 18 Dec 2001 12:33:15 +0100 (CET) Message-Id: <200112181133.MAA11130@marabu.marabu.ch> MIME-Version: 1.0 (NeXT Mail 3.3 v124.8483.6) Content-Type: text/plain In-Reply-To: <20011217125831K.matusita_jp.FreeBSD.org@ns.sol.net> X-Nextstep-Mailer: Mail 3.3 (Enhance 2.0b6) Received: by NeXT.Mailer (1.124.8483.6) From: Adrian Steinmann Date: Tue, 18 Dec 2001 12:33:14 +0100 To: stable@freebsd.org Subject: Re: Waaaarg, we just blew out the kernel again.. References: <20011217104538W.matusita_jp.FreeBSD.org@ns.sol.net> <20011217125831K.matusita_jp.FreeBSD.org@ns.sol.net> X-Organization: Steinmann Consulting, Apollostrasse 21, 8032 Zurich X-Phone-Numbers: Switzerland, Tel +41 1 380 30 83 Fax +41 1 380 30 85 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG matusita@jp.FreeBSD.org wrote: If we can compress kernel image by bzip2(1), -r-xr-xr-x 1 root wheel 1343299 Dec 17 07:53 kernel.gz* -r-xr-xr-x 1 root wheel 1292744 Dec 17 07:53 kernel.bz2* we get additional 50kbytes spaces. It seems that loader does understand bzip2ed kernel; anybody tried it with 4-stable ? I've tried this just recentlz by defining LOADER_BZIP2_SUPPORT=YES in, say, WORLD_FLAGS (cvsup of Dec 15 Noon MET), these are the kgzip-ed loader sizes: -rwxr-xr-x 1 root wheel - 90919 Dec 17 02:14 loader # LOADER_BZIP2_SUPPORT=YES -rwxr-xr-x 1 root wheel - 81927 Dec 18 05:01 loader # without Note that this has the effect that the loader gets even bigger since it now supports both GZIP and BZIP, and that support is not made use of when "making release". One would have to burn the bridge completely and define LOADER_NO_GZIP_SUPPORT and then change line 958 (doMFSKERN target) in /usr/src/release/Makefile to do 'bzip2 -1' instead of gzip. Then maybe the loader would stay small and 'make release' would create bzip-ed kernels. Alas, I haven't tried this because it just takes so long to test this stuff, and I have a doubt: LOADER_NO_GZIP_SUPPORT might not work because how would the kgzip-ed loader ungzip itself if it doesn't support it anymore? Is there a way to "kbzip2" an executable? The way to go which has a brighter future is indeed to modularize more drivers and avoid GENERIC bloat. Adrian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message