jc@atcmp.nl (Jan Christiaan van Winkel) (06/02/90)
From article <543@iss-rb.SanDiego.NCR.COM>, by jan@ivory.SanDiego.NCR.COM (Jan Stubbs):
] In article <15049@cit-vax.Caltech.Edu> fritz@vlsi.caltech.edu (fritz nordby) writes:
] which measures Unix kernel performance.
]
] for (i=0;i<=10000;i++) {
] /*do seek, write, seek, read, read, read. */
] lseek(fd,0L,0);
] count = write(fd,buf,500);
] lseek(fd,0L,0);
]
] for (j=0;j<=3;j++)
] count = read(fd,buf,100);
NO. You do seek, write, seek, read, read, read, read (4 reads!)
What are your results based on? 4 reads or 3 reads?
BTW:
results of run (with program as posted) on Altos 2086, 80286 @ 8 MHz,
Xenix 3.3as1: real 75 sec, user 2 sec, system 72 sec.
--
Jan Christiaan van Winkel Tel: +31 80 566880 jc@atcmp.nl
AT Computing P.O. Box 1428 6501 BK Nijmegen The Netherlands