Re: [PATCH] kallsyms data size reduction / lookup speedup

From: Paulo Marques
Date: Wed Aug 25 2004 - 19:35:37 EST


Sam Ravnborg wrote:
On Wed, Aug 25, 2004 at 05:04:46AM +0100, pmarques@xxxxxxxxxxxx wrote:

This patch is an improvement over my first kallsyms speedup patch posted about 2
weeks ago.


My origianl comment still hold.
Decoupling the compression and decompression part is not good.
Better keep them close to each other.

In this case the decompression step is so simple that I don't think this is really a problem.
At least the source code is close to each other.

Why not put all symbols in an __init section, compress them during kernel boot
and then the original section get discarded.

In that case we should definitely change the algorithm as the compression step is quite hard. It was designed to run only at compile time, so code size / speed trade-offs would all tend to increase the code size, and even as it is it would slow down the boot sequence.

Anyway, even if the code and data is discarded as they would be in an __init section, the compression code would still be in the kernel image. This can reduce the areas of application of this code (boot from a floppy, embedded systems, etc.)

It _seems_ silly to have code in there that works over the same data every time it boots and produces the exact same result. I must say however that I realize that I'm a newcomer and I might not be seeing the hole picture. So, if it is the general consensus that this is the way to go, then fine by me :)

After a quick browse of the code.
- Use spaces around '=' etc.

I'm really sorry about this. I've tried to not let these escape, but some of them (many of them, in fact) did. I promise I'll be more thorough next time.

--
Paulo Marques - www.grupopie.com
-
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/