You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by "John Plevyak (JIRA)" <ji...@apache.org> on 2009/12/17 19:29:18 UTC
[jira] Created: (TS-94) optionaly use pipe/fdevent()/libev ev_async
to signal threads waiting on poll that new events have been posted to the
thread
optionaly use pipe/fdevent()/libev ev_async to signal threads waiting on poll that new events have been posted to the thread
----------------------------------------------------------------------------------------------------------------------------
Key: TS-94
URL: https://issues.apache.org/jira/browse/TS-94
Project: Traffic Server
Issue Type: Improvement
Components: Core
Affects Versions: 2.0.0a
Reporter: John Plevyak
Priority: Minor
Fix For: 2.1.0
Currently threads waiting for IO which have events posted to them (e.g. newly accepted sockets for
traffic servers using an accept thread) do not get knocked off the poll wait to process the new event.
This can be done with pipe's linux's fdevent and more generally with libev ev_async.
This improvement would optionally enable this functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TS-94) optionaly use pipe/fdevent()/libev
ev_async to signal threads waiting on poll that new events have been posted
to the thread
Posted by "John Plevyak (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12794705#action_12794705 ]
John Plevyak commented on TS-94:
--------------------------------
Under linux eventfd http://www.kernel.org/doc/man-pages/online/pages/man2/eventfd.2.html is
a more efficient solution for this problem. libev has cross-platform support which falls back to
the pipe solution if a more efficient option is not available. The current libev patch doesn't implement
that, but it could be made to.
Just an FYI.
> optionaly use pipe/fdevent()/libev ev_async to signal threads waiting on poll that new events have been posted to the thread
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: TS-94
> URL: https://issues.apache.org/jira/browse/TS-94
> Project: Traffic Server
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0.0a
> Reporter: John Plevyak
> Priority: Minor
> Fix For: 2.1.0
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Currently threads waiting for IO which have events posted to them (e.g. newly accepted sockets for
> traffic servers using an accept thread) do not get knocked off the poll wait to process the new event.
> This can be done with pipe's linux's fdevent and more generally with libev ev_async.
> This improvement would optionally enable this functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TS-94) optionaly use pipe/fdevent()/libev
ev_async to signal threads waiting on poll that new events have been posted
to the thread
Posted by "Anirban (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12792926#action_12792926 ]
Anirban commented on TS-94:
---------------------------
Vijay M. created a fix for this in Yahoo's SVN using pipes. He'll be checking this into the Apache Open Source release when he comes back from vacation.
> optionaly use pipe/fdevent()/libev ev_async to signal threads waiting on poll that new events have been posted to the thread
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: TS-94
> URL: https://issues.apache.org/jira/browse/TS-94
> Project: Traffic Server
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0.0a
> Reporter: John Plevyak
> Priority: Minor
> Fix For: 2.1.0
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Currently threads waiting for IO which have events posted to them (e.g. newly accepted sockets for
> traffic servers using an accept thread) do not get knocked off the poll wait to process the new event.
> This can be done with pipe's linux's fdevent and more generally with libev ev_async.
> This improvement would optionally enable this functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (TS-94) optionaly use pipe/fdevent()/libev ev_async
to signal threads waiting on poll that new events have been posted to the
thread
Posted by "John Plevyak (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Plevyak closed TS-94.
--------------------------
Resolution: Fixed
Committed revision 898919
> optionaly use pipe/fdevent()/libev ev_async to signal threads waiting on poll that new events have been posted to the thread
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: TS-94
> URL: https://issues.apache.org/jira/browse/TS-94
> Project: Traffic Server
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0.0a
> Reporter: John Plevyak
> Priority: Minor
> Fix For: 2.1.0
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Currently threads waiting for IO which have events posted to them (e.g. newly accepted sockets for
> traffic servers using an accept thread) do not get knocked off the poll wait to process the new event.
> This can be done with pipe's linux's fdevent and more generally with libev ev_async.
> This improvement would optionally enable this functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TS-94) optionaly use pipe/fdevent()/libev
ev_async to signal threads waiting on poll that new events have been posted
to the thread
Posted by "John Plevyak (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TS-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12792072#action_12792072 ]
John Plevyak commented on TS-94:
--------------------------------
fdevent should be eventfd on linux
> optionaly use pipe/fdevent()/libev ev_async to signal threads waiting on poll that new events have been posted to the thread
> ----------------------------------------------------------------------------------------------------------------------------
>
> Key: TS-94
> URL: https://issues.apache.org/jira/browse/TS-94
> Project: Traffic Server
> Issue Type: Improvement
> Components: Core
> Affects Versions: 2.0.0a
> Reporter: John Plevyak
> Priority: Minor
> Fix For: 2.1.0
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Currently threads waiting for IO which have events posted to them (e.g. newly accepted sockets for
> traffic servers using an accept thread) do not get knocked off the poll wait to process the new event.
> This can be done with pipe's linux's fdevent and more generally with libev ev_async.
> This improvement would optionally enable this functionality.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.