Re: show_mem panics in 2.4.22

From: Martin Pool <mbp_at_sourcefrog.net>
Date: 2003-10-29 17:22:42
On 29 Oct 2003, Martin Pool <mbp@sourcefrog.net> wrote:
> On 28 Oct 2003, John Marvin <jsm@udlkern.fc.hp.com> wrote:
> > > I'm running linux-2.4.22-ia64-030909 on an rx2600.  The show_mem()
> > > function always causes a kernel panic.  This is reached when you send
> > > 'SysRq m' or serial 'BREAK m' to find out about used memory, etc.
> > >
> > > The problem seems to be that this function is written assuming that
> > > the discontiguous memory scheme is used, but that's not the case in my
> > > configuration.  I see that in 2.6.0-test8 there are two versions of
> > > the function for the contig/discontig cases.  The crash is on the line
> > > that reads through pgdat->node_mem_map.  I'm not sure exactly what is
> > > wrong with that.
> > 
> > 
> > I'm not sure why this just started to show up. The problem is that
> > the size of struct page doesn't divide into the page size evenly, so
> > the structure overlaps holes in the mem_map array. Here is a fix,
> > but I am still not sure of the performance implications (extra memory
> > dereference). There may be a better fix, although not as simple, if
> > this has performance implications.

I made a mistake in merging your patch.  That does fix it for me.

Does the mem_map have unmapped pages in it because
free_area_init_core() pokes holes in it for pages that are not
physically present?

-- 
Martin 
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Oct 29 01:23:28 2003

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:20 EST