Re: OOPS with slab cache

From: Keith Owens (kaos@ocs.com.au)
Date: Tue Jan 11 2000 - 20:14:18 EST


On Tue, 11 Jan 2000 20:56:00 -0300,
Horst von Brand <vonbrand@pincoya.inf.utfsm.cl> wrote:
>Jamie Lokier <lkd@tantalophile.demon.co.uk> said:
>> Now that /is/ a nice idea. It shouldn't take much memory --
>> __persistant would probably be a small section that could be kmalloced.
>
>No, just make it a fixed variable inside the kernel. No kmalloc() or other
>overhead at all. If it will stay put regardless, why make it dynamic?

* Fixed variables have to be in a separate source file.
* They have to be maintained separately from the main code that uses
  them.
* Either the fixed variables are always compiled into the kernel or the
  source that defines the fixed variables is wrapped in #ifdef
  CONFIG_...
* The source that defines the fixed variables has to include lots of .h
  files to get all the variable types.

All of the above used to be done, see the 2.2 init/main.c code. But it
is difficult to maintain and was replaced by __init code in 2.3.

-
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/



This archive was generated by hypermail 2b29 : Sat Jan 15 2000 - 21:00:19 EST