You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@apr.apache.org by bu...@apache.org on 2010/09/04 19:35:29 UTC
DO NOT REPLY [Bug 49882] New: if an application uses
poll/unix/select.c:apr_pollset_poll() to poll fds it can use 100% CPU time
under some circumstances
https://issues.apache.org/bugzilla/show_bug.cgi?id=49882
Summary: if an application uses
poll/unix/select.c:apr_pollset_poll() to poll fds it
can use 100% CPU time under some circumstances
Product: APR
Version: HEAD
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: APR
AssignedTo: bugs@apr.apache.org
ReportedBy: sr-dev@gmx.net
Created an attachment (id=25988)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=25988)
add a apr_sleep() if a timeout greater than zero was specified.
If an application uses the apr_pollset_poll() function under Windows and has no
fds added to the pollset the current implementation shortcuts this situation
without waiting the specified time given in the timeout parameter.
If an application no uses a normal event loop it apr_pollset_poll() returns
immediately with APR_SUCCESS. Thus the application is busy waiting and uses
100% of CPU time.
See the attached patch to resolve this issue. Found in version 1.4.2.
Regards,
Stefan
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 49882] 100% CPU time in
poll/unix/select.c:apr_pollset_poll() to poll fds under some circumstances
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49882
Jeff Trawick <tr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Jeff Trawick <tr...@apache.org> 2011-04-06 08:52:03 EDT ---
fixed in trunk r1089433
I'll consider backporting to 1.4.x after the upcoming 1.4.3 release
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
[Bug 49882] 100% CPU time in poll/unix/select.c:apr_pollset_poll()
to poll fds under some circumstances
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49882
Jeff Trawick <tr...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 49882] 100% CPU time in
poll/unix/select.c:apr_pollset_poll() to poll fds under some circumstances
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49882
--- Comment #2 from William A. Rowe Jr. <wr...@apache.org> 2011-04-06 13:12:00 EDT ---
I'd actually suggest to @bug this in the doxygen and fix at 1.5.0/2.0.0, so
that authors can know that the 1.4.x API did *not* support empty pollsets?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org
DO NOT REPLY [Bug 49882] 100% CPU time in
poll/unix/select.c:apr_pollset_poll() to poll fds under some circumstances
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49882
Stefan Ruppert <sr...@myarm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|if an application uses |100% CPU time in
|poll/unix/select.c:apr_poll |poll/unix/select.c:apr_poll
|set_poll() to poll fds it |set_poll() to poll fds
|can use 100% CPU time under |under some circumstances
|some circumstances |
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org