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
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
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
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
-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
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 ...
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
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