Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1K8cXx-0000wn-9P for mharc-grub-devel@gnu.org; Tue, 17 Jun 2008 10:52:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K8cXv-0000vV-P2 for grub-devel@gnu.org; Tue, 17 Jun 2008 10:52:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K8cXt-0000uv-N8 for grub-devel@gnu.org; Tue, 17 Jun 2008 10:52:30 -0400 Received: from [199.232.76.173] (port=52223 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8cXt-0000uo-KJ for grub-devel@gnu.org; Tue, 17 Jun 2008 10:52:29 -0400 Received: from ti-out-0910.google.com ([209.85.142.189]:55464) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K8cXs-00089l-UU for grub-devel@gnu.org; Tue, 17 Jun 2008 10:52:29 -0400 Received: by ti-out-0910.google.com with SMTP id u5so1853204tia.10 for ; Tue, 17 Jun 2008 07:52:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=rEtrMF8wuF3PgWB1Fm51vK+OCr3UqGhy3da41YwNpBc=; b=biGlwHQ4XAS6h2FjMw6twFiYU5ga6/NjPbx+pLpSof50XnR7oNqoB3JBPWX5OiG7iE Ra5v2zRyb1rGcaHA34BhgGeN7r1ByZLF8wI0Avx4eITKZl9vNZNvqcgpuIVp9BO83df/ bCUqoIGCYPGnv+k/pXKtR+DOQ+JNBsaD4E3Vo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=a4iY9AxWc5rSKxohIryjA5fZrtryBHn21eNPE+FY/aasSauY8MT+ATsm9KAw4EJJEG x0Gq+e0FceXiutvfODcFeIPXYXVjHWYgPquOuhkbSQ1siP3ynEK1SzNkVaBd+KYTRhug tcrrx7LeOcxki1r+DQtGgzBt52weCcY5ssiao= Received: by 10.110.57.6 with SMTP id f6mr5479655tia.35.1213714347015; Tue, 17 Jun 2008 07:52:27 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Tue, 17 Jun 2008 07:52:26 -0700 (PDT) Message-ID: Date: Tue, 17 Jun 2008 22:52:26 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <1213713543.6330.24.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20080615174819.GA3506@thorin> <1213615227.6330.3.camel@localhost> <1213618146.6330.6.camel@localhost> <20080616213116.GC6108@thorin> <1213670869.6330.12.camel@localhost> <1213713543.6330.24.camel@localhost> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: [RFC] split floppy support off biosdisk X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2008 14:52:31 -0000 On Tue, Jun 17, 2008 at 10:39 PM, Javier Mart=EDn wr= ote: > El mar, 17-06-2008 a las 11:06 +0800, Bean escribi=F3: >> AFAIK, lzma decompresser don't need intermediate buffers, it operates >> directly on the input and output buffer, for example, the lzmadecoder >> in coreboot: > I think you didn't see the intermediate buffer because it is hidden in > the Probs field passed through the decoderstate struct. I've googled my > way through the net to find what the hell "probs" mean, and I still > don't understand ten contiguous lines of the LZMA code. What I could > find is that > > http://qa.coreboot.org/docs/doxygen/lzma_8c-source.html > > provides the decoder with about 32KiB of "scratchpad" memory and will > reject decompressing files which "require" (as somehow indicated by the > first 5 bytes of the LZMA stream) more than that. I don't know if that > space is used for dictionaries, trees, forests or a Matrix full of > virtual monkeys hitting keys at random until the decompressed stream is > achieved, but its size seems to impose constraints at the time of > compression (probably a maximum -n level) that merit investigation. > > PS: have you tested the performance of other compression algorithms like > gzip-deflate (much simpler) or bzip2 (near LZMA for small files but with > less memory requisites)? Hi, I think memory is not a problem here, as grub2 can use upper memory: src =3D raw data dest =3D 0x100000 buf =3D dest + kernel_size --=20 Bean