Closed Razz4780 closed 8 months ago
Seems premature at this point - not something our users will really feel the effect of?
Seems premature at this point - not something our users will really feel the effect of?
Just something I noticed when working with the agent. The change would be very simple - using different tokio runtime flavor.
Closed with #1497
Right now mirrord agent uses 3 global background tasks (dns, sniffer and stealer) and 2 per-client background tasks (tcp and udp). All tasks are run in their own tokio runtimes constructed with
Builder::new_multi_thread
, which spawnsnproc
threads. Main function is also run in a multi-threaded runtime. That means that agent uses(4 + clients) * nproc
threads. Maybe we could consider using single-threaded runtimes?