Comments (2)
Have you tested with the most recent code? There was an issue fixed
recently that would lead to 100% CPU utilization.
The poll should work the same as the rest of Asio, which will block until
an FD becomes readable, or a periodic timeout occurs.
On Friday, June 19, 2015, David Nadlinger [email protected] wrote:
In my fully asynchronous application, I need to keep track of the number
of connections on some ZeroMQ sockets, for which I am using the socket
monitor feature. However, because the monitoring socket pair uses the
inproc transport, azmq resorts to polling for new events for implementing
async_read. As a side effect, this leads my program to hog 100% of its
CPU core all of the time. Is there any chance to implement this more
efficiently without changing ZeroMQ itself? (I'd like to avoid shipping a
custom fork.)As a workaround, I currently only check for new socket events on a timer.
But this is obviously not ideal, as it introduces extra latency to the
handling of these events.—
Reply to this email directly or view it on GitHub
#97.
from azmq.
Sorry for not responding earlier; yes, I believe this has been fixed. I'm a bit hazy on the details, but I checked my code base, and I definitely reverted the timer workaround.
from azmq.
Related Issues (20)
- Add CI pipelines for building and running test on support platforms HOT 1
- Add zeromq guide book examples HOT 1
- test fails on OSX HOT 14
- the code use deprecated interfaces of boost::asio HOT 5
- max_sockets references incorrect ZMQ_MAXMSGSIZE HOT 2
- Doesn't build with latest catch2 HOT 2
- Publisher message is lost if sent just after bind HOT 2
- Included FindZeroMQ.cmake only works if ZeroMQ built with Visual Studio IDE HOT 1
- Message can be lost if the sender exits right after sending it
- Example in README.md is broken
- Add Support for Radio-Dish Pattern
- Disable install targets in CMakeLists.txt
- Make new release tag HOT 1
- Make new release tag
- io_context destructor hangs in zmq_ctx_term() if async socket operation is still pending HOT 1
- Build error on ARM64/Ubuntu 18.04 platform (nVidia Xavier)
- async_receive is not cancellable by the OR awaitable operator HOT 1
- cancel() runs completion handlers immediately but should post/defer them instead HOT 3
- Building with CMake
- Completion of async operation using boost::asio::yield_context not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azmq.