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: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-11 19:28:06 PST Xref: gmd.de comp.org.decus:2962 comp.os.vms:42274 comp.sys.dec:14265 comp.unix.advocacy:1108 Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!convex!seas.smu.edu!mic!montagar!davidc From: davidc@avatar.montagar.com (David L. Cathey) Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Does UNIX do async i/o? Message-ID: <1994Mar11.222806.18797@avatar.montagar.com> Date: 11 Mar 94 22:28:06 CDT References: <1994Feb26.204059.4068@mixcom.mixcom.com> <1994Mar11.190110.20289@integrity.uucp> Organization: Montagar Software Concepts, Plano TX 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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.