From: Linda Walsh <lkml@tlinx.org>
To: Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Save 320K on production machines?
Date: Sun, 26 Mar 2006 00:31:23 -0800 [thread overview]
Message-ID: <4426515B.5040307@tlinx.org> (raw)
I have one older system with fixed resources (upgraded
as far as it will go) that I try to use as a "stable" machine.
It's had maybe 2-3 unexplained "Oopses" over the past 3-4
years (subtracting out configuration problems, where I usually
had a debug-enabled kernel installed anyway). To minimize
problems, I disable unused hardware, and all _used_ hardware
is compiled in (no module loading overhead, no chances for
arbitrary code insertion).
I find I can save a bunch of memory if I turn off Debugging
symbols and enable compile-time optimization. I know it's
not something useful for development, but some people might
find the extra memory useful.
320240 bytes of memory savings comes from:
188464 Turning off debugging symbols (CONFIG_KALLSYMS)
125008 Compiler Optimization
6784 Disabling unused code (HOTPLUG stubs)**2
** primarily "funit-at-a-time", though -fweb &
-frename-registers may add a bit (GCC 3.3.5 as
patched by SuSE; Maybe extra optimizations could
be a "CONFIG" option much like regparms is now?
**2 (please don't this as condescending; I know many
people already know this stuff, but, I find it's
best not to _assume_ what people know) But anyway...
I've always been taught that disabling unused code
was one way to improve reliability and performance.
Generally, it is in the code-paths and features
that are least used that are most likely to have
hidden problems. I've always been told that it is
more secure to disable whatever features and drivers
you don't need. It's similar to the concept of not
putting a C-development environment or ssh-client
on your web server.
I know 320K isn't that much to some people, but you have
to remember, that double that amount is all some people
will "ever need"...:-) Not working with new hardware
is leading me to attempting to squeeze the last bits of
performance out of my current hardware and software. :-)
-l
next reply other threads:[~2006-03-26 8:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-26 8:31 Linda Walsh [this message]
2006-03-26 9:24 ` Save 320K on production machines? Jan Engelhardt
2006-03-26 10:06 ` Adrian Bunk
2006-03-27 10:22 ` Linda Walsh
2006-03-27 11:36 ` Paulo Marques
2006-03-30 21:34 ` Linda Walsh
2006-03-31 9:43 ` Adrian Bunk
2006-03-31 9:48 ` Jörn Engel
2006-03-26 10:39 ` Andre Tomt
2006-03-27 10:05 ` Linda Walsh
2006-03-28 14:29 ` Jan Engelhardt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4426515B.5040307@tlinx.org \
--to=lkml@tlinx.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox