intrepidcs / icsscand

User-mode SocketCAN daemon for Intrepid devices
BSD 2-Clause "Simplified" License
10 stars 6 forks source link

icsscand eats unreasonable amount of CPU while idle #3

Open tysonite opened 4 years ago

tysonite commented 4 years ago

The icsscand daemon while runs in a background consumes around ~15-20% of CPU on OrangePI One. OrangePI has A7 Quad-core CPU so icsscand does something perhaps useless constantly on one of cores.

E.g.:

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 3997 root      20   0   53084   1048    700 S  16.8  0.2   2:50.75 icsscand

There is no any activity on a CAN bus: candump any outputs nothing.

hollinsky-intrepid commented 4 years ago

Is this issue occurring on the special logging branch, master, or both?

tysonite commented 4 years ago

It happens on both branches. However, on logging branch, CPU usages is about 2 times higher. That's why more notable. On master branch, it is always about 10% when idle.