Re: Rusty's module talk at the Kernel Summit

From: Keith Owens (kaos@ocs.com.au)
Date: Wed Jul 03 2002 - 09:10:03 EST


On Wed, 03 Jul 2002 22:27:33 +1000,
Keith Owens <kaos@ocs.com.au> wrote:
>On Wed, 3 Jul 2002 00:31:35 -0700,
>"Adam J. Richter" <adam@yggdrasil.com> wrote:
>> As individual space optimizations go, 4% is respectable,
>>especially for something that has no cost
>
>It is not at no cost. Getting 4% requires arch dependent code to
>handle all the tables that are affected by partial text removal. I can
>get 2% for nothing by discarding data.init. Discarding text.init is a
>lot harder.

ps. That is not 4% of total memory. It is 4% of the memory allocated
to modules.

If you loaded every single 2.5.24 module on ix86 they would occupy
23,527,424 bytes.

The additional memory saved by discarding both text.init and data.init,
compared to just the data.init, would be a mere 614,400 bytes. If you
loaded every single module, which you would not do.

To get that saving requires patches against 17 architectures. Some
architectures have multiple tables, each will require a patch.

Did I mention that I don't think the saving is worth the extra code
complexity in the kernel?

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 07 2002 - 22:00:10 EST