From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d834ddf5e796330c X-Google-Attributes: gid1164f8,public From: denham@denham.zk3.dec.com (Jeffrey M. Denham) Subject: Re: ? asynchronous read: aio_read () Date: 1995/04/12 Message-ID: <1995Apr12.203701.2209@decvax.dec.com>#1/1 X-Deja-AN: 100353058 sender: usenet@decvax.dec.com (Usenet News System) references: organization: Digital Equipment Corporation reply-to: denham@zk3.dec.com (Jeffrey M. Denham) newsgroups: comp.sys.dec In article , w2zhang@neumann.uwaterloo.ca (Weiye (Wayne) Zhang) writes: |>Hi everybody, |> |>I got a problem on using asynchronous read ("aio_read()") in UNIX environment. |>Any suggestions will be very helpful to me. |> |>I use asynchronous reads in my C program on DEC OSF/1 V2.0 (on an alpha machine). When I issue more than 64 asynchronous reads using aio_read(), the 65th call of aio_read() will be blocked and failed. Even if I use aio_read() in the synchronous way, i.e., to issue the next aio_read after the previous aio_read has read the data into a buffer, the 65th aio_read still fails. So I can not call aio_read() more than 64 times in one process, but my experiment requires thousands of aio_read. |> |>Besides the man page, I could not find any documents about aio_read. |>On DEC, it seems that aio_read() is implemented using threads. I can not |>find anything further. Any info may help me to find my way out. I'm looking |>forward to your comments. |> |>Thank you for your time. |> |>-- Wayne |>_____________________________________________________________________________ |> |>Weiye (Wayne) Zhang email : w2zhang@bluebox.uwaterloo.ca |>Dept. of Computer Science office: Data Structures Lab (DC 2306D) |>Univ. of Waterloo phone : (519)-888-4567 x 6107 (o) |>Waterloo, Ont. http://bluebox.uwaterloo.ca/~w2zhang |>Canada, N2L 3G1 supervisor: Dr. Paul Larson |> |> You've hit a systemwide limit on the number of outstanding aios in V2.0: 64. This value is configurable in V3.0 and later. You'll need to trottle back your program to keep from tripping over the limit. There's nothing damaging about hitting the limit (EGAIN/EWOULDBLOCK is returned), BTW.