lkml.org 
[lkml]   [2023]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v5] x86: Avoid relocation information in final vmlinux
From
On 3/20/23 05:10, Petr Pavlu wrote:
> The issue is then that the collected vmlinux file and hence distribution
> packages end up unnecessarily large because of this extra data. The
> following is a size comparison of vmlinux v6.0 with and without the
> relocation information:
> | Configuration | With relocs | Stripped relocs |
> | x86_64_defconfig | 70 MB | 43 MB |
> | +CONFIG_DEBUG_INFO | 818 MB | 367 MB |
>
> Optimize a resulting vmlinux by adding a postlink step that splits the
> relocation information into vmlinux.relocs and then strips it from the
> vmlinux binary.

When I saw that this adds a postlink step, I read that as, "adds another
step to the unbearably slow single-threaded part of kernel builds". :)

But, here's one data point that made me feel a lot better. Using a
random .config:

> https://sr71.net/~dave/intel/config-reloctest

the builds get a _bit_ slower, going from 37.0s->37.7s. This is pretty
arbitrary of course, using my compiler on my hardware, so YMMV. But,
for me, this seems like a reasonable tradeoff given the space savings.

I'd be curious what other people are seeing.

\
 
 \ /
  Last update: 2023-03-27 01:09    [W:0.092 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site