1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
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>
|