mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Timothy Miller <miller@techsource.com>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Results of actual compile printk format compression
Date: Fri, 06 Jun 2003 18:52:49 -0400	[thread overview]
Message-ID: <3EE11B41.80505@techsource.com> (raw)

Just a quick note...

Although my experiments with kernel printk format string compression 
have reported estimated shrinkage, this is the first time I have been 
able to compile a whole kernel with the compression filter.

These results come from doing an allyesconfig of 2.5.68 and then weeding 
out anything that didn't build.  One program extracts strings from 
preprocessor output, a second program determines how the strings will be 
encoded, and the third makes substitutions during a kernel compile.

The uncompressed compile resulted in a kernel image of 24011892 bytes. 
The resulting image with format strings compressed is 23904708 bytes 
which is a shrinkage of 107184 bytes.  Subtracting out an estimate of 3K 
for the dictionary and necessary modifications to printk, that results 
in a reduction of something like 104112 which is 4% of the original 
kernel size.

That may not seem like a lot, but if you consider only the printk 
strings themselves, they are compressed to less than 50% of their 
original size (counting the dictionary but not printk code mods).

So, I ask... is this a useful savings?  Is there any chance anyone would 
bother to increase their compile time by a factor of 5 in order to shave 
off 4% or 100k bytes?

(Not to mention that allyesconfig is a very unrealistic scenario.)


             reply	other threads:[~2003-06-06 22:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-06 22:52 Timothy Miller [this message]
2003-06-07  5:39 ` Felipe Alfaro Solana

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=3EE11B41.80505@techsource.com \
    --to=miller@techsource.com \
    --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

all inboxes | Powered by JetHome®