Mark Kirkwood wrote:

Anyway on to the results: I used the attached program to read a cached

Silly bug in attached program : lseek failure test has 1 instead of -1 (finger trouble).
*** readtest.c.orig	Fri Dec 22 14:43:42 2006
--- readtest.c	Fri Dec 22 14:43:24 2006
***************
*** 103,109 ****
  			}
  		} else {
  			offset = (off_t) (random() % (numblocks - 1)) * blocksz;
! 			if (lseek(fd, offset, SEEK_SET) == 1) {
  				perror("seek failed");
  				exit(1);
  			}
--- 103,109 ----
  			}
  		} else {
  			offset = (off_t) (random() % (numblocks - 1)) * blocksz;
! 			if (lseek(fd, offset, SEEK_SET) == -1) {
  				perror("seek failed");
  				exit(1);
  			}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to