From: Dave Gilbert <gilbertd@treblig.org>
To: Andrew Hobgood <chaos@strange.net>
Cc: axp-list@redhat.com
Subject: Re: Random sig[segv|fpe] on 164LX with 256MB RAM
Date: Tue, 22 Sep 1998 13:39:26 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.3.96.980922133629.538J-100000@tardis.home.dave> (raw)
In-Reply-To: <Pine.LNX.3.96.980922015609.22669A-100000@schizo.strange.net>
On Tue, 22 Sep 1998, Andrew Hobgood wrote:
I experienced the same problem as you when I moved from 64MB to 320MB in
my LX.
I've since replaced the RAM with PC100 RAM and all is OK; however I do
find it very suspicious that the problem only really surfaces when using
almost all of the RAM or doing heavy X work.
> A) A program that will let me check my memory for errors to see what's going
> on (ala memtest86, but for the Alpha)
Below is Dave's magical all encompassing RAM tester, fiddle with the size
at the top so it almost fills RAM and then let it rip. I'd be interested
to see the errors you encounter; I almost always saw extra bits set
somewhere in the top bits of the word.
#include <stdio.h>
#include <stdlib.h>
#define SIZE (72*1024*1024*sizeof(int))
int main() {
volatile int * volatile pl=(int *)malloc(SIZE);
int a;
int s;
int sum1,sum2;
for(s=1056;;s++) {
printf("Filling with seed of s=0x%x \n",s);
srandom(s);
sum1=0;
for(a=0;a<(SIZE/sizeof(int));a++) {
int tmp1=random();
sum1+=tmp1;
pl[a]=tmp1;
};
srandom(s);
printf("Testing with seed of s=0x%x \n",s);
for(a=0,sum2=0;a<(SIZE/sizeof(int));a++) {
int tmp1=random();
int tmp2=pl[a];
sum2+=tmp1;
if (tmp1!=tmp2) {
fprintf(stderr,"MISMATCH ERROR! at a=0x%x (random=0x%x array=0x%x
reread=0x%x seed=
0x%x)\n",a,tmp1,tmp2,pl[a],s);
};
};
printf("Completed pass with seed of s=0x%x sum1=0x%x
sum2=0x%x\n",s,sum1,sum2);
if (sum1!=sum2) {
printf("Internal inconsistency! Sums differ! sum1=0x%x
sum2=0x%x\n",sum1,sum2);
exit(2);
};
};
};
> B) Any sorts of fixes for this kind of stuff (compile flags? kernel patches?
> hardware fixes? Pagan sacrifices of virgin Intel users?) that will
> keep it from happening?
Yes - I found Pagan sacrifices of Intel users to be very pleasent; if not
effective.
Dave
--------------------------------------------------------------------
/ Dr. David Alan Gilbert | Running Linux on Alpha(LX) | Happy \
\ gro.gilbert @ treblig.org | & ARM(EBSA285,old Arc) | In Hex /
\____________________________|___ http://www.treblig.demon.co.uk __/
next prev parent reply other threads:[~1998-09-22 12:41 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-22 6:07 Random sig[segv|fpe] on 164LX with 256MB RAM Andrew Hobgood
1998-09-22 12:39 ` Dave Gilbert [this message]
1998-09-22 17:25 ` Andrew Hobgood
1998-09-22 17:28 ` Andrew Hobgood
1998-09-23 0:04 ` Dam Thanh Son
1998-09-23 4:27 ` Michal Jaegermann
1998-09-23 6:49 ` Peter Rye
1998-09-23 10:10 ` David Alan Gilbert
1998-09-23 15:27 ` Andrew Hobgood
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