Hard disk benchmark

Victor Ortega vor+ at pitt.edu
Mon Sep 4 21:42:34 EDT 2000


On Mon, 4 Sep 2000, Teddy Surya Gunawan wrote:
> I am looking for hard disk benchmark program. Currently, we have IDE,
> Ultra SCSI, and RAID. So, could anyone point to any benchmark program?

Check out the PostMark benchmark:

	http://www.netapp.com/tech_library/3022.html

The source code is freely available.  There's a bug with the
random-number generator in version 1.13 of the code, though; be sure
to install the patch below (I have already sent this patch to the
author, and he said he'll roll it into the next release).

Victor
----------------------------------------------------------------------
--- postmark-1_13.c	Tue Jun 27 19:57:53 2000
+++ postmark-1_13_new.c	Tue Jun 27 20:10:44 2000
@@ -66,7 +66,7 @@
 
 #define PROMPT "pm>"
 
-#define RND(x) ((x>0)?(refrng_rand() % (x)):0)
+#define RND(x) ((x>0)?(refrng_rand(x)):0)
 
 typedef struct { /* ADT for table of CLI commands */
    char *name;    /* name of command */
@@ -166,11 +166,12 @@
 static unsigned long int refrng_next=1; /* state variable for random numbers */
 
 /* portable standard random number generator -
-   returns integers from 0 to 2^32 */
-int refrng_rand()
+   returns integers from 0 to limit-1 */
+int refrng_rand(limit)
+int limit;
 {
    refrng_next=refrng_next*1103515245+12345;
-   return((unsigned int)(refrng_next/65536) % 32768);
+   return((unsigned int)(refrng_next/16) % limit);
 }
 
 /* set seed for portable standard random number generator */


_______________________________________________
Beowulf mailing list
Beowulf at beowulf.org
http://www.beowulf.org/mailman/listinfo/beowulf



More information about the Beowulf mailing list