From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-14 10:39:54 PST Xref: gmd.de comp.org.decus:3031 comp.os.vms:42450 comp.sys.dec:14378 comp.unix.advocacy:1207 Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!halley!integrity!zaphod!jcrowe From: jcrowe@mpd.tandem.com (Joseph Crowe) Subject: Re: Does UNIX do async i/o? Message-ID: <1994Mar14.183954.21481@integrity.uucp> Sender: jcrowe@zaphod (Joseph Crowe) Reply-To: jcrowe@mpd.tandem.com Organization: Tandem Computers Inc. References: <1994Feb26.204059.4068@mixcom.mixcom.com> <1994Mar11.190110.20289@integrity.uucp> <1994Mar11.222806.18797@avatar.montagar.com> Date: Mon, 14 Mar 1994 18:39:54 GMT In article <1994Mar11.222806.18797@avatar.montagar.com>, davidc@avatar.montagar.com (David L. Cathey) writes: |> In article <1994Mar11.190110.20289@integrity.uucp>, jcrowe@zaphodmpd.tandem.com (Joseph Crowe) writes: |> > I agree that most UNIX versions at this point do not provide async i/o |> > capabilities at the user level. My question is....so what? Why should the |> > user concern h(er|im)self with the intricacies of scatter/gather i/o at |> > the API level when it automatically gets handled in a hopefully optimal |> > way on h(er|is) behalf by the kernel and device drivers. Or am I missing |> > something. |> |> You're missing something. I/O is the slowest thing you can do. |> The advantage of timesharing systems give the O/S something to do (someone |> elses job) while your in a wait state for an I/O to complete. In several |> cases, there are many things your job could be doing rather than wait on |> an I/O. It's another nethod to avoid wasting cycles. With the speed of |> processors across the entire computing spectrum increasing, I/O waits are |> taking larger chunks of your elapsed time. And its irritating to managers |> to buy a faster machine that hardly makes a dent in elapsed time. |> |> Asynch I/O is how to optimize your use of CPU vs. I/O. True there |> is some help in the caching, buffering, but you are still stalled at |> various points because an I/O request isn't done (and your return status is |> really accurately reflecting reality). Asynch I/O is comparable to parallel |> processing, and like parallel processing, the O/S needs help in determining |> which operations are not truly idempotent or can be interleaved. Asynch |> operations can be absolutely invaluable in client-server applications where |> several transactions are going on concurrently. |> |> Case history? Data analysis of 50+ data files across multiple spindles |> (about 750MBytes). Analysis took over 7 hours with normal I/O. Asynch the I/O |> across several spindles at once (Using RMS no less) and the elapsed time was |> reduced to about 25 minutes. If you can't see that as a benefit, then you're |> still missing something. As of an earlier reply, I admit seeing the uses of async i/o....but in your example above, you reduce the impact of i/o waits for the individual application but at what impact to the timesharing nature of the machine? When the first realtime variants of UNIX came to market, I began to wonder whether it made sense to use a "general purpose" OS for a particular paradigm. This is just a throw it out for general discussion point. I'm not placing any relative value on UNIX, VMS or any other OS but let's kick off a new direction. For a general purpose multi-processor system, when you support realtime type of applications at the highest priority, does the timesharing application have to suffer? I believe it does. |> |> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |> David L. Cathey |INET: davidc@montagar.lonestar.org |> Montagar Software Concepts |UUCP: ...!montagar!davidc |> P. O. Box 260772, Plano TX 75026-0772 |Fone: (214)-618-2117 |> NOTE: Due to circumstances beyond my control, please use the lonestar.org |> address until further notice. -- ============================================== | Joe Crowe | | Tandem Computers Inc. | | Internet Address:jcrowe@mpd.tandem.com | ==============================================