[ 
https://issues.apache.org/jira/browse/TS-1760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13621157#comment-13621157
 ] 

John Plevyak commented on TS-1760:
----------------------------------

This patch seems to have a latency issues and a busy wait issue.    The timeout 
on io_getevents is 4msec which is below the threshold on some systems for busy 
waiting which is often 10msec.   Second, it queues the events onto a handler in 
the same thread rather than doing the io_submit itself.  Third, if the handler 
which calls io_getevents on an EThread, there is already another call to 
epoll() which is blocking the same thread.  Having two calls on the same thread 
blocking the thread is not a good idea: they will conflict with one blocking 
while the other has ready data (i.e. from the net or from the disk).

If io_submit is thread safe while there is an currently waiting io_getevents on 
another thread, then linux aio might be viable for traffic server.  If 
io_getevents played well with epoll() then linux aio might be viable.   Really, 
to get this to work Linux would need to have an integrated async completion API.
                
> use linux native aio
> --------------------
>
>                 Key: TS-1760
>                 URL: https://issues.apache.org/jira/browse/TS-1760
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Core
>            Reporter: weijin
>            Assignee: weijin
>             Fix For: 3.3.2
>
>         Attachments: native_aio.patch
>
>
> add a feature that use linux native aio

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to