memtest86 memory test

2006-04-19 Thread FreeBSD Daemon
Dear list

Is there a memory test suite other them memtest86/memtest86+

TIA

zheyu

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: memtest86 memory test

2006-04-19 Thread scuba
Hi,

I think memtest86 is the best, but you could use something like 
this bellow. Just adjust the value of N_MEGABYTES, and start as many 
process as you want to full the fisical memory.

[start of code]

#include stdio.h
#define N_MEGABYTES 160
#define TOTAL (N_MEGABYTES * 1024 * 1024)
int main(void)
{
int i;
char *p;
char *mem = malloc(TOTAL);

if ( mem == NULL )
{
perror(malloc);
return 1;
}

while ( 1 )
{
for (i = 0, p = mem; i  TOTAL; i++, p++)
{
if ( *p == 0 )
*p = 1;
*p = 1;
}
}
return 0;
}   


[end of code]

On Wed, 19 Apr 2006, FreeBSD Daemon wrote:

|Dear list
|
|Is there a memory test suite other them memtest86/memtest86+
|
|TIA
|
|zheyu
|
|___
|freebsd-questions@freebsd.org mailing list
|http://lists.freebsd.org/mailman/listinfo/freebsd-questions
|To unsubscribe, send any mail to [EMAIL PROTECTED]
|


- Marcelo

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: memtest86 memory test

2006-04-19 Thread Lowell Gilbert
FreeBSD Daemon [EMAIL PROTECTED] writes:

 Is there a memory test suite other them memtest86/memtest86+

There are others in the ports, but they aren't nearly as effective.  
Of course, if you really want effective, there is no substitute
for a dedicated device...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]