From owner-freebsd-questions@FreeBSD.ORG Wed Apr 19 15:14:41 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 036FA16A403 for ; Wed, 19 Apr 2006 15:14:41 +0000 (UTC) (envelope-from scuba@centroin.com.br) Received: from mdhost1.centroin.com.br (mail-gw1.centroin.com.br [200.225.63.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id F385443D58 for ; Wed, 19 Apr 2006 15:14:34 +0000 (GMT) (envelope-from scuba@centroin.com.br) Received: from trex.centroin.com.br (trex.centroin.com.br [200.225.63.134]) by mdhost1.centroin.com.br (8.13.5/8.13.5/CIP SMTP HOST) with ESMTP id k3JFEVID005644; Wed, 19 Apr 2006 12:14:31 -0300 (BRT) (envelope-from scuba@centroin.com.br) Date: Wed, 19 Apr 2006 12:14:53 -0300 (BRT) From: scuba@centroin.com.br Sender: mpsouza@trex.centroin.com.br To: FreeBSD Daemon In-Reply-To: <000801c66393$a06c6b00$0601a8c0@kojo> Message-ID: <20060419121110.K44588@trex.centroin.com.br> References: <000801c66393$a06c6b00$0601a8c0@kojo> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Hits: 0.007 X-Scanned-By: MIMEDefang 2.56 on 200.225.63.205 Cc: freebsd-questions@freebsd.org Subject: Re: memtest86 & memory test X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 15:14:41 -0000 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 #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 "freebsd-questions-unsubscribe@freebsd.org" | - Marcelo