From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 11987 invoked from network); 22 Sep 1998 12:41:12 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 22 Sep 1998 12:41:12 -0000 Received: from post.mail.demon.net (post-11.mail.demon.net [194.217.242.40]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id IAA00931 for ; Tue, 22 Sep 1998 08:40:35 -0400 Received: from [194.222.210.232] (helo=tardis.home.dave) by post.mail.demon.net with smtp (Exim 2.03 #1) id 0zLRjX-0000YQ-00; Tue, 22 Sep 1998 12:39:56 +0000 Date: Tue, 22 Sep 1998 13:39:26 +0100 (BST) From: Dave Gilbert X-Sender: gilbertd@tardis.home.dave To: Andrew Hobgood cc: axp-list@redhat.com Subject: Re: Random sig[segv|fpe] on 164LX with 256MB RAM In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 #include #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 __/