Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Recurring kernel paging request errors...
@ 1997-12-16  9:04 Terran Lane
  1997-12-16 19:11 ` James R. Shipman
  0 siblings, 1 reply; 11+ messages in thread
From: Terran Lane @ 1997-12-16  9:04 UTC (permalink / raw)


-----BEGIN PGP SIGNED MESSAGE-----

I know this has been asked a couple of times in the past, but I have
yet to see a satisfactory (or any, really) answer.  So, I implore
again: Oh great kernel gurus, knowledgeable in the ways of the virtual
memory system and the mysteries of the Alpha architecture: I beg of
you, dispense a fragment of your omniscience upon us lowly users...

Far and away the largest stability problem with my Linux/Alpha box is
errors of the following form:
	Unable to handle kernel paging request at virtual address <foo>
followed by an Oops (usually from a daemon, but occassionally from a
user process).  Usually the system is toast shortly thereafter.  VC
switching usually still works and any open shells accept keystrokes,
but any attempt to fork just hangs (i.e. `exec'ing a prog at the shell
level succeeds, but just calling a prog hangs the shell
irrecoverably).  Quick downward spiral as I attempt to `exec su'
and try to get the system down cleanly before I have no more available
shells to exec from.

Of course, sometimes it's even less nice and the whole thing just
hangs hard shortly after the paging request failure.

I've seen this behavior in a number of kernels up to and including
2.0.28 (including a couple of devel kernels), and up through RedHat
4.2.  I've tried a variety of differnt kernel compile params, all to
no success.

So...  Does anyone have an intuition as to what's going on?  Is it
something I have configured wrong (I'll gladly post/send my full
system HW/SW configs and full text of the error/oops log messages if
it would be of help), or is it a kernel bug?  Does anyone have _any_
idea how to fix it?  I'd really appreciate any feedback anyone has on
this.  If this isn't the right forum for this question, please point
me to the right one and I'll forward this on to them.

Thanks much for any assistance.

- -- 
Terran Lane   email=terran@ecn.purdue.edu
              WWW=http://purcell.ecn.purdue.edu/~terran/
              PGP key=http://purcell.ecn.purdue.edu/~terran/facts/pgp_key.html
  "But I don't want to go among mad people," Alice remarked.
  "Oh, you can't help that," said the Cat: "we're all mad here. I'm mad.
      You're mad."
  "How do you know I'm mad?" said Alice.
  "You must be," said the Cat, "or you wouldn't have come here."

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBNJZD17MDUT3RkOdNAQGjlwP/XLgCOsA6ZKQBQVXOMiv+Q1j7bWR49CC1
pfI8udiOy2OtS4HQeYalAWbvc9w4NrrCPKDGQ5kGgnZ4pgrt7mYUz/6TIvLq7Gaq
us6n/5sT94AK3kibi7eu7oj3GuZ9QErfnWKC9VxNRLXwiBNcC0+H2oiPBylsCQ1a
mfGg8xl+YpY=
=T1U0
-----END PGP SIGNATURE-----

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: Recurring kernel paging request errors...
  1997-12-16 19:11 ` James R. Shipman
@ 1997-12-16 10:17   ` Jay.Estabrook
  1997-12-19  9:13     ` Terran Lane
  1997-12-17  3:41   ` Huw Davies
  1 sibling, 1 reply; 11+ messages in thread
From: Jay.Estabrook @ 1997-12-16 10:17 UTC (permalink / raw)


>>> "James R. Shipman" said:
> >Far and away the largest stability problem with my Linux/Alpha box is
> >errors of the following form:
> >	Unable to handle kernel paging request at virtual address <foo>
> >followed by an Oops (usually from a daemon, but occassionally from a
> >user process).
> 
> I see this problem too on my PC164LX, and there is NO WAY that it is a disk
> failure!

Have you tried 2.0.32 plus the alpha-patches-2.0.32-0.1?

Does it still happen?

--Jay++

-------------------------------------------------------------------------------
  American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook                         Alpha Migration Tools - LINUX Project
Digital Equipment Corp.                 (978) 506-4202 or (DTN) 226-4202
151 Taylor Street - TAY1-2              enet: Jay.Estabrook@digital.com
Littleton, MA 01460-1407
-------------------------------------------------------------------------------

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: Recurring kernel paging request errors...
@ 1997-12-16 13:42 Mike Howard
  0 siblings, 0 replies; 11+ messages in thread
From: Mike Howard @ 1997-12-16 13:42 UTC (permalink / raw)


The non-guru, naive answer:

Step 1:
 find . -name '*.c' -exec grep -i -l 'Unable to handle kernel paging request at virtual address' {} \;

Which yeilds:
./arch/alpha/mm/fault.c

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

* Re: Recurring kernel paging request errors...
@ 1997-12-16 13:42 Mike Howard
  0 siblings, 0 replies; 11+ messages in thread
From: Mike Howard @ 1997-12-16 13:42 UTC (permalink / raw)


/*
 * Oops. The kernel tried to access some bad page. We'll have to
 * terminate things with extreme prejudice.
 */
	printk(KERN_ALERT 
	       "Unable to handle kernel paging request at virtual address %016lx\n", address);
	die_if_kernel("Oops", &regs, cause);
	do_exit(SIGKILL);
}

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

* Re: Recurring kernel paging request errors...
@ 1997-12-16 13:42 Mike Howard
  0 siblings, 0 replies; 11+ messages in thread
From: Mike Howard @ 1997-12-16 13:42 UTC (permalink / raw)


Maybe the `guy's who actually hack the kernel can tell you more -
assuming you've already tried the above.

Regards,

-- 
Mike Howard <mike@clove.com>

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: Recurring kernel paging request errors...
  1997-12-16  9:04 Recurring kernel paging request errors Terran Lane
@ 1997-12-16 19:11 ` James R. Shipman
  1997-12-16 10:17   ` Jay.Estabrook
  1997-12-17  3:41   ` Huw Davies
  0 siblings, 2 replies; 11+ messages in thread
From: James R. Shipman @ 1997-12-16 19:11 UTC (permalink / raw)


At 04:04 AM 12/16/97 -0500, you wrote:
>Far and away the largest stability problem with my Linux/Alpha box is
>errors of the following form:
>	Unable to handle kernel paging request at virtual address <foo>
>followed by an Oops (usually from a daemon, but occassionally from a
>user process).

I see this problem too on my PC164LX, and there is NO WAY that it is a disk
failure!

Jim

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: Recurring kernel paging request errors...
@ 1997-12-16 20:11 Harvey J. Stein
  0 siblings, 0 replies; 11+ messages in thread
From: Harvey J. Stein @ 1997-12-16 20:11 UTC (permalink / raw)


"James R. Shipman" <JimS@ibm.net> writes:

> 
> At 04:04 AM 12/16/97 -0500, you wrote:
> >Far and away the largest stability problem with my Linux/Alpha box is
> >errors of the following form:
> >	Unable to handle kernel paging request at virtual address <foo>
> >followed by an Oops (usually from a daemon, but occassionally from a
> >user process).
> 
> I see this problem too on my PC164LX, and there is NO WAY that it is a disk
> failure!

The 2.0.x, x<=30 had very poor memory management which would lead to
Oopses & "unable to handle kernel paging request"s.  They tried to fix
this in 2.0.31, & tried to fix the bugs in the fixes in 2.0.32.  I
think they were fairly successful.

How much RAM do you have in your system?  What are you running?

In any case, with 2.0.30, and probably with earlier kernels, one can
adjust some of the swap parameters to reduce the problem somewhat.  I
sometimes do:

    echo 20      3       1       3       10      2       2   4       32      4 16384 16384 >>/proc/sys/vm/swapctl

on my intel box to keep it from going into convulsions when running
netscape with 20 independent windows.

You can also try increasing the numbers you see when catting
/proc/sys/vm/freepages.

Or, you can try upgrading to 2.0.32, but then you might not be able to
apply the patches for shared memory & em86, but I don't know which
parts of them made it into 2.0.32.

-- 
Harvey J. Stein
Berger Financial Research
hjstein@bfr.co.il

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: Recurring kernel paging request errors...
  1997-12-16 19:11 ` James R. Shipman
  1997-12-16 10:17   ` Jay.Estabrook
@ 1997-12-17  3:41   ` Huw Davies
  1 sibling, 0 replies; 11+ messages in thread
From: Huw Davies @ 1997-12-17  3:41 UTC (permalink / raw)


At 11:11 AM 12/16/97 -0800, James R. Shipman wrote:
>At 04:04 AM 12/16/97 -0500, you wrote:
>>Far and away the largest stability problem with my Linux/Alpha box is
>>errors of the following form:
>>	Unable to handle kernel paging request at virtual address <foo>
>>followed by an Oops (usually from a daemon, but occassionally from a
>>user process).
>
>I see this problem too on my PC164LX, and there is NO WAY that it is a disk
>failure!

I am helping one of our Maths people who is seeing this sort of kernel oops
rather too frequently on his XL-366. A "simple" amount of debugging with
gdb lead to the conclusion that there was an error somewhere in
linux-2.0.32/fs/proc/array.c within the function get_array. This problem is
triggered by running top which examines /proc to get system information. So
this type of kernel paging fault does not necessarily mean that the disk is
bad. Of course, it could be the cause here, you get interesting effects if
you swap code or data out and something different comes back from a bad
disk....

I've got the code at home and am trying to find out which bit of c is
failing. I've got the alpha assembler code, the c code, the guide to alpha
assembly language program - all I need is the time to look at it. So far
this week our Student Enrollment system has hiccuped and the finance
database has corrupted itself - for some reason my boss doesn't see linux
kernel debugging as a high priority....

 Huw Davies                      | e-mail: Huw.Davies@latrobe.edu.au
 Information Technology Services | Phone: +61 3 9479 1550  Fax: +61 3 9479
1999
 La Trobe University             | "My Alfas keep me poor in a monetary
 Melbourne Australia 3083        | sense, but rich in so many other ways"

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: Recurring kernel paging request errors...
       [not found] <199712161342.IAA26043@clove.com>
@ 1997-12-17  8:57 ` Richard Henderson
  0 siblings, 0 replies; 11+ messages in thread
From: Richard Henderson @ 1997-12-17  8:57 UTC (permalink / raw)


On Tue, Dec 16, 1997 at 08:42:30AM -0500, Mike Howard wrote:
>        "Unable to handle kernel paging request at virtual address %016lx\n"
>
> From which I deduce you have a bad spot on your disk.  I would try:
>  A. a new paging disk

No, this is no hardware problem.  A bug in the kernel tried to 
access memory that does not exist, and faulted.

What to do with this is to get hold of all the juicy numbers
describing the state of the processor at the time.  Then look in
the System.map file that was built with the kernel you are now
running, and for each [<...>] number, find the map entry just
before that.  

With a report like this, it becomes possible for someone to look
into the problem and perhaps find an answer.

An additional note for 2.0.x kernels -- there are quite a few
patch sets floating about, and it will be important to know 
what flavour you are using at the time.

r~

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: Recurring kernel paging request errors...
       [not found] <3.0.3.32.19971217144155.009bae20@lucifer.its.latrobe.edu.au>
@ 1997-12-17 12:06 ` Tom Browder
  0 siblings, 0 replies; 11+ messages in thread
From: Tom Browder @ 1997-12-17 12:06 UTC (permalink / raw)


I'm having same type messages--apparently prompted by lpd at the
moment.  Using Seagate Barracuda 9 GB.

Anxiously awaiting installation of RH 5.0 (delayed by heavy use
of current system), but from the messages I've seen so far,
I'm not sure I want to. I really would like to have a stable
system--will we have one soon! My bosses are giving me fits.
Is there any other source for an integrated solution for the
alpha?

Tom Browder

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

* Re: Recurring kernel paging request errors...
  1997-12-16 10:17   ` Jay.Estabrook
@ 1997-12-19  9:13     ` Terran Lane
  0 siblings, 0 replies; 11+ messages in thread
From: Terran Lane @ 1997-12-19  9:13 UTC (permalink / raw)


First, thanks to all of you who have replied to my pleas for help on
the "Unable to handle kernel paging request" issue.  I've seen a
number of different suggestions posted, and I'll try to respond to all
of the points made there.  If I've missed something, or if you think
some other bit of info would be helpful, please let me know.

Thanks again for all of your help...

1) Possibly a problem with the swap partion.

I don't _think_ it's a problem with the swap partition.  I tried
running 'badblocks -w' on it and got none back (no suprise -- it's a
SCSI device, and I think they hide those from you, yes?) and
re-mkswap-ing it with the -c option.  No help there.  I also threw
together a small program to hammer memory+swap moderately hard and
experienced no problems.  Besides -- the problem has occured when the
system is practically unloaded.  This is a machine with 96Mb of
memory, and as I don't often run X (monitor problems -- unrelated), it
usually isn't terribly loaded.  Though it does occur more often when
doing things like kernel compiles.

2) Try 2.0.32 or higher.

Haven't yet, will do.  I'll let you know my experiences when I do.
Though because this problem is somewhat sporadic and I have yet to
figure out a guaranteed way of replicating it, it'll be a bit hard to
determine whether it's fixed immediately.

3)  Tweak the kernel freepages and swap parameters via /proc

I'm not familiar with these and they aren't documented in my proc man
page.  Is there documentation outside the kernel sources, or do I have
to delve into that?  (Please understand, while I've hacked my share of
low-level code, these days I do AI and prefer to stay as far from the
bare metal as I possibly can.  User-level docs preferred.)

4)  Find the running function from the System.map file

<sigh>  Sorry.  I don't happen to have a map for any of my kernels
laying around at the moment.  The last one I had got trashed when I
reconfigured my kernel to use the BSD NCR driver in the vain hopes
that _that_ would cure my problem.  (It might have, except that it
introduced a _new_ set of problems... <sigh>)  When I build the .32
kernel, I'll make sure to save one.

5) In general, provide more info on your system configuration.

Glad to.

Hardware:
motherboard:		Cabriolet
cpu:			21064A, 275Mhz
RAM:			96Mb
swap:			64Mb
cache:			2Mb
SCSI controller:	NCR53c810 r2
video:			Diamond Stealth 64 VRAM, S3 968.0, 2Mb
disks:			Fujitsu M2651S-512, 1.4Gb
			Sony CDU-76S CD-ROM
			SyQuest SyJet

Software:
Kernel revisions:	1.3.43
			1.3.81
			1.3.99
			2.0.0
			pre-2.0.14
			2.1.13
			2.0.28
Kernels were patched only with the appropriate axp-diffs from
azstarnet.

Distributions:		RedHat 3.0.3
			RedHat 4.0
			RedHat 4.2

And I know it's likely not much help without a .map, but to give you a
fuller sense of what's going on, here's a typical crash sequence from
the system logs.

Nov 27 06:05:10 thaumaturge kernel: Unable to handle kernel paging request at virtual address 00000000006fb921
Nov 27 06:05:10 thaumaturge kernel: kswapd(3): Oops 0
Nov 27 06:05:10 thaumaturge kernel: pc = [<fffffc000032c980>] ps = 0000
Nov 27 06:05:10 thaumaturge kernel: rp = [<fffffc0000333050>] sp = fffffc000003bdf0
Nov 27 06:05:10 thaumaturge kernel: r0=0 r1=6fb8f9 r2=2b01 r3=6fb8f9
Nov 27 06:05:10 thaumaturge kernel: r8=15556188000
Nov 27 06:05:10 thaumaturge kernel: r16=0 r17=0 r18=fffffc0005d06550 r19=15556180000
Nov 27 06:05:10 thaumaturge kernel: r20=0 r21=0 r22=4 r23=300000
Nov 27 06:05:10 thaumaturge kernel: r24=2f800000000 r25=6f800000000 r26=fffffc0000333050 r27=fffffc000032c8a8
Nov 27 06:05:10 thaumaturge kernel: r28=1 r29=fffffc000045d010 r30=fffffc000003bdf0
Nov 27 06:05:10 thaumaturge kernel: Code: e4200016  44210403  41259404 <a0230028> 48209781  40651402  e020000c  a8c30028  44c21001 
Nov 27 06:06:00 thaumaturge kernel: Unable to handle kernel paging request at virtual address 00000000006fb921
Nov 27 06:06:00 thaumaturge kernel: crond(96): Oops 0
Nov 27 06:06:00 thaumaturge kernel: pc = [<fffffc000032c980>] ps = 0000
Nov 27 06:06:00 thaumaturge kernel: rp = [<fffffc0000333050>] sp = fffffc0005977df0
Nov 27 06:06:00 thaumaturge kernel: r0=7 r1=6fb8f9 r2=c00 r3=6fb8f9
Nov 27 06:06:00 thaumaturge kernel: r8=11fffe000
Nov 27 06:06:00 thaumaturge kernel: r16=6 r17=0 r18=1 r19=0
Nov 27 06:06:00 thaumaturge kernel: r20=1555583f4b0 r21=7 r22=4 r23=155556fafa8
Nov 27 06:06:00 thaumaturge kernel: r24=fffffc0000311608 r25=d r26=fffffc0000333050 r27=fffffc000032c8a8
Nov 27 06:06:00 thaumaturge kernel: r28=1 r29=fffffc000045d010 r30=fffffc0005977df0
Nov 27 06:06:00 thaumaturge kernel: Code: e4200016  44210403  41259404 <a0230028> 48209781  40651402  e020000c  a8c30028  44c21001 
Nov 27 06:06:26 thaumaturge kernel: Unable to handle kernel paging request at virtual address 00000000006fb921
Nov 27 06:06:26 thaumaturge kernel: tcsh(8444): Oops 0
Nov 27 06:06:26 thaumaturge kernel: pc = [<fffffc000032c980>] ps = 0000
Nov 27 06:06:26 thaumaturge kernel: rp = [<fffffc0000333050>] sp = fffffc0005977bd0
Nov 27 06:06:26 thaumaturge kernel: r0=7 r1=6fb8f9 r2=c00 r3=6fb8f9
Nov 27 06:06:26 thaumaturge kernel: r8=80
Nov 27 06:06:26 thaumaturge kernel: r16=6 r17=0 r18=1 r19=3fff8
Nov 27 06:06:26 thaumaturge kernel: r20=2 r21=7 r22=4 r23=1f32000
Nov 27 06:06:26 thaumaturge kernel: r24=2f800000000 r25=6f800000000 r26=fffffc0000333050 r27=fffffc000032c8a8
Nov 27 06:06:26 thaumaturge kernel: r28=7 r29=fffffc000045d010 r30=fffffc0005977bd0
Nov 27 06:06:26 thaumaturge kernel: Code: e4200016  44210403  41259404 <a0230028> 48209781  40651402  e020000c  a8c30028  44c21001 
Nov 27 06:06:45 thaumaturge kernel: Unable to handle kernel paging request at virtual address 00000000006fb921
Nov 27 06:06:45 thaumaturge kernel: init(1): Oops 0
Nov 27 06:06:45 thaumaturge kernel: pc = [<fffffc000032c980>] ps = 0000
Nov 27 06:06:45 thaumaturge kernel: rp = [<fffffc0000333050>] sp = fffffc00005e1c10
Nov 27 06:06:45 thaumaturge kernel: r0=7 r1=6fb8f9 r2=c00 r3=6fb8f9
Nov 27 06:06:45 thaumaturge kernel: r8=5f1
Nov 27 06:06:45 thaumaturge kernel: r16=6 r17=0 r18=1 r19=1
Nov 27 06:06:45 thaumaturge kernel: r20=4c455645 r21=7 r22=4 r23=1
Nov 27 06:06:45 thaumaturge kernel: r24=fffffc0000311608 r25=0 r26=fffffc0000333050 r27=fffffc000032c8a8
Nov 27 06:06:45 thaumaturge kernel: r28=fffffffffffffff4 r29=fffffc000045d010 r30=fffffc00005e1c10
Nov 27 06:06:45 thaumaturge kernel: Code: e4200016  44210403  41259404 <a0230028> 48209781  40651402  e020000c  a8c30028  44c21001 

-- 
Terran Lane   email=terran@ecn.purdue.edu
              WWW=http://purcell.ecn.purdue.edu/~terran/
              PGP key=http://purcell.ecn.purdue.edu/~terran/facts/pgp_key.html
  "But I don't want to go among mad people," Alice remarked.
  "Oh, you can't help that," said the Cat: "we're all mad here. I'm mad.
      You're mad."
  "How do you know I'm mad?" said Alice.
  "You must be," said the Cat, "or you wouldn't have come here."

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

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

end of thread, other threads:[~1997-12-19  9:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-12-16  9:04 Recurring kernel paging request errors Terran Lane
1997-12-16 19:11 ` James R. Shipman
1997-12-16 10:17   ` Jay.Estabrook
1997-12-19  9:13     ` Terran Lane
1997-12-17  3:41   ` Huw Davies
  -- strict thread matches above, loose matches on Subject: below --
1997-12-16 13:42 Mike Howard
1997-12-16 13:42 Mike Howard
1997-12-16 13:42 Mike Howard
1997-12-16 20:11 Harvey J. Stein
     [not found] <199712161342.IAA26043@clove.com>
1997-12-17  8:57 ` Richard Henderson
     [not found] <3.0.3.32.19971217144155.009bae20@lucifer.its.latrobe.edu.au>
1997-12-17 12:06 ` Tom Browder

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