Re: Why are disk writes so slow?

2006-09-26 Thread Jason Stone
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As in his example (with a bufsize of 8192), time ./a.out < 1.5M-testfile > /dev/null runs five times faster than (clock time) time ./a.out < 1.5M-testfile > /a.out.out a) your 1.5M-testfile is most likely still in the cache from previous

Re: Why are disk writes so slow?

2006-09-26 Thread Mark Bucciarelli
On Tue, Sep 26, 2006 at 01:03:00PM -0400, Bill Moran wrote: > In response to Mark Bucciarelli <[EMAIL PROTECTED]>: > > > Can someone explain to me why writing is five times as slow as > > writing? What's going on in the computer? > > I'm rather confused as to exactly what your question is ...

Re: Why are disk writes so slow?

2006-09-26 Thread Bill Moran
In response to Mark Bucciarelli <[EMAIL PROTECTED]>: > I am reading Richard Stevens' "Advanced Programming in the UNIX > Environment," a most excellent book. > > Out of curiosity, I tried his I/O efficiency program on my IBM > A30 Thinkpad, running 6.0-RELEASE with default tuning parameters. > Th

Why are disk writes so slow?

2006-09-26 Thread Mark Bucciarelli
I am reading Richard Stevens' "Advanced Programming in the UNIX Environment," a most excellent book. Out of curiosity, I tried his I/O efficiency program on my IBM A30 Thinkpad, running 6.0-RELEASE with default tuning parameters. The test program reads file on stdin and writes to stdout, and you m