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

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