AIO and some advice needed.

Avinash Lakshman avinash.lakshman at gmail.com
Wed Nov 26 23:26:53 PST 2008


iostat on Linux doesn't seem to show me correct statistics when I use AIO. I
know I am performing reads correctly but the r/s is always at zero. What am
I doing wrong? I run iostat -x 1.

Thanks
A

On Wed, Nov 26, 2008 at 12:30 PM, Alan Bateman <Alan.Bateman at sun.com> wrote:

> Avinash Lakshman wrote:
>
>> :
>>
>> Yes I know the position. So in order to avoid convoluted programming what
>> we are trying to do is submit the read request and suspend the continuation.
>> When the completion handler is done we release the continuation to continue
>> with where we left off. Does this sound reasonable? It almost as if sounds
>> like unless the entire system is asynchronous there is not much to gain from
>> AIO. Is my conclusion correct?
>>
> In principal this should be fine. Please do feedback your experiences with
> this approach. Asynchronous I/O does require an event driven application so
> it can be awkward to shoehorn into existing code.
>
> -Alan.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-discuss/attachments/20081126/ff05cae8/attachment.html 


More information about the nio-discuss mailing list