Anybody know why sonarr/mono never sleeps?

Does anybody know why the mono process never seems to sleep? Even when no trace activity is happening it is always consuming about 1.5% CPU time. While this isn’t a real issue I’m just wondering if the app was written to poll and never block on a timer or I/O.
If I get some time I plan on looking over the code but not being a hardcore c#/mono guy it may take a while.

Sonarr does check with the download client every minute for any information (and there are other background tasks), but nothing done to keep it awake besides those tasks. Trace logs might indicate what its doing, but it might just be mono, as I don’t recall seeing it idle like that on Windows.

I see it on my server too, probably mono yes, or some Sonarr oddity specific to mono. But it will take some profiling to figure out what thread is spinning.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.