Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* More problems with my new RAM (& unaligned!!)
@ 1998-07-19 12:58 Dave Gilbert
  1998-07-19 18:51 ` Wes Bauske
  0 siblings, 1 reply; 11+ messages in thread
From: Dave Gilbert @ 1998-07-19 12:58 UTC (permalink / raw)
  To: axp-list

Hi,
  OK - my system is now running 2.1.98 with 319 MB of RAM (by
setting the memory size in MILO).

  I've noticed some oddities:

    1) I've had unaligned trap messages from 'sh', and a new version
       of 'egcs'.  I've never had an unaligned from 'sh' before.

    2) EGCS has crashed twice - its a new version so that is possible.
       But the crashes are unrepeatable; I get a log of a couple of
       unaligned accesses and then the compiler dies with an internal
       error.  Repeating the same compile completes happily.

    3) **** This is the killer! I wrote this little memory test (see
       below); it hit a mismatch last night in which one byte of the 
       stored value read back as 'ff' but should have been something
       else.  There were no CIA errors etc (I've not had any at all)
       How is this possible? Is this a RAM fault - but if there were no
       CIA errors isn't it more likely its an OS error overwriting
       something? Its done over 60 loops of this today and had no
       problems.

I might take the RAM back this afternoon...
   
<<< HELP >>>


#include <stdio.h>
#include <stdlib.h>

#define SIZE (68*1024*1024*sizeof(int))
int main() {
  int *pl=(int *)malloc(SIZE);

  int a;

  int s;
  for(s=1056;;s++) {
    printf("Filling with seed of s=0x%x \n",s);
    srandom(s);

    for(a=0;a<(SIZE/sizeof(int));a++) {
      pl[a]=random();
    };

    srandom(s);

    printf("Testing with seed of s=0x%x \n",s);
    for(a=0;a<(SIZE/sizeof(int));a++) {
      int tmp1=random();
      int tmp2=pl[a];

      if (tmp1!=tmp2) {
        fprintf(stderr,"MISMATCH ERROR! at a=0x%x (random=0x%x array=0x%x)\n",a,tmp1,tmp2);
        exit(2);
      };
    };
    printf("Completed pass with seed of s=0x%x\n",s);
  };
};


Dave
 --------------------------------------------------------------------
/ Dr. David Alan Gilbert      | Running Linux on Alpha & ARM         \ 
\   gro.gilbert @ treblig.org | ------- Happy in hex -------         /
 \____________________________|___ http://www.treblig.demon.co.uk __/


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

* Re: More problems with my new RAM (& unaligned!!)
  1998-07-19 12:58 More problems with my new RAM (& unaligned!!) Dave Gilbert
@ 1998-07-19 18:51 ` Wes Bauske
  1998-07-19 20:23   ` Dave Gilbert
  0 siblings, 1 reply; 11+ messages in thread
From: Wes Bauske @ 1998-07-19 18:51 UTC (permalink / raw)
  To: axp-list

Dave Gilbert wrote:
> 
> Hi,
>   OK - my system is now running 2.1.98 with 319 MB of RAM (by
> setting the memory size in MILO).
> 
>   I've noticed some oddities:
> 
>     1) I've had unaligned trap messages from 'sh', and a new version
>        of 'egcs'.  I've never had an unaligned from 'sh' before.
> 
>     2) EGCS has crashed twice - its a new version so that is possible.
>        But the crashes are unrepeatable; I get a log of a couple of
>        unaligned accesses and then the compiler dies with an internal
>        error.  Repeating the same compile completes happily.
> 

This implies ramdom behavior. Not good. If you're only getting
unaligned traps, that would not be random, I would think.
Take your memory out and see if it still does these things.
If it does, it's probably SW. If it works consistently, I'd
bet you have a DIMM problem.


>     3) **** This is the killer! I wrote this little memory test (see
>        below); it hit a mismatch last night in which one byte of the
>        stored value read back as 'ff' but should have been something
>        else.  There were no CIA errors etc (I've not had any at all)
>        How is this possible? Is this a RAM fault - but if there were no
>        CIA errors isn't it more likely its an OS error overwriting
>        something? Its done over 60 loops of this today and had no
>        problems.

Run with a smaller array on the old memory and see if it's
stable as above.


Wes


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

* Re: More problems with my new RAM (& unaligned!!)
  1998-07-19 18:51 ` Wes Bauske
@ 1998-07-19 20:23   ` Dave Gilbert
  1998-07-20  1:19     ` Wes Bauske
  0 siblings, 1 reply; 11+ messages in thread
From: Dave Gilbert @ 1998-07-19 20:23 UTC (permalink / raw)
  To: axp-list

On Sun, 19 Jul 1998, Wes Bauske wrote:

> That I wrote:

> >     2) EGCS has crashed twice - its a new version so that is possible.
> >        But the crashes are unrepeatable; I get a log of a couple of
> >        unaligned accesses and then the compiler dies with an internal
> >        error.  Repeating the same compile completes happily.
> > 
> 
> This implies ramdom behavior. Not good. If you're only getting
> unaligned traps, that would not be random, I would think.
> Take your memory out and see if it still does these things.
> If it does, it's probably SW. If it works consistently, I'd
> bet you have a DIMM problem.

If I take the new memory out things are happy.

> >     3) **** This is the killer! I wrote this little memory test (see
> >        below); it hit a mismatch last night in which one byte of the
> >        stored value read back as 'ff' but should have been something
> >        else.  There were no CIA errors etc (I've not had any at all)
> >        How is this possible? Is this a RAM fault - but if there were no
> >        CIA errors isn't it more likely its an OS error overwriting
> >        something? Its done over 60 loops of this today and had no
> >        problems.
> 
> Run with a smaller array on the old memory and see if it's
> stable as above.

I've taken the new RAM out and all seems happy. What I don't understand
is that if its a hardware fault why the system isn't complaining?
Especially if its ECC then it should be shouting at me when ever it has to
do a correction and it should presumably detect a lot of the errors
even if it can't fix them.

Also it only does it under some conditions (its a lot less happy with X
running - especially X11perf...).

Could the X server be corrupting things (or the graphics card) - I've
turned the PCI parity on and am also not seeing any problems.

Anyway the RAMs going back and I'm going to order some from an Alpha
happy dealer (probably Compusys).

For the interested here is a list of some of the mismatches I've had:

MISMATCH ERROR! at a=0x30bd00e (random=0x3afc0075 array=0x3efc0075
reread=0x3efc0075 seed=0x429)
MISMATCH ERROR! at a=0x30bd00f (random=0x14bb3ca8 array=0x14fb3ca8
reread=0x14fb3ca8 seed=0x429)
MISMATCH ERROR! at a=0x117b0ef (random=0x72b96f3b array=0x72fb6f3b
reread=0x72fb6f3b seed=0x42a)
MISMATCH ERROR! at a=0x7a084e (random=0x6bea2c9d array=0x6fea2c9d
reread=0x6fea2c9d seed=0x42b)
MISMATCH ERROR! at a=0x9719ae (random=0xb9d6c7b array=0xf9d6c7b
reread=0xf9d6c7b seed=0x42b)
MISMATCH ERROR! at a=0xba0efe (random=0x6b833ec1 array=0x6f833ec1
reread=0x6f833ec1 seed=0x42b) 
MISMATCH ERROR! at a=0x109ca9e (random=0x6be98dda array=0x6fe98dda
reread=0x6fe98dda seed=0x42b)
MISMATCH ERROR! at a=0x73201e (random=0xda3f6a0 array=0xfa3f6a0
reread=0xfa3f6a0 seed=0x425)
MISMATCH ERROR! at a=0x83106e (random=0x55d336ab array=0x57d336ab
reread=0x57d336ab seed=0x425) 
MISMATCH ERROR! at a=0x83250e (random=0x755b2895 array=0x775b2895
reread=0x775b2895 seed=0x425) 
MISMATCH ERROR! at a=0xa0d50e (random=0x4ded570d array=0x4fed570d
reread=0x4fed570d seed=0x425) 
MISMATCH ERROR! at a=0x3f56bae (random=0x6dab6867 array=0x6fab6867
reread=0x6fab6867 seed=0x42b)

I reckon because there are some odd addresses (a is the index into the
integer array so x4) its both DIMMS, its curious that its only the top
two bytes which are affected.

Dave 

 --------------------------------------------------------------------
/ Dr. David Alan Gilbert      | Running Linux on Alpha & ARM         \ 
\   gro.gilbert @ treblig.org | ------- Happy in hex -------         /
 \____________________________|___ http://www.treblig.demon.co.uk __/


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

* Re: More problems with my new RAM (& unaligned!!)
  1998-07-19 20:23   ` Dave Gilbert
@ 1998-07-20  1:19     ` Wes Bauske
  1998-07-20  2:32       ` Chris Price
  0 siblings, 1 reply; 11+ messages in thread
From: Wes Bauske @ 1998-07-20  1:19 UTC (permalink / raw)
  To: axp-list

Dave Gilbert wrote:
> 
> On Sun, 19 Jul 1998, Wes Bauske wrote:
> 
> > That I wrote:
> 
> > >     2) EGCS has crashed twice - its a new version so that is possible.
> > >        But the crashes are unrepeatable; I get a log of a couple of
> > >        unaligned accesses and then the compiler dies with an internal
> > >        error.  Repeating the same compile completes happily.
> > >
> >
> > This implies ramdom behavior. Not good. If you're only getting
> > unaligned traps, that would not be random, I would think.
> > Take your memory out and see if it still does these things.
> > If it does, it's probably SW. If it works consistently, I'd
> > bet you have a DIMM problem.
> 
> If I take the new memory out things are happy.
> 
> > >     3) **** This is the killer! I wrote this little memory test (see
> > >        below); it hit a mismatch last night in which one byte of the
> > >        stored value read back as 'ff' but should have been something
> > >        else.  There were no CIA errors etc (I've not had any at all)
> > >        How is this possible? Is this a RAM fault - but if there were no
> > >        CIA errors isn't it more likely its an OS error overwriting
> > >        something? Its done over 60 loops of this today and had no
> > >        problems.
> >
> > Run with a smaller array on the old memory and see if it's
> > stable as above.
> 
> I've taken the new RAM out and all seems happy. What I don't understand
> is that if its a hardware fault why the system isn't complaining?
> Especially if its ECC then it should be shouting at me when ever it has to
> do a correction and it should presumably detect a lot of the errors
> even if it can't fix them.
> 
> Also it only does it under some conditions (its a lot less happy with X
> running - especially X11perf...).
> 
> Could the X server be corrupting things (or the graphics card) - I've
> turned the PCI parity on and am also not seeing any problems.
> 

Don't know if the Xserver can cause problems for memory.
Seen it trash my network card (from other thread) but not
memory. Even ECC can have undetected errors. I believe
ECC can do 1 bit correction, two bit detection. 3 bit
errors may or may not be caught. True parity does only
1 bit detection, and non-parity lets anything go...
If you're getting that many bit errors, maybe your
DIMM's are out of spec??

For reference, I use 10ns SDRAM, 3.3v, non-buffered, 8x72 (64MB ea)


Wes


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

* Re: More problems with my new RAM (& unaligned!!)
  1998-07-20  1:19     ` Wes Bauske
@ 1998-07-20  2:32       ` Chris Price
  1998-07-20  6:58         ` Wes Bauske
  1998-07-20  7:45         ` Quant-X Alpha Linux Support
  0 siblings, 2 replies; 11+ messages in thread
From: Chris Price @ 1998-07-20  2:32 UTC (permalink / raw)
  To: axp-list

> Don't know if the Xserver can cause problems for memory.
> Seen it trash my network card (from other thread) but not
> memory. Even ECC can have undetected errors. I believe
> ECC can do 1 bit correction, two bit detection.

	IIRC, ECC has 4bits parity for every 8bits data.
Anyone confirm or shootdown?

	Chris



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

* Re: More problems with my new RAM (& unaligned!!)
  1998-07-20  2:32       ` Chris Price
@ 1998-07-20  6:58         ` Wes Bauske
  1998-07-20  7:45         ` Quant-X Alpha Linux Support
  1 sibling, 0 replies; 11+ messages in thread
From: Wes Bauske @ 1998-07-20  6:58 UTC (permalink / raw)
  To: axp-list

Chris Price wrote:
> 
> > Don't know if the Xserver can cause problems for memory.
> > Seen it trash my network card (from other thread) but not
> > memory. Even ECC can have undetected errors. I believe
> > ECC can do 1 bit correction, two bit detection.
> 
>         IIRC, ECC has 4bits parity for every 8bits data.
> Anyone confirm or shootdown?
> 

I'm just quoting from memory. I think it's 8 bits per 8 bytes,
(x64 vs x72) Pretty sure about ECC's ability to only correct
1 bit and detect two. Since each bit is usually on a different
chip, that would imply the DIMM's were really out of wack if
three at once had problems. Point is just that ECC or True
parity does not mean you're guaranteed the data is correct
in memory. Bad memory is bad memory. Also, I think True parity
uses 1 bit per byte, ECC uses 2 bits per byte which leads me
to believe x72 DIMM's are True parity, not ECC. Any HW types
know for sure?


Wes


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

* Re: More problems with my new RAM (& unaligned!!)
  1998-07-20  2:32       ` Chris Price
  1998-07-20  6:58         ` Wes Bauske
@ 1998-07-20  7:45         ` Quant-X Alpha Linux Support
  1998-07-20 20:15           ` Wes Bauske
  1 sibling, 1 reply; 11+ messages in thread
From: Quant-X Alpha Linux Support @ 1998-07-20  7:45 UTC (permalink / raw)
  To: axp-list

Hi Chis !

> 	IIRC, ECC has 4bits parity for every 8bits data.
> Anyone confirm or shootdown?

shootdown -h now ;-}

Parity is normally 1bit/8Bit data and dedects an odd number of
flipped bits; but can't correct them.

ECC (on alpha) works with 64-bit/Data 8-bit/"parity" (so it needs the same
number of bits like parity checking, but operates on larger junks).
ECC is able to dedect and correct a single bit error and dedects
double bit errors.

-- 

Quant-X Service &                         Ph:  (+43) 4212 6004-0
Consulting Ges.m.b.H.                     Fax: (+43) 4212 600420
http://www.quant-x.com                    Email: support@quant-x.com


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

* Re: More problems with my new RAM (& unaligned!!)
  1998-07-20  7:45         ` Quant-X Alpha Linux Support
@ 1998-07-20 20:15           ` Wes Bauske
  1998-07-21 16:02             ` Ralph Green, Jr.
  0 siblings, 1 reply; 11+ messages in thread
From: Wes Bauske @ 1998-07-20 20:15 UTC (permalink / raw)
  To: axp-list@redhat.com

Quant-X Alpha Linux Support wrote:
> 
> Hi Chis !
> 
> >       IIRC, ECC has 4bits parity for every 8bits data.
> > Anyone confirm or shootdown?
> 
> shootdown -h now ;-}
> 
> Parity is normally 1bit/8Bit data and dedects an odd number of
> flipped bits; but can't correct them.
> 
> ECC (on alpha) works with 64-bit/Data 8-bit/"parity" (so it needs the same
> number of bits like parity checking, but operates on larger junks).
> ECC is able to dedect and correct a single bit error and dedects
> double bit errors.
> 

So, can you describe how the ECC uses the same number of bits
as True parity but can do things better?? Always wondered how
it worked but never sorted it out. (It works so why worry I figured)


Wes


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

* Re: More problems with my new RAM (& unaligned!!)
  1998-07-20 20:15           ` Wes Bauske
@ 1998-07-21 16:02             ` Ralph Green, Jr.
  1998-07-21 18:53               ` Wes Bauske
  0 siblings, 1 reply; 11+ messages in thread
From: Ralph Green, Jr. @ 1998-07-21 16:02 UTC (permalink / raw)
  To: axp-list

Howdy,
 I believe they use Hamming code to do the error correction.  If not, they use a code with similar properties in terms of protection bits required.  For Hamming code, use the following table:

 bits to protect from single bit errors    protection bits required
 --------------------------------------    ------------------------
               1                                      1
               2                                      2
              3-4                                     3
              5-8                                     4
              9-16                                    5
             17-32                                    6
             33-64                                    7
             65-128                                   8

 As you see, for the 64 bit data width of most newer cpus, a standard parity simm provides enough bits to do the error correction.  That was not true until we got to the 64 bit wide memory accesses.

 I did not find an online reference that I though completely explained this issue, but for some more details look at
  http://www.rad.com/networks/1994/err_con/hamming.htm

Ralph Green, Jr.

Quant-X Alpha Linux Support wrote:
> 
> Hi Chis !
> 
> >       IIRC, ECC has 4bits parity for every 8bits data.
> > Anyone confirm or shootdown?


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

* Re: More problems with my new RAM (& unaligned!!)
  1998-07-21 16:02             ` Ralph Green, Jr.
@ 1998-07-21 18:53               ` Wes Bauske
  1998-07-21 19:31                 ` Deryk Barker
  0 siblings, 1 reply; 11+ messages in thread
From: Wes Bauske @ 1998-07-21 18:53 UTC (permalink / raw)
  To: axp-list

Ralph Green, Jr. wrote:
> 
> Howdy,
>  I believe they use Hamming code to do the error correction.  If not, they use a code with similar properties in terms of protection bits required.  For Hamming code, use the following table:
> 
>  bits to protect from single bit errors    protection bits required
>  --------------------------------------    ------------------------
>                1                                      1
>                2                                      2
>               3-4                                     3
>               5-8                                     4
>               9-16                                    5
>              17-32                                    6
>              33-64                                    7
>              65-128                                   8
> 
>  As you see, for the 64 bit data width of most newer cpus, a standard parity simm provides enough bits to do the error correction.  That was not true until we got to the 64 bit wide memory accesses.
> 

This would explain why I thought 2 bits per byte for ECC.

Thanks for the info.


Wes


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

* Re: More problems with my new RAM (& unaligned!!)
  1998-07-21 18:53               ` Wes Bauske
@ 1998-07-21 19:31                 ` Deryk Barker
  0 siblings, 0 replies; 11+ messages in thread
From: Deryk Barker @ 1998-07-21 19:31 UTC (permalink / raw)
  To: axp-list

Thus spake Wes Bauske (wsb@paralleldata.com):

> Ralph Green, Jr. wrote:
> > 
> > Howdy,
> >  I believe they use Hamming code to do the error correction.  If not, they use a code with similar properties in terms of protection bits required.  For Hamming code, use the following table:
> > 
> >  bits to protect from single bit errors    protection bits required
> >  --------------------------------------    ------------------------
> >                1                                      1
> >                2                                      2
> >               3-4                                     3
> >               5-8                                     4
> >               9-16                                    5
> >              17-32                                    6
> >              33-64                                    7
> >              65-128                                   8

And the reason for these numbers is not actually that difficult to
see:

If there are N data bits and K check bits then we need to be able to
correct a single bit error in (N+K) bits (it's quite possible the
error may affect a check rather than data bit)

The K bits give us 2**K possible bit patterns for the check bits and
the usual SEC-DED (single error correcting, double error detecting)
scheme works as follows:

The original N data bits are passed through a check-bit-generating
function (call it f) which produces K check bits, which are stored
with the data.

On retrieval, the N data bits are passed through function f again. The
regenerated K check bits are then XORed with the retrieved K check
bits to produce what is called the syndrome. 

A 0 syndrome means no error, which leaves exactly 2**K - 1 bit patterns
in the syndrome to identify single bit errors.

Therefore 2**K - 1 >= N + K
-- 
|Deryk Barker, Computer Science Dept. | Music does not have to be understood|
|Camosun College, Victoria, BC, Canada| It has to be listened to.           |
|email: dbarker@camosun.bc.ca         |                                     |
|phone: +1 250 370 4452               |         Hermann Scherchen.          |


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

end of thread, other threads:[~1998-07-21 19:31 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-19 12:58 More problems with my new RAM (& unaligned!!) Dave Gilbert
1998-07-19 18:51 ` Wes Bauske
1998-07-19 20:23   ` Dave Gilbert
1998-07-20  1:19     ` Wes Bauske
1998-07-20  2:32       ` Chris Price
1998-07-20  6:58         ` Wes Bauske
1998-07-20  7:45         ` Quant-X Alpha Linux Support
1998-07-20 20:15           ` Wes Bauske
1998-07-21 16:02             ` Ralph Green, Jr.
1998-07-21 18:53               ` Wes Bauske
1998-07-21 19:31                 ` Deryk Barker

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