Skip to contentSkip to conversation

2.6.2-rc3-tiny1 for small systems

DISCUSSION Matt Mackall 2 participants 4 messages Feb 1, 2004 – Feb 2, 2004

lore
Share & tools
lore
#0 lore raw

This is the latest release of the -tiny kernel tree. The aim of this tree is to collect patches that reduce kernel disk and memory footprint as well as tools for working on small systems. Target users are things like embedded systems, small or legacy desktop folks, and handhelds.

Latest release includes:
- update to 2.6.2-rc3
- add latest netdrvr patchkit (Jeff Garzik)
- numerous compile warning fixes from last release
- work for compiling with gcc 3.4
- smaller, cleaned up inflate code for kernel, initramfs, etc.
- optional support for file locking
- optional support for uid16 interfaces
- enhanced CPU feature selection (Adrian Bunk)
- selectable vendor support for MTRRs
- optional TSC timer support
- optional ramfs-based shmem/tmpfs support
- minor space-saving cleanups

As always, I'm looking for more ideas for space-savings. Suggestions in the TCP/IP area are especially useful right now.

Here's a test boot of my development config (console, ide, ext2, and ipv4) with mem=2m, which is actually only 1664k after accounting for BIOS memory holes:

Uncompressing Linux... Ok, booting the kernel.

# mount /proc
# cat /proc/meminfo
MemTotal:          980 kB [up from 916k for last release!]
MemFree:           312 kB
Buffers:            32 kB
Cached:            296 kB
SwapCached:          0 kB
Active:            400 kB
Inactive:           48 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:          980 kB
LowFree:           312 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
Mapped:            380 kB
Slab:                0 kB
Committed_AS:      132 kB
PageTables:         24 kB
VmallocTotal:  1032172 kB
VmallocUsed:         0 kB
VmallocChunk:  1032172 kB
#

The patch can be found at:

http://selenic.com/tiny/2.6.2-rc3-tiny1.patch.bz2
http://selenic.com/tiny/2.6.2-rc3-tiny1-broken-out.tar.bz2

Webpage for your bookmarking pleasure:

http://selenic.com/tiny-about/

Signature · 1 line
Matt Mackall : http://www.selenic.com : Linux development and consulting
#1 lore raw
Quoted 1 line · Matt Mackall

...

The patch contains 3 .orig files that could be removed:
linux-2.6.2-rc3/arch/i386/boot/compressed/misc.c.orig linux-2.6.2-rc3/arch/i386/mm/init.c.orig linux-2.6.2-rc3/fs/proc/proc_misc.c.orig

Quoted 4 lines

Latest release includes:
...
- enhanced CPU feature selection (Adrian Bunk)
...

You could kill all the CPU_SUP_* options with my CPU selection scheme.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed
#2 lore raw
Quoted 8 lines · Adrian Bunk
Quoted 1 line · Matt Mackall

...

The patch contains 3 .orig files that could be removed:
linux-2.6.2-rc3/arch/i386/boot/compressed/misc.c.orig linux-2.6.2-rc3/arch/i386/mm/init.c.orig linux-2.6.2-rc3/fs/proc/proc_misc.c.orig

Quoted 6 lines
Quoted 4 lines

Latest release includes:
...
- enhanced CPU feature selection (Adrian Bunk)
...

You could kill all the CPU_SUP_* options with my CPU selection scheme.

I looked at that but ended up deciding I still didn't have the desired granularity. So I'm currently thinkg of your stuff as "select family" and my stuff as "select vendor support".

Signature · 1 line
Matt Mackall : http://www.selenic.com : Linux development and consulting
#3 lore raw
Quoted 14 lines · Matt Mackall
Quoted 13 lines · Adrian Bunk
Quoted 1 line · Matt Mackall

...

The patch contains 3 .orig files that could be removed:
linux-2.6.2-rc3/arch/i386/boot/compressed/misc.c.orig linux-2.6.2-rc3/arch/i386/mm/init.c.orig linux-2.6.2-rc3/fs/proc/proc_misc.c.orig

Quoted 4 lines

Latest release includes:
...
- enhanced CPU feature selection (Adrian Bunk)
...

Quoted 5 lines
Quoted 1 line

You could kill all the CPU_SUP_* options with my CPU selection scheme.

I looked at that but ended up deciding I still didn't have the desired granularity. So I'm currently thinkg of your stuff as "select family" and my stuff as "select vendor support".

Note that this only makes a difference for the CPU_486 and CPU_586 choices - all more recent CPU_* options include both.

cu
Adrian

Signature · 4 lines
       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed