[lkml]   [2009]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 3/3] utrace-based ftrace "process" engine, v2
Hi -

On Sun, Mar 22, 2009 at 01:08:11PM +0100, Ingo Molnar wrote:
> [...]
> > In my own limited kernel-building experience, I find the debuginfo
> > data conveniently and instantly available after every "make". Can
> > you elaborate how is it harder for you to incidentally make it
> > than for someone to download it?
> Four reasons:
> 1)
> I have CONFIG_DEBUG_INFO turned off in 99.9% of my kernel builds,
> because it slows down the kernel build times significantly: [...]

OK, 15% longer time.

> 2)
> When the kernel build becomes IO-bound [...]
> without: 870.36 user 292.79 system 3:32.10 elapsed 548% CPU
> with: 929.65 user 384.55 system 8:28.70 elapsed 258% CPU

OK, lots of network traffic.

> 3) [...]
> Try to build 1.6 GB of dirty data on ext3 and run into an fsync() in
> your editor ... you'll sit there twiddling thumbs for a minute or
> more.

Now don't go blaming us for ext3 & fsync & not having a low enough

> 4)
> Or yet another metric - Linux distro package overhead. Try
> installing a debuginfo package: [...]

Same as 3).

> And this download has to be repeated for _every_ minor kernel
> upgrade.

Actually, no. If you just want to run the newly built kernel
somewhere else on your network, you can run a systemtap compile server
on your build machine, and let the systemtap network client do ~RPCs
to get at the data.

> The solution?)
> Dunno - but i definitely think we should think bigger:
> The fundamental disconnect i believe seems to come from the fact
> that most user-space projects are relatively small, so debuginfo
> bloat is a secondary issue there.

(Well, the fedora debuginfo archive shows a couple of packages of
similar or greater heft than the kernel -, qt3, ...)

> A few random ideas:
> [...] why not build debuginfo on the fly, when a debugging
> session requires it? Rarely do we need debuginfo for more than a
> fraction of the whole kernel. [...]
> I mean, lets _use_ the fact that we have source code available, more
> intelligently. It takes zero time to build detailed debuginfo for a
> portion of a tree. [...]

Something like that might be made to work.

Note that this backs away from earlier claims that we can make do
without debuginfo, or that the compiler can't be trusted to build the
stuff. We all agree it'd be nice if made it better and made a little

- FChE

 \ /
  Last update: 2009-03-23 21:31    [W:0.111 / U:22.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site