High CPU Utilization

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

High CPU Utilization

Post by Nadav »

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 379 times
Nadav
Phidgetsian
Posts: 11
Joined: Fri Jan 13, 2017 1:50 am
Contact:

Re: High CPU Utilization

Post 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?
Nadav
Phidgetsian
Posts: 11
Joined: Fri Jan 13, 2017 1:50 am
Contact:

Re: High CPU Utilization

Post by Nadav »

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests