Re: Why are disk writes so slow?

2010-12-25 Thread Ingo
On 09/26/06 10:46, Mark Bucciarelli wrote: 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 f

Re: Why are disk writes so slow?

2010-12-25 Thread Ingo
On 09/26/06 10:46, Mark Bucciarelli wrote: 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 f

Re: Why are disk writes so slow?

2006-09-27 Thread Eric Anderson
On 09/26/06 10:46, Mark Bucciarelli wrote: 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

Re: Why are disk writes so slow?

2006-09-27 Thread Oliver Fromme
Mark Bucciarelli wrote: > 1993 2006 > - > (1) /dev/null write 0.3s .005s <-- read speed If you mean to say that 1.5 MB have been read in 0.005s, then that's certainly _not_ the read speed of your disk drive. No single drive

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