droidian / oFono2MM

Python daemom implementing ModemManager D-Bus API and using oFono to manage the modems.
BSD 3-Clause "New" or "Revised" License
8 stars 8 forks source link

High cpu usage upon startup #10

Closed FakeShell closed 12 months ago

FakeShell commented 1 year ago

ofono2mm seems to consume a lot of cpu during startup before ofono completely comes up. there are no errors or anything to post as information. this behaviour isnt specific to Droidian as it also happens on manjaro libhybris and alphybris.

erikinkinen commented 12 months ago

@FakeShell , could you debug it further? I would like to know what it is doing to eat up so much CPU.

FakeShell commented 12 months ago

Issue happens when ofono crashes or the service for ofono has been stopped (or its on startup and ofono2mm is waiting for ofono to start) When ofono comes up and can list contexts then everything goes back to normal