Page 1 of 1

High CPU Utilization

Posted: Tue Feb 12, 2019 7:05 pm
by Nadav
I am seeing high CPU utilization of 34% in steady state.
  • Hardware: Raspberry Pi 3
  • Phidgets: 3 x 1012
  • Phidget library: 22-
  • Rasbian firwmare: Linux 4.14.97-v7+ #1197
  • Test Code: attached (renamed to txt extension to allow upload).
While CPU goes down to 20% if not storing the attached channel objects (line 77), this is still high and these objects are needed to interact with the phidget, and to eventually call close().
CPU seems directly related to number of phidgets (goes down from 34% to 26% with only 2 Phidgets attached).

Any info appreciated!

Re: High CPU Utilization

Posted: Sat Feb 23, 2019 4:37 pm
by Nadav
Have reinstalled Raspbian Stretch Lite and the Phidget libraries from scratch, and am still seeing this issue.
Have tried with two separate Pi2 Model B's.
Anyone else running a Raspberry?

Re: High CPU Utilization

Posted: Sun Mar 03, 2019 3:49 pm
by Nadav
Phidget Library resolves this issue - CPU is now at 5% for 3 x 1012s - Thanks Patrick.
This also fixes kernel error "Internal error: Oops: 5 [#1] SMP ARM" that occurred on high load.