Reducing the size of the kernel

Hans-Joachim Baader (hans@grumbeer.inka.de)
Wed, 25 Nov 1998 19:24:20 +0100 (MET)


Hi,

I'm building a special purpose router which runs practically nothing
than the kernel. So far it fits easily in 4 MB of RAM. Now I'm looking
for a way to fit it in 2 MB because this router will be built in
large quantities, so every saved part obviously is worth some effort.

I've already applied some of the ideas of Paul Gortmakers' memory saver
patch (for kernel 1.0.9). But I'm looking for more kernel parameters
to tune down. What are the greatest memory hogs in the kernel?

Specifically, I cannot use swap space, so I could remove any swapping
code from the kernel. But I don't have much time, so where should I
start looking? CONFIG_SWAP, anyone?

Before you ask: ELKS is not an option because it's not usable yet and
doesn't support PCMCIA...

Thanks in advance.

hjb

-- 
"Every use of Linux is a proper use of Linux."
				-- John "Maddog" Hall, Keynote at the Linux
				   Kongress in Cologne

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/