mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Andi Kleen <ak@muc.de>
Cc: kai@tp1.ruhr-uni-bochum.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Stem compression for kallsyms
Date: Thu, 26 Dec 2002 14:24:21 +1100	[thread overview]
Message-ID: <20021226042938.5A4932C06D@lists.samba.org> (raw)
In-Reply-To: Your message of "Tue, 24 Dec 2002 02:12:27 BST." <20021224011227.GA3171@averell>

In message <20021224011227.GA3171@averell> you write:
> 
> This patch implements simple stem compression for the kallsyms symbol 
> table. Each symbol has as first byte a count on how many characters
> are identical to the previous symbol. This compresses the often
> common repetive prefixes (like subsys_) fairly effectively.
> 
> On a fairly full featured monolithic i386 kernel this saves about 60k in 
> the kallsyms symbol table.
> 
> The changes are very simple, so the 60k are not shabby.
> 
> One visible change is that the caller of kallsyms_lookup has to pass in 
> a buffer now, because it has to be modified. I added an arbitary
> 127 character limit to it.
> 
> Still >210k left in the symbol table unfortunately. Another idea would be to 
> delta encode the addresses in 16bits (functions are all likely to be smaller 
> than 64K).  This would especially help on 64bit hosts. Not done yet, however.
> 
> No, before someone asks, I don't want to use zlib for that. Far too fragile 
> during an oops and overkill too and it would require to link it into all
> kernels.

Hi Andi,

	For the IDE oopser, I used the 16-bit size trick and a very
simple static huffman encoding, which IIRC brought the size down to
~100k (I can't find numbers at the moment).  I relied on a linked-list
of tables (for things which were more than 16 bits apart), which is
not such a great idea for the kallsyms table.  Maybe eliminate
aliases, and then use a 0 size to prefix a full new pointer?

Anyway, here's the post if you're interested:
	http://www.uwsg.iu.edu/hypermail/linux/kernel/0209.2/0062.html

Cheers,
Rusty.
--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

      reply	other threads:[~2002-12-26  4:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-24  1:12 Andi Kleen
2002-12-26  3:24 ` Rusty Russell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021226042938.5A4932C06D@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=ak@muc.de \
    --cc=kai@tp1.ruhr-uni-bochum.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome