* ? asynchronous read: aio_read ()
@ 1995-04-05 4:00 Weiye (Wayne) Zhang
1995-04-12 4:00 ` Jeffrey M. Denham
0 siblings, 1 reply; 2+ messages in thread
From: Weiye (Wayne) Zhang @ 1995-04-05 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: ? asynchronous read: aio_read ()
1995-04-05 4:00 ? asynchronous read: aio_read () Weiye (Wayne) Zhang
@ 1995-04-12 4:00 ` Jeffrey M. Denham
0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey M. Denham @ 1995-04-12 4:00 UTC (permalink / raw)
In article <D6JC1L.K3K@undergrad.math.uwaterloo.ca>, 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-04-12 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-04-05 4:00 ? asynchronous read: aio_read () Weiye (Wayne) Zhang
1995-04-12 4:00 ` Jeffrey M. Denham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox