Linux-kernel mailing list archive 1998-10,: PATCH: move more functions and data into init memory (2.1.89)

# PATCH: move more functions and data into init memory (2.1.89)

Matthias Hanisch (matze@camline.com)
Wed, 11 Mar 1998 10:28:47 +0100 (MET)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Gabriel Paubert: "Re: PCI Driver for NIC, base address problem!!"
- Previous message: Marcin Dalecki: "pre-90"

This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-16838-889608527=:20598
Content-Type: TEXT/PLAIN; charset=US-ASCII

The following patch against 2.1.89 is the result of a walk through the
initialization code dependent on my configuration. It moves about 3500
bytes of code, data and strings into the the init segments (that will be
freed after initialization is done) and so saves 1 page of unswappable
memory in most cases.

It has worked for me for two days with 2.1.89 (also formerly with 2.1.88)
and if I get some success reports I'm going to send it to Linus.

I am not so sure about the best method getting init strings into the
initdata segment. I haven't found a clean method like

"foobar" __initdata

to bring strings directly into .init.data. Maybe we should consider a new
section .rodata.init or something similar for this. Also there are some
string arrays like the kernel command line parameters in init/main.c (or
the SCSI blacklist) that I don't know how to move them into .data.init in
a clean way. Suggestions are welcome!

Let me repeat that the transition to init segments is only done as far as
my configuration is concerned (and this isn't even complete). Surely
there are a lot of code and data fragments that are only used at
initialization time and should be declared for the init sections.

I am going to volunteer and collect these patches for inclusion into the
kernel.

Have fun,
Matze

    --
    Matthias Hanisch    gesch.: matze@camline.com    priv.: matze@pingu.franken.de
                                +49 8137 935-219            +49 8441 82387

    "Modell 10 - Software from Experts for Experts"

    ---559023410-16838-889608527=:20598
    Content-Type: TEXT/PLAIN; charset=US-ASCII; name=patch-init-v4
    Content-Transfer-Encoding: BASE64
    Content-ID: <Pine.SCO.3.96.980311102847.20598B@cam8.camline.com>
    Content-Description:

    [encoded data, 29402 characters]
    cyAocHJvdG9jb2wpIGZhbWlsaWVzLiANCg==
    ---559023410-16838-889608527=:20598--

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu

- Next message: Gabriel Paubert: "Re: PCI Driver for NIC, base address problem!!"
- Previous message: Marcin Dalecki: "pre-90"