Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: Zendrael on April 15, 2013, 03:42:01 PM
-
Hello all!
Why not use LZMA instead of tar.gz to compress the kernel image?
Doesn't it will make our Core even smaller?
Or the lzma is slower than tar.gz to decompress?
Even LZMA not being the default compress method of the kernel, can I build one with it to test?
Thanks!
-
Will it run faster or use less RAM during operation?
-
Will it run faster or use less RAM during operation?
That's what I want to know Bmarkus!
Or it will make no diffence at all in the Core?
-
http://kernel.xc.net/html/linux-3.3.1/x86/KERNEL_LZMA
-
http://kernel.xc.net/html/linux-3.3.1/x86/KERNEL_LZMA
Thank you TinyPoodle!
Let's see if I understood it the right way: to have a LZMA kernel I have to compile the Core kernel image with this config. Maybe I should also have a lzma extension loaded within the base extensions?
-
You need to use a compression algorithm that is also supported by the boot loaders you want to use.
It is the boot loader that loads the kernel and initrd.
-
You need to use a compression algorithm that is also supported by the boot loaders you want to use.
It is the boot loader that loads the kernel and initrd.
I didn't knew that! Thanks!
So, after the kernel recompilation, I hava to check if my extlinux will support it... hum... I think that the u-boot used in the ARM port already does it and the x86 GRUB does too...
Why gzip was prefered in Core than lzma?
-
LZMA is too slow to decompress (and takes more RAM to do it).
@gerald_clark
IIRC the kernel decompresses the initrd, not the bootloader. I believe the kernel's own bootstrap code does the kernel image's decompression, so the bootloader only has to support the bzImage format.
-
Let's see if I understood it the right way: to have a LZMA kernel I have to compile the Core kernel image with this config.
Correct, but...
1. Once you're at it, you might consider to also compress the initramfs with same algorithm as kernel, that might give a more notable difference as the initramfs is bigger than the kernel and so the savings of size would be more there.
2. You might first look at xz in comparison to lzma.
Besides from that, you could experiment with recompressing the stock kernel with upx, which however seems to work with some parameters (hardware?? bootloader?? compression options??) and not with others.