mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/1] init/Kconfig: improve CC_OPTIMIZE_FOR_SIZE documentation
@ 2014-04-24 12:07 Michael Opdenacker
  2014-04-24 12:07 ` [PATCH 1/1] " Michael Opdenacker
  2014-04-24 14:55 ` [PATCH 0/1] " Josh Triplett
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Opdenacker @ 2014-04-24 12:07 UTC (permalink / raw)
  To: akpm
  Cc: paulmck, fweisbec, josh, eparis, paul.gortmaker, vapier,
	kyungsik.lee, jslaby, dwight.engen, pefoley2, linux-kernel,
	Michael Opdenacker

This patch proposes to warn users about the negative performance
impact of CC_OPTIMIZE_FOR_SIZE (compiling with -Os instead of -O2).
For the moment, we are just advising users not to select this option,
but extra details would be useful.

I made some experiments with this option. All of them yielded
degraded overall boot time. The kernel is smaller and hence is copied
and started earlier, but the benefits are quickly offset by the
slower kernel code. Even the total boot time is usually worse
than with a regular kernel.

Here are my latest results, on Atmel SAMA5D3 Xplained (ARM),
Linux 3.10, gzip compressed kernel:

Timestamp		O2		Os		Diff
Starting kernel 	4.307 s 	5.593 s 	-94 ms
Starting init		4.213 s 	5.549 s 	-44 ms
Login prompt		21.085 s	22.900 s 	+1.815 s 

Michael Opdenacker (1):
  init/Kconfig: improve CC_OPTIMIZE_FOR_SIZE documentation

 init/Kconfig | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-24 19:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-24 12:07 [PATCH 0/1] init/Kconfig: improve CC_OPTIMIZE_FOR_SIZE documentation Michael Opdenacker
2014-04-24 12:07 ` [PATCH 1/1] " Michael Opdenacker
2014-04-24 15:06   ` Josh Triplett
2014-04-24 14:55 ` [PATCH 0/1] " Josh Triplett
2014-04-24 19:34   ` Michael Opdenacker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®