High CPU Utilization

Supporting 2.7 and 3.2+
Nadav
Phidgetsian
Posts: 11
Joined: Fri Jan 13, 2017 1:50 am
Contact:

High CPU Utilization

Postby Nadav » Tue Feb 12, 2019 7:05 pm

I am seeing high CPU utilization of 34% in steady state.
  • Hardware: Raspberry Pi 3
  • Phidgets: 3 x 1012
  • Phidget library: 22-1.0.0.2019012
  • 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!
Attachments
phidget_io_test22_small_noclass.py.txt
(3.67 KiB) Downloaded 94 times

Nadav
Phidgetsian
Posts: 11
Joined: Fri Jan 13, 2017 1:50 am
Contact:

Re: High CPU Utilization

Postby Nadav » Sat Feb 23, 2019 4:37 pm

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?

Nadav
Phidgetsian
Posts: 11
Joined: Fri Jan 13, 2017 1:50 am
Contact:

Re: High CPU Utilization

Postby Nadav » Sun Mar 03, 2019 3:49 pm

Phidget Library 1.0.0.20190228 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.


Return to “Python”

Who is online

Users browsing this forum: No registered users and 3 guests