On Tue, Nov 25, 2025 at 03:33:12PM +0000, H. Hartzer wrote:
> On Tue Nov 25, 2025 at 5:38 AM UTC, Mike Larkin wrote:
> >> Is it possible to remove kernel options not useful for VMs, such as say
> >> DRM and graphics drivers, and not have those as part of the linking
> >> process? I imagine that would lower reorder_kernel memory consumption
> >> quite a bit.
> >>
> >
> > probably won't help as much as you think. Those devices don't attach, so 
> > they
> > won't consume any memory aside from a few mb in .text .
> >
> > -ml
>
> Hi Mike,
>
> I mean more at the linking process, as ld's memory usage gets so high.
>
> I can't help but think that if it wasn't linking say amdgpu, ld would
> use a lot less memory.
>
> Though, I'm not sure one can drop parts being linked without
> recompiling?
>
> It'd be nice to have a 512MB server comfortable booting without swap,
> in a heavy multi-tenant usecase.
>
> -Henrich

How many tenant VMs are we talking about here, and what is the host hardware?

Also.. if this is really a problem for you just build your own kernel and handle
relinking on your own. I don't think retrofitting KARL for this use case makes
sense.

-ml

Reply via email to