Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] not freeing initmem?
@ 2002-03-06 15:19 Ralf Hildebrandt
  2002-03-06 15:24 ` Helge Deller
  2002-03-06 15:27 ` Ralf Hildebrandt
  0 siblings, 2 replies; 4+ messages in thread
From: Ralf Hildebrandt @ 2002-03-06 15:19 UTC (permalink / raw)
  To: parisc-linux



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [parisc-linux] not freeing initmem?
  2002-03-06 15:19 [parisc-linux] not freeing initmem? Ralf Hildebrandt
@ 2002-03-06 15:24 ` Helge Deller
  2002-03-06 16:45   ` Alan Cox
  2002-03-06 15:27 ` Ralf Hildebrandt
  1 sibling, 1 reply; 4+ messages in thread
From: Helge Deller @ 2002-03-06 15:24 UTC (permalink / raw)
  To: Ralf Hildebrandt, parisc-linux

There is still one or more __init 's too much somewhere. 
If we would free the memory without fixing/finding this place first, 
the kernel will crash.

Helge

On Wednesday 06 March 2002 16:19, Ralf Hildebrandt wrote:
> From my dmesg output of the recent 2.4.18-pa3:
>
> ...
> EXT3-fs: mounted filesystem with ordered data mode.
> VFS: Mounted root (ext3 filesystem) readonly.
> NOT FREEING INITMEM (351k)
> Adding Swap: 124800k swap-space (priority -1)
> EXT3 FS 2.4-0.9.17, 10 Jan 2002 on sd(8,3), internal journal
> ...
>
> What does that mean? Why is the memory not freed on PA-RISC, but freed
> on x86?
>
> On my x86 box:
>
> ...
> EXT3-fs: mounted filesystem with ordered data mode.
> VFS: Mounted root (ext3 filesystem) readonly.
> Freeing unused kernel memory: 224k freed
> EXT3 FS 2.4-0.9.17, 10 Jan 2002 on ide0(3,2), internal journal
> Real Time Clock Driver v1.10e
> ...

-- 
Helge Deller
SAP AG - LinuxLab and Unix Platforms
email: helge.deller@sap.com
Phone: +49 6227 7 - 67783

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [parisc-linux] not freeing initmem?
  2002-03-06 15:19 [parisc-linux] not freeing initmem? Ralf Hildebrandt
  2002-03-06 15:24 ` Helge Deller
@ 2002-03-06 15:27 ` Ralf Hildebrandt
  1 sibling, 0 replies; 4+ messages in thread
From: Ralf Hildebrandt @ 2002-03-06 15:27 UTC (permalink / raw)
  To: Ralf Hildebrandt; +Cc: parisc-linux

Am 06.03.2002 um 16:19:13 +0100 schrieb Ralf Hildebrandt folgendes:

> What does that mean? Why is the memory not freed on PA-RISC, but freed
> on x86?

OK, I grepped for that string and found the infamous FIXME:

/* FIXME: */
        printk(KERN_INFO "NOT FREEING INITMEM (%dk)\n",
                        (&__init_end - &__init_begin) >> 10);
        return;			

OTOH, why does the code below that not work for PA-RISC?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [parisc-linux] not freeing initmem?
  2002-03-06 15:24 ` Helge Deller
@ 2002-03-06 16:45   ` Alan Cox
  0 siblings, 0 replies; 4+ messages in thread
From: Alan Cox @ 2002-03-06 16:45 UTC (permalink / raw)
  To: Helge Deller; +Cc: Ralf Hildebrandt, parisc-linux

> There is still one or more __init 's too much somewhere. 
> If we would free the memory without fixing/finding this place first, 
> the kernel will crash.

Disable interrupts, memset all the freed pages to an invalid instruction in
parisc asm at the point you free the init pages, then re-enable ints and
the traceback should give you a direct stack trace to the offender

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-03-06 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-06 15:19 [parisc-linux] not freeing initmem? Ralf Hildebrandt
2002-03-06 15:24 ` Helge Deller
2002-03-06 16:45   ` Alan Cox
2002-03-06 15:27 ` Ralf Hildebrandt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox