From: denham@denham.zk3.dec.com (Jeffrey M. Denham)
Subject: Re: ? asynchronous read: aio_read ()
Date: 1995/04/12 [thread overview]
Message-ID: <1995Apr12.203701.2209@decvax.dec.com> (raw)
In-Reply-To: D6JC1L.K3K@undergrad.math.uwaterloo.ca
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.
prev parent reply other threads:[~1995-04-12 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-04-05 4:00 ? asynchronous read: aio_read () Weiye (Wayne) Zhang
1995-04-12 4:00 ` Jeffrey M. Denham [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox