From owner-freebsd-current@FreeBSD.ORG Sat May 26 10:06:04 2007 Return-Path: X-Original-To: freebsd-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 CF33D16A469 for ; Sat, 26 May 2007 10:06:04 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id 3F02513C465 for ; Sat, 26 May 2007 10:06:04 +0000 (UTC) (envelope-from joao.barros@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so496743uge for ; Sat, 26 May 2007 03:06:02 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KIXWoigURUzkJBf17BzKfNdMCihi+bPFQ+cc2tWyYihg7vwcQO8/d2X5p35iKEuTD+Hb1Gy7RE8/rPOTCSvgyllM8LMa3guPFhVwh92qlZ9ZYbGNyZgnT3qDcBVVY+0vGjPDy8Oi+VKX0dsVKu7bVFAIHnj7JW3L2/Prf2CBnUk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BzCTpYAIFBYk+4nXdpr6QSApzIDvOqjQ5v1vP0CCF0K9jPHc8Nbme6PWLfKf0hqaUfVz5KmrzcRbocB2hx5FhFloCexDRt+rjn7nlPf/uD7+mvz/mSxfAYDXpQbVkM0lHzv6zic62WqEuQkxiTuPvjW9ATxUv+/BgE8UFdnDLpA= Received: by 10.78.180.18 with SMTP id c18mr1156924huf.1180173962510; Sat, 26 May 2007 03:06:02 -0700 (PDT) Received: by 10.78.190.11 with HTTP; Sat, 26 May 2007 03:06:02 -0700 (PDT) Message-ID: <70e8236f0705260306n25046351w15fcbe25518e2eca@mail.gmail.com> Date: Sat, 26 May 2007 11:06:02 +0100 From: "Joao Barros" To: freebsd-current In-Reply-To: <4656DB6A.1010100@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070525095146.GA45288@freebsd.org> <20070525105203.GB6500@rambler-co.ru> <20070525135416.7u2tw5ibtwwogko8@webmail.leidinger.net> <4656DB6A.1010100@freebsd.org> Cc: Alexander Leidinger , Roman Divacky 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: Sat, 26 May 2007 10:06:04 -0000 On 5/25/07, Eric Anderson wrote: > 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 Here's my CURRENT from last night with make options untouched: xeon# ls -lh /boot/kernel*/kernel* -r-xr-xr-x 1 root wheel 7.2M Apr 27 20:28 /boot/kernel.old/kernel -r-xr-xr-x 1 root wheel 18M Apr 27 20:28 /boot/kernel.old/kernel.symbols -r-xr-xr-x 1 root wheel 8.0M May 26 09:49 /boot/kernel/kernel -r-xr-xr-x 1 root wheel 22M May 26 09:49 /boot/kernel/kernel.symbols -- Joao Barros