Re: Known memory leaks in 2.0.31-pre-10-2.1 ?

Rogier Wolff (R.E.Wolff@BitWizard.nl)
Wed, 15 Oct 1997 11:18:52 +0200 (MET DST)


Ingo Molnar wrote:
>
> On Tue, 14 Oct 1997, ADAM Sulmicki wrote:
>
> >
> > ->> [adam@eax Linux.all]$ free
> > ->> total used free shared buffers cached
> > ->> Mem: 63280 62172 1108 5828 272 3104
> > ->> -/+ buffers: 58796 4484
> > ->> Swap: 130748 19304 111444
> > ->
> > ->could you do 'Shift-ScrollLock', to see how this 'lost' memory is
> > ->distributed within the kernel?
> >
> > :-) How I do that on {head,floppy,keyboard,mouse}-less machine ? :P
>
> <g>. as far as i know, show_mem() [which is triggered] is called deep
> within keyboard.c, and i see no way to trigger this 'externally'.
>
> but you can use this small module:
>
> ----=>
> void (* show_mem) () = 0xc123567;
>
> int init_module(void)
> {
> show_mem();
> return 0;
^^^
> }
>
> void cleanup_module(void)
> {
> }
> <=----

I always use "-ENODEV" to unload the module immediately if I need such
a "do something quickly in kernel space" module.

Roger.

-- 
** R.E.Wolff@BitWizard.nl ** +31-15-2137555 ** http://www.BitWizard.nl/ **
Florida -- A 39 year old construction worker woke up this morning when a
109-car freight train drove over him. According to the police the man was 
drunk. The man himself claims he slipped while walking the dog. 080897