2002-08-11 23:31:53

by Studying MTD

[permalink] [raw]
Subject: kernel BUG at page_alloc.c

Hello all,

I am getting kernel BUG when i deal with big files :-

kernel BUG at page_alloc.c:203!

I am using 2.4.1 on SH4 and using only 32 MB RAM
without hard-disk, so only thing i am using is 32 MB
RAM .


/* page_alloc.c */
if (BAD_RANGE(zone,page))
BUG();
DEBUG_ADD_PAGE <--- line no 203


/* linux/swap.h */

#define DEBUG_ADD_PAGE \
if (PageActive(page) || PageInactiveDirty(page) || \
PageInactiveClean(page)) BUG();


Can someone please guide me and let me know the
work-around for this kernel BUG.

Thanks for your help.


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com


2002-08-12 00:15:28

by Studying MTD

[permalink] [raw]
Subject: Re: kernel BUG at page_alloc.c

No, I am not using Nvidia.

Can you please let me know, who can cause this BUG ,
or their is any way to trace or work around for this
BUG :-

#define DEBUG_ADD_PAGE \
if (PageActive(page) || PageInactiveDirty(page) ||
\
PageInactiveClean(page)) BUG();

Thanks.

--- Ed Tomlinson <[email protected]> wrote:
> Have you ever loaded any propriority modules on this
> kernel?
> Nvidia is the most common cause of this sort of bug.
> I which
> case you need to talk to them - only they have the
> source.
>
> Ed Tomlinson
>
> Studying MTD wrote:
>
> > Hello all,
> >
> > I am getting kernel BUG when i deal with big files
> :-
> >
> > kernel BUG at page_alloc.c:203!
> >
> > I am using 2.4.1 on SH4 and using only 32 MB RAM
> > without hard-disk, so only thing i am using is 32
> MB
> > RAM .
> >
> >
> > /* page_alloc.c */
> > if (BAD_RANGE(zone,page))
> > BUG();
> > DEBUG_ADD_PAGE <--- line no 203
> >
> >
> > /* linux/swap.h */
> >
> > #define DEBUG_ADD_PAGE \
> > if (PageActive(page) || PageInactiveDirty(page) ||
> \
> > PageInactiveClean(page)) BUG();
> >
> >
> > Can someone please guide me and let me know the
> > work-around for this kernel BUG.
> >
> > Thanks for your help.
> >


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

2002-08-12 00:23:42

by Studying MTD

[permalink] [raw]
Subject: Re: kernel BUG at page_alloc.c

I also want to use latest kernel but new kernels give
many compilation errors and their links are broken for
SH platform.

Thanks.

--- Tomas Szepe <[email protected]> wrote:
> > I am using 2.4.1 on SH4 and using only 32 MB RAM
> > without hard-disk, so only thing i am using is 32
> MB
> > RAM .
>
> Could you try a more recent kernel?
> 2.4.1 is now almost 2 years old.
>
> T.


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

2002-08-12 00:38:10

by Studying MTD

[permalink] [raw]
Subject: Re: kernel BUG at page_alloc.c

I have noticed that difference in 2.4.1 and 2.5.25 is
:-

(2.4.1)
if (BAD_RANGE(zone,page))
BUG();
DEBUG_ADD_PAGE

(2.2.25)
if (bad_range(zone, page))
BUG();
prep_new_page(page);


prep_new_page(page) is replaced with DEBUG_ADD_PAGE
and prep_newpage is :-

/*
* This page is about to be returned from the page
allocator
*/
static inline void prep_new_page(struct page *page)
{
BUG_ON(page->mapping);
BUG_ON(PagePrivate(page));
BUG_ON(PageLocked(page));
BUG_ON(PageLRU(page));
BUG_ON(PageActive(page));
BUG_ON(PageDirty(page));
BUG_ON(PageWriteback(page));
page->flags &= ~(1 << PG_uptodate | 1 <<
PG_error |
1 << PG_referenced | 1 <<
PG_arch_1 |
1 << PG_checked);
set_page_count(page, 1);
}

vs

#define DEBUG_ADD_PAGE \
if (PageActive(page) || PageInactiveDirty(page) || \
PageInactiveClean(page)) BUG();

Can i also replace DEBUG_ADD_PAGE with prep_new_page
in 2.4.1. Is it OK ?

Thank you very much for your help.


--- Tomas Szepe <[email protected]> wrote:
> > I am using 2.4.1 on SH4 and using only 32 MB RAM
> > without hard-disk, so only thing i am using is 32
> MB
> > RAM .
>
> Could you try a more recent kernel?
> 2.4.1 is now almost 2 years old.
>
> T.


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

2002-08-12 00:43:00

by Tomas Szepe

[permalink] [raw]
Subject: Re: kernel BUG at page_alloc.c

I reckon you'll have to get in touch with the SH port maintainers
and ask them directly. Have a peek in $linuxsrc/MAINTAINERS.

Have you tried any of the kernels available from
http://www.m17n.org/linux-sh/
?

T.


> I have noticed that difference in 2.4.1 and 2.5.25 is
> :-
>
> (2.4.1)
> if (BAD_RANGE(zone,page))
> BUG();
> DEBUG_ADD_PAGE
>
> (2.2.25)
> if (bad_range(zone, page))
> BUG();
> prep_new_page(page);
>
>
> prep_new_page(page) is replaced with DEBUG_ADD_PAGE
> and prep_newpage is :-
>
> /*
> * This page is about to be returned from the page
> allocator
> */
> static inline void prep_new_page(struct page *page)
> {
> BUG_ON(page->mapping);
> BUG_ON(PagePrivate(page));
> BUG_ON(PageLocked(page));
> BUG_ON(PageLRU(page));
> BUG_ON(PageActive(page));
> BUG_ON(PageDirty(page));
> BUG_ON(PageWriteback(page));
> page->flags &= ~(1 << PG_uptodate | 1 <<
> PG_error |
> 1 << PG_referenced | 1 <<
> PG_arch_1 |
> 1 << PG_checked);
> set_page_count(page, 1);
> }
>
> vs
>
> #define DEBUG_ADD_PAGE \
> if (PageActive(page) || PageInactiveDirty(page) || \
> PageInactiveClean(page)) BUG();
>
> Can i also replace DEBUG_ADD_PAGE with prep_new_page
> in 2.4.1. Is it OK ?
>
> Thank you very much for your help.
>
>
> --- Tomas Szepe <[email protected]> wrote:
> > > I am using 2.4.1 on SH4 and using only 32 MB RAM
> > > without hard-disk, so only thing i am using is 32
> > MB
> > > RAM .
> >
> > Could you try a more recent kernel?
> > 2.4.1 is now almost 2 years old.
> >
> > T.
>
>
> __________________________________________________
> Do You Yahoo!?
> HotJobs - Search Thousands of New Jobs
> http://www.hotjobs.com

--
T.
,
. ~ ~ .
.'@ )) .. '..~
> - ~` '~\{ ejm'97