From owner-freebsd-current@FreeBSD.ORG Fri May 25 12:49:47 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2B9AF16A469 for ; Fri, 25 May 2007 12:49:47 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from mh1.centtech.com (moat3.centtech.com [64.129.166.50]) by mx1.freebsd.org (Postfix) with ESMTP id EE33313C46E for ; Fri, 25 May 2007 12:49:46 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from neutrino.centtech.com (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.8/8.13.8) with ESMTP id l4PCnjLu094741; Fri, 25 May 2007 07:49:46 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <4656DB6A.1010100@freebsd.org> Date: Fri, 25 May 2007 07:49:46 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.0 (X11/20070521) MIME-Version: 1.0 To: Alexander Leidinger References: <20070525095146.GA45288@freebsd.org> <20070525105203.GB6500@rambler-co.ru> <20070525135416.7u2tw5ibtwwogko8@webmail.leidinger.net> In-Reply-To: <20070525135416.7u2tw5ibtwwogko8@webmail.leidinger.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88.4/3301/Fri May 25 03:38:57 2007 on mh1.centtech.com X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.6 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) on mh1.centtech.com Cc: Roman Divacky , current@freebsd.org Subject: Re: size of kernel after gcc4.2 upgrade X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 25 May 2007 12:49:47 -0000 On 05/25/07 06:54, Alexander Leidinger wrote: > Quoting Ruslan Ermilov (from Fri, 25 May 2007 > 14:52:03 +0400): > >> On Fri, May 25, 2007 at 11:51:46AM +0200, Roman Divacky wrote: >>> hi >>> >>> I just noticed that >>> spravci ~# ls -l /boot/kernel*/kernel >>> -r-xr-xr-x 1 root wheel 3389971 May 18 12:03 /boot/kernel.old/kernel* >>> -r-xr-xr-x 1 root wheel 5211345 May 25 11:47 /boot/kernel/kernel* >>> >>> ie. after gcc42 import the kernel size increased roughly by 60% thats >>> a little too much. is there any forgotten option or something that >>> makes the kernel grow so big? >>> >> My numbers are different (1% for the GENERIC kernel, and this >> is with all code changes in-between): >> >> -r-xr-xr-x 1 root wheel 8942239 Apr 11 16:20 kernel.old/kernel >> -r-xr-xr-x 1 root wheel 9035021 May 24 16:23 kernel/kernel >> >> bde@ also reported a 1% code bloat in another thread, so I think >> you should look at your own changes. > > My minimal kernel without additional changes shows: > -r-xr-xr-x 1 root wheel 2.5M 7 Apr 17:22 /boot/kernel.old/kernel* > -r-xr-xr-x 1 root wheel 8.1M 7 Apr 17:22 /boot/kernel.old/kernel.symbols* > -r-xr-xr-x 1 root wheel 3.9M 24 Mai 18:46 /boot/kernel/kernel* > -r-xr-xr-x 1 root wheel 14M 24 Mai 18:46 /boot/kernel/kernel.symbols* > > But this is with debugging (-g) enabled. How's the .symbols generated? > Can there be some new stuff in the kernel which needs to be handled in > the .symbols file generation? Hmm. Here's mine, with debugging, without WITNESS, or INVARIANTS: $ ls -alh kernel*/kernel -r-xr-xr-x 1 root wheel 7.2M Apr 24 10:24 kernel.old/kernel -r-xr-xr-x 1 root wheel 8.1M May 21 11:22 kernel/kernel Also - are you compiling in hints, or not? Eric