Re: [PATCH] kallsyms: speed up /proc/kallsyms

From: Sam Ravnborg
Date: Wed Sep 01 2004 - 14:27:29 EST


On Wed, Sep 01, 2004 at 12:17:18PM +0100, Paulo Marques wrote:

> So, moving forward...
>
> A defconfig build produces 13743 symbols with a compressed name stream
> of ~130kB. (it is 240kB uncompressed, for the curious)
>
> Adding a letter to each symbol would increase this by about 10%.
>
> We can try 2 different approaches to minimize the impact of this:
>
> - have the letter inserted before the compression step. This way, the
> table of the best tokens may have "tacpi_" instead of "acpi_" and
> the compression would not suffer as much, except that the symbols
> started with "Tacpi_" would suffer. Only real tests can show how
> this would turn out.
>
> - build a "sections" table that groups together symbols with the same
> letter. The table would say symbols that have addresses between
> X and Y would have letter Z. This can go horribly wrong if there
> are situations where completely different type letters appear
> intermixed.
>
> I think I'll try the first approach first and see how it goes. I'll
> post as soon as I got some numbers.

When you have made the split Rusty requested and implemented
the above could you please send patches to me. I will add them to
my kbuild queue.

Yes - I have acccepted your rationale why to keep the split
of functionality between kallsyms and the kernel.

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