Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: alvin <alvin@iplink.net>
To: axp-list@redhat.com
Subject: Re: problems with md driver (RAID-1) on RH 7.2, DP264 machine --  SOLUTION
Date: Tue, 24 Sep 2002 10:59:01 -0400	[thread overview]
Message-ID: <3D907DB5.828F52A1@iplink.net> (raw)
In-Reply-To: 3D906F6D.5E6D989D@groupinfo.com

Chris Szilagyi wrote:
> 
> I have finally found a solution to the RAID-1 problem that I posted earlier
> on the list a while back.  Thanks go to Jay Estabrook for helping us locate
> and find a solution.  The stock 2.4.x kernels with Red Hat are compiled in a
> way that produce random Oopses and "unable to handle kernel paging request",
> when using software RAID-1 on a DP264.  The solution to this problem is to
> add "-fno-strength-reduce" to CFLAGS in arch/alpha/Makefile and recompile
> the entire kernel.  Doing this allowed us to get a stable 2.4.19 kernel on
> RAID-1, using gcc 2.96.
> 
> Hopefully this will help others to get this to work reliably also.
> 
> --
> Chris
> Systems Admin
> Group InfoTech, Inc.
> 
> Chris Szilagyi wrote:
> 
> > Hello,
> >
> > Has anybody been able to successfully use RAID-1 on a DP264 machine?
> >
> > We have posted an issue previously regarding kernel paging errors (Oops
> > messages), with Red Hat 7.2/7.1 on a alpha DP264 (dual EV6 processors).
> > We have the problems using stock kernels and as well as custom kernels.
> > As of right now we are using a custom 2.4.19 kernel.  Thanks to Jay
> > Estabrook for helping us diagnose the error messages, the "unable to
> > handle kernel paging request" problems seem to point to the md driver.
> >
> > Jay also said there are problems while using both channels
> > simultaneously with the integrated Adaptec controller.  We are currently
> > using both channels of the Adaptec, one for each drive to get good
> > performance with RAID-1.  All partitions on on RAID-1 except for the
> > swap partitions and the /boot partition.  We are also curious if anybody
> > has a similar setup to this, and if it is working or has known problems.
> >
> > We've been working on this for over a month, and hopefully close to a
> > solution.

I actaully ended up finding the offending code in the md driver I
believe that this is a bug in the gcc optimizer but I had no luck
creating a small test case and the gcc boys don't like being sent a full
kernel as an example of the bug.

the offending code was:

                new_disk--;
                if (new_disk == disk) {

and breaks on the test of new_disk in the if statement. by changing the
code to 

                new_disk--;
                md_bugcheck(disk);
                if (new_disk == disk) {

where md_bugcheck does nothing but return caused the optimizer to handle
the case differently.

My fear is that this problem is in other locations in the kernel and it
just happened to show up in the raid1.c code in a findable way.

-- 
Alvin Starr                   ||   voice: (416)785-4051
Interlink Connectivity        ||   fax:   (416)785-3668
alvin@iplink.net              ||




  reply	other threads:[~2002-09-24 14:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-03 14:21 problems with md driver (RAID-1) on RH 7.2, DP264 machine Chris Szilagyi
2002-09-24 13:58 ` problems with md driver (RAID-1) on RH 7.2, DP264 machine -- SOLUTION Chris Szilagyi
2002-09-24 14:59   ` alvin [this message]
2002-09-24 15:46     ` Falk Hueffner
2002-09-24 16:31       ` alvin
2002-09-24 16:40         ` George France
2002-09-24 16:38       ` George France
2002-09-24 16:42     ` Michal Jaegermann
2002-09-24 17:05       ` Chris Szilagyi
2002-09-24 17:21       ` alvin
2002-09-24 17:47         ` Chris Szilagyi
2002-09-24 18:28         ` Michal Jaegermann
2002-09-24 18:51           ` George France
2002-09-25  2:49             ` compiler features (was: problems with md driver (RAID-1) on RH 7.2, DP264 machine -- SOLUTION) Alvin Starr
2002-09-25  3:01               ` George France
read-only archive

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