From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,a247b9f21a6d13d6 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-09-02 11:40:31 PST Newsgroups: comp.sys.dec Path: gmd.de!xlink.net!sol.ctr.columbia.edu!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!decwrl!pa.dec.com!nntpd2.cxo.dec.com!nabeth.cxo.dec.com!alan 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 ....) Message-ID: <1993Sep2.181616.22889@nntpd2.cxo.dec.com> Sender: usenet@nntpd2.cxo.dec.com (USENET News System) Reply-To: alan@nabeth.cxo.dec.com (Alan Rollow - Alan's Home for Wayward Tumbleweeds.) Organization: Digital Equipment Corporation References: <25juna$n5e@polaris.unm.edu> <1993Aug27.214032.10670@nntpd2.cxo.dec.com> Distribution: usa Date: Thu, 2 Sep 1993 18:16:16 GMT In article , 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