mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>, linux-kernel@vger.kernel.org
Subject: Re: Reducing debuginfo size by removing unneeded includes
Date: Sun, 17 Feb 2008 15:00:14 +0100 (CET)	[thread overview]
Message-ID: <alpine.LFD.1.00.0802171456450.7583@apollo.tec.linutronix.de> (raw)
In-Reply-To: <20080207230304.GA4352@ghostprotocols.net>

On Thu, 7 Feb 2008, Arnaldo Carvalho de Melo wrote:
> Hi Ingo,
> 
> 	I'm starting with you because the first file I used to
> experiment with this idea was arch/x86/ia32/sys_ia32.c.
> 
> 	I found it strange that the struct sk_buff definition was found
> inside the DWARF debugging sections in the generated object, so I verified
> and found that there is no need for the files that bring struct sk_buff
> definition into this file and verified also that sk_buff is not brought
> in indirectly too, thru other headers.
> 
> 	I went on and removed many other unneeded includes and the end
> result is:
> 
> [acme@doppio net-2.6]$ l /tmp/sys_ia32.o.before /tmp/sys_ia32.o.after
> -rw-rw-r-- 1 acme acme 185240 2008-02-06 19:19 /tmp/sys_ia32.o.after
> -rw-rw-r-- 1 acme acme 248328 2008-02-06 19:00 /tmp/sys_ia32.o.before
> 
> 	Almost 64KB only on this object file!
> 
> 	There were no other side effects from this change:
> 
> [acme@doppio net-2.6]$ objcopy -j "text" /tmp/sys_ia32.o.before /tmp/text.before
> [acme@doppio net-2.6]$ objcopy -j "text" /tmp/sys_ia32.o.after /tmp/text.after
> [acme@doppio net-2.6]$ md5sum /tmp/text.before /tmp/text.after
> b7ac9b17942add68494e698e4f965d36  /tmp/text.before
> b7ac9b17942add68494e698e4f965d36  /tmp/text.after
> 
> 	One of the complaints about using tools such as systemtap is
> that one has to install the huge kernel-debuginfo package:
> 
> [acme@doppio net-2.6]$ rpm -q --qf "%{size}\n" kernel-rt-debuginfo
> 471737710
> 543867594
> [acme@doppio net-2.6]$
> 
> 	So I'll try to improve automation to find more of these cases.

That'd be grat.
 
> 	Here goes the first patch, regards.

Applied. Thanks,

	 tglx

  reply	other threads:[~2008-02-17 14:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-07 23:03 Arnaldo Carvalho de Melo
2008-02-17 14:00 ` Thomas Gleixner [this message]
2008-02-18  5:12 ` Ingo Molnar
2008-02-18 13:12 ` Andi Kleen
2008-02-18 13:41   ` Arnaldo Carvalho de Melo
2008-02-18 14:50     ` Andi Kleen
2008-02-18 14:22       ` Arnaldo Carvalho de Melo
2008-02-18 14:01   ` Sam Ravnborg
2008-02-24  7:58   ` Sam Ravnborg
2008-02-24  8:25     ` Samuel Tardieu
2008-02-24  9:07       ` Sam Ravnborg
2008-02-24 12:23     ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LFD.1.00.0802171456450.7583@apollo.tec.linutronix.de \
    --to=tglx@linutronix.de \
    --cc=acme@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®