Skip to content

RTCL utilises 1 CPU permanently at 100% #238

@m8pple

Description

@m8pple

This is related to #236 , but the root cause is a bit different.

Once CommonBase is able to avoid calling OnIdle all the time, we get left with a
thread still spinning at 100%:

image

It is just locked in rtcl_func, and looks like it is spinning on a single tiny loop:

image

My reading of x86 is not what it used to be, plus perf profiling is not that accurate, but that test then jal sequence
looks like an infinite loop to me. Possibly related to #237

Even if it is not an infinite loop, it is still wasting a huge amount of time and battery. I don't see why it can't sleep
for 1ms or something (ideally longer, as that still probably keeps CPUs in a high power state).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions