From: Marc Singer <elf@buici.com>
To: Axel Kittenberger <axel.kernel@kittenberger.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Possible Bootloader Optimization in inflate (get rid of unnecessary 32k Window)
Date: Thu, 22 Dec 2005 09:37:04 -0800 [thread overview]
Message-ID: <20051222173704.GB23411@buici.com> (raw)
In-Reply-To: <200512221352.23393.axel.kernel@kittenberger.net>
On Thu, Dec 22, 2005 at 01:52:23PM +0100, Axel Kittenberger wrote:
> Hello, Whom do I talk to about acceptance of Patches in the Bootloader?
>
> I have seen, and coded once some time ago for priv. uses, do infalte the
> gziped linux kernel at boottime in "arch/i386/boot/compressed/misc.c" and "
> windowlib/inflate.c" the deflation algorthimn uses a 32k backtrack window.
> Whenever it is full, it copies it .... into the memory.
>
> While this window makes a lot of sense in an userspace application like
> gunzip, it does not make a lot sense in the bootloader. As userspace
> application the window is flushed to a file when full. The bootloader
> "flushes" it to memory (copies it in memory). That 1 time copy of the whole
> kernel can be optimized away, since we do not keep track of a window since
> the inflater can read what it has written right in the computer memory, while
> it unpacks the kernel.
>
> What would the optimization be worth?
> * A faster uncompressing of the kernel, since a total 1-time memcopy of the
> whole kernel is been optimized away.
Have you timed this operation? I would predict that the time to copy
the kernel is nominal as compared the the time taken to perform the
decompression.
next prev parent reply other threads:[~2005-12-22 17:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-22 12:52 Axel Kittenberger
2005-12-22 17:37 ` Marc Singer [this message]
2005-12-22 18:12 ` Axel Kittenberger
2005-12-22 18:30 ` Marc Singer
2005-12-22 19:04 ` Axel Kittenberger
2005-12-23 8:53 ` Hans Kristian Rosbach
2005-12-24 21:38 ` Jan Engelhardt
2005-12-25 21:01 ` Folkert van Heusden
2005-12-25 21:10 ` Axel Kittenberger
2005-12-25 21:17 ` Jan Engelhardt
2005-12-26 2:15 ` Coywolf Qi Hunt
2005-12-26 16:00 ` H. Peter Anvin
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=20051222173704.GB23411@buici.com \
--to=elf@buici.com \
--cc=axel.kernel@kittenberger.net \
--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®