Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.)
Subject: Re: delay_wbuffers (was Re: Our DEC Alpha is the slowest on this code ....)
Date: Thu, 2 Sep 1993 18:16:16 GMT	[thread overview]
Message-ID: <1993Sep2.181616.22889@nntpd2.cxo.dec.com> (raw)
In-Reply-To: CCqEsu.JAn@news.iastate.edu


In article <CCqEsu.JAn@news.iastate.edu>, john@iastate.edu (John Hascall) writes:
>Newsgroups: comp.sys.dec
>From: john@iastate.edu (John Hascall)
>Subject: delay_wbuffers (was Re: Our DEC Alpha is the slowest on this code ....)
>
>alan@nabeth.cxo.dec.com (Alan Rollow) writes:
>
>  [...previous poster complains about poor random write performance...]
>
>} [ And then I explain delay_wbuffers... ]

>   I tried this (setting delay_wbuffers=1) and then ran the
>   "iozone" benchmark (basically a sequential write and read)
>   and the performance was shot to hell on that...
>   (details: PDS/25, U4.3a, RZ25, "tunefs -a 8")
>
>   So it looks to me like you can have either good random
>   I/O performance OR good sequential I/O performance...

That may not be far from the truth.  Sequential writes, larger
than the cache will alternate between dirtying the cache and
then flushing it either as the result of a sync(2) or having to
flush dirty buffers to get clean buffers.  Once enough of the
cache is dirty, the application is going to be waiting for I/Os
to complete, before it can dirty the buffer with new data.

With delay_wbuffers clear and doing sequential writes, the write
is started soon after being copied into a buffer.  The result is
that the data is being steadily written and as each complete that
buffer is clean for later use.

Like most better I/O benchmarks iozone is probably tuned or recommends
doing sequential I/O larger than the cache.  For files smaller than
the cache, setting delay_wbuffer can make writing appear to be very
fast.

Also, note that the conditions that cause the asynchronous write of
a dirty buffer are different for ULTRIX and OSF/1.  By chosing the
right block size you can still get delayed I/O with delay_wbuffers
clear.  The condition that triggers the async. write is when the
I/O ends on a file system block boundary.  This may have changed
a little in V4.3 with the addition of maxcontig support.  I don't
have the V4.3 source to see.  If you can arrange for the application
not to write the entire file system block on an "update" the write
will be delayed.

>
>John
>-- 
>John Hascall                   ``An ill-chosen word is the fool's messenger.''
>Systems Software Engineer
>Project Vincent
>Iowa State University Computation Center  +  Ames, IA  50011  +  515/294-9551
>
--
Alan Rollow				alan@nabeth.cxo.dec.com



  reply	other threads:[~1993-09-02 18:16 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-08-27  3:23 Our DEC Alpha is the slowest on this code Peter Espen
1993-08-27  9:29 ` Terry Kennedy, Operations Mgr.
1993-08-27 13:55 ` Marcus J. Ranum
1993-08-27 15:24   ` Brent McClure
1993-08-28 18:32     ` Fred Morris
1993-08-27 14:22 ` Dirk Grunwald
1993-08-27 16:16 ` Martin Minow
1993-08-27 21:40 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
1993-09-02 14:55   ` delay_wbuffers (was Re: Our DEC Alpha is the slowest on this code ....) John Hascall
1993-09-02 18:16     ` Alan Rollow - Alan's Home for Wayward Tumbleweeds. [this message]
1993-08-27 22:29 ` Our DEC Alpha is the slowest on this code Dirk Grunwald
1993-08-28 15:35 ` Roland Meier
1993-08-29 16:54   ` Dirk Grunwald
1993-08-31 12:35     ` Jari Tavi
1993-09-02  3:35       ` Thor Lancelot Simon
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox