Thread (27 messages) 27 messages, 6 authors, 2008-10-28

Re: [PATCH] powerpc: compile kernel for linkstations optimized for size

From: Rogério Brito <hidden>
Date: 2008-10-13 21:28:21
Also in: lkml

Hi, Guennadi.

On 13/10/2008, at 16:03, Guennadi Liakhovetski wrote:
On Mon, 13 Oct 2008, Rog=E9rio Brito wrote:
quoted
From: Rog=E9rio Brito <redacted>

Since Linkstations and Kuroboxes often have *very* little memory (as
they are embedded systems), it is desirable to get their kernels
compiled optimized for size.

Signed-off-by: Rog=E9rio Brito <redacted>

---

I have been using kernels optimized for size on my Kurobox (standard)
for many different releases and I have experienced no problem with =20=
quoted
this
option enabled. Thus, this patch.
The comment for this option says: "watch out for broken compilers," if
this doesn't hold any more, it should be remove, if it still holds, I
wouldn't turn this on by default, as I don't think we can test all
Pragmatically speaking, -O2 can be broken too (and see the amount of =20
ICEs that you can get with newer kernels even compiling with -O2). =20
Unless you prove that the compiler is correct and keeps all its =20
invariants, then you can rely on this. But, pragmatically speaking =20
again, gcc has bugs.

But leaving the mathematical situation aside (Dijkstra would have =20
spanked all of us here :)), as I mentioned below the signed off line, =20=

I have been using -Os and it is working fine. It's serving me quite =20
well and with a decent uptime:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - =20=

- - -
lutz:~# uptime
  19:22:53 up 17 days,  5:56,  1 user,  load average: 0.00, 0.00, 0.00
lutz:~# uname -a
Linux lutz 2.6.27-rc6.try02 #8 Fri Sep 26 11:29:55 BRT 2008 ppc GNU/=20
Linux
lutz:~#
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - =20=

- - -

And, despite the 0.00 load, I'm streaming music with it via mt-daapd =20
and serving cifs mounts.
possible (cross- or native-) compilers users might want to use. In any
case this is one of options that users can select themselves, if it =20=
suits
them.
And that is, not to mention, with a very home-brew and quick'n'dirty =20
cross-compiled kernel (with a vanilla gcc 4.2.0 taken straight from =20
gcc.gnu.org; the same with the kernel: no patches applied).

--=20
Rog=E9rio Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help