Re: [asio] monitoring io_context load
Vinnie Falco via Boost-users <[email protected]> Mon, 3 Jul 2023 06:03:52 -0700
| Newsgroups | gmane.comp.lib.boost.user |
|---|---|
| Message-ID | <CA+EzHGdB2=Ya_AGKSL+uaw771Srokt9F1fvPGT6DB40bA2=X_g@mail.gmail.com> |
On Mon, Jul 3, 2023 at 6:00 AM Dmitry <[email protected]> wrote: > > What you are asking for is more or less possible, but what do you plan on doing with this information? > ... > Thanks for asking! After thinking more about the metric, it does not seem helpful anymore. I would be careful using the information gained from measurements to inform algorithms for dealing with load. Note that io_context threads are not designed to perform long-running tasks; it is an unwritten rule that completion handlers should not block. They need to do their job and return as quickly as possible. Long-running work should be scheduled to a separate thread pool. Thanks _______________________________________________ Boost-users mailing list [email protected] https://lists.boost.org/mailman/listinfo.cgi/boost-users