diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
commit | 1be510f9529cb082f802408b472a77d074b394c0 (patch) | |
tree | b175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/2012-January/011538.html | |
parent | fa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff) | |
download | archives-1be510f9529cb082f802408b472a77d074b394c0.tar archives-1be510f9529cb082f802408b472a77d074b394c0.tar.gz archives-1be510f9529cb082f802408b472a77d074b394c0.tar.bz2 archives-1be510f9529cb082f802408b472a77d074b394c0.tar.xz archives-1be510f9529cb082f802408b472a77d074b394c0.zip |
Diffstat (limited to 'zarb-ml/mageia-dev/2012-January/011538.html')
-rw-r--r-- | zarb-ml/mageia-dev/2012-January/011538.html | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-January/011538.html b/zarb-ml/mageia-dev/2012-January/011538.html new file mode 100644 index 000000000..aae66cbae --- /dev/null +++ b/zarb-ml/mageia-dev/2012-January/011538.html @@ -0,0 +1,153 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> +<HTML> + <HEAD> + <TITLE> [Mageia-dev] [ANN] unbloated installer stage1 + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BANN%5D%20unbloated%20installer%20stage1&In-Reply-To=%3CCA%2B0WU1Q7E9y-DF2ViSkmD-jWSG%2BwKMKr%2B4CqnT_8Mo%2BOnTDoZA%40mail.gmail.com%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="011526.html"> + <LINK REL="Next" HREF="011539.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[Mageia-dev] [ANN] unbloated installer stage1</H1> + <B>Per Øyvind Karlsen</B> + <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BANN%5D%20unbloated%20installer%20stage1&In-Reply-To=%3CCA%2B0WU1Q7E9y-DF2ViSkmD-jWSG%2BwKMKr%2B4CqnT_8Mo%2BOnTDoZA%40mail.gmail.com%3E" + TITLE="[Mageia-dev] [ANN] unbloated installer stage1">peroyvind at mandriva.org + </A><BR> + <I>Tue Jan 24 22:03:06 CET 2012</I> + <P><UL> + <LI>Previous message: <A HREF="011526.html">[Mageia-dev] [ANN] unbloated installer stage1 +</A></li> + <LI>Next message: <A HREF="011539.html">[Mageia-dev] [ANN] unbloated installer stage1 +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#11538">[ date ]</a> + <a href="thread.html#11538">[ thread ]</a> + <a href="subject.html#11538">[ subject ]</a> + <a href="author.html#11538">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Den 13:09 24. januar 2012 skrev Thierry Vignaud +<<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">thierry.vignaud at gmail.com</A>> følgende: +><i> Hi +</I>><i> +</I>><i> Over the years, stage1 (both  all.rdz, boot.iso, ...) got bigger & bigger: +</I>><i> 10.0-10.1: 8Mo +</I>><i> 10.2-2005: 15M      <======= +</I>><i> 2006.0: 13M +</I>><i> 2007.0: 14M +</I>><i> 2007.1: 10M +</I>><i> 2008.0-2008.1: 12M +</I>><i> 2009.0: 26M      <======= +</I>><i> 2009.1: 32M      <======= +</I>><i> 2010.0: 33M +</I>><i> 2010.1: 36M (37M on 64 bit) +</I>><i> 2011   : 44M +</I>><i> mga1  : 39M (40M on 64bit) (NEW: 53M on non-free 64 bit...) +</I>><i> +</I>><i> I've reduced this by: +</I>><i> - removing alt1 (x86_64 only for now): +</I>><i> - removing busybox +</I>><i> - compressing initrd with XZ instead of gzip: only good on firmware +</I>><i> - re compressing kernel modules with XZ instead of gzip: +</I>lzma supports much bigger dictionaries than zlib, so in stead of +compressing the kernel modules individually, you'd achieve much better +compression by just letting them be compressed once as part +of the initrd as they'd all share one big dictionary. :) +lzma also has several options you may tune to improve compression even +further. +><i> +</I>><i> Removing alt1 (x86_64 only for now) saved 20Mb on boot.iso (50%) +</I>><i> and on boot-nonfree.iso (43%). +</I>><i> +</I>><i> Removing busybox saved 1B (5.7% of all.rdz, 5% of boot.iso, +</I>><i> 3.7% of boot-nonfree.iso) +</I>Why not replace all the programs possible with busybox alternatives +and link everything against uClibc rather than glibc? +><i> +</I>><i> Compressing initrd with XZ instead of gzip saved 2Mo (7.7%) on +</I>><i> boot-nonfree.iso (better compressed firmwares). +</I>avoiding compression of any individual files (not just kernel modules) and just +compress them all together once will help increase compression ratio. +><i> +</I>><i> Re-compressing kernel modules with XZ instead of gzip saved -2.4Mb (15.9%) +</I>><i> on all.rdz, -2Mb (10.5%) on boot.iso, -2mb on boot-nonfree.iso (8.3%) +</I>><i> +</I>><i> Total gain on boot.iso: -23Mb (57.5%) on x86_64 (less on i586) +</I>><i> +</I>><i> This should save space on ISOs too (we could save more by +</I>><i> not including install/images on ISOs btw) +</I>><i> +</I>><i> There's a minor drawback: KA install won't work anymore but +</I>><i> it's a niche. Is there someone using that feature? +</I>><i> The proper way to support it would be to either: +</I>><i> - have a stage1.5 for KA with busybox +</I>><i> - include a static mke2fs (compiled against dietlibc) +</I>compile everything against shared uClibc libraries in stead! :) +There might also be a gain in using the new x32abi introduced in +latest kernels.. +><i> - disable KA support +</I> +To give an example, by applying these "tricks" to mkinitrd in the +past, I managed +to reduce it's size all the way down to just below 1MB (which also +added a full-featured +busybox build for rescue environment, going further and using a +minimal busybox build +and dropping plymouth I managed to push it further down to 100KB! :). + +-- +Regards, +Per Øyvind +</PRE> + + + + + + + + + + + + + + + + + + + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="011526.html">[Mageia-dev] [ANN] unbloated installer stage1 +</A></li> + <LI>Next message: <A HREF="011539.html">[Mageia-dev] [ANN] unbloated installer stage1 +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#11538">[ date ]</a> + <a href="thread.html#11538">[ thread ]</a> + <a href="subject.html#11538">[ subject ]</a> + <a href="author.html#11538">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev +mailing list</a><br> +</body></html> |