-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
300% CPU on Raspberry Pi #7989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does it go down if you wait for a while? The first import may be searching for fonts which can take a while. |
Can I check what it does somehow? I waited a few minutes, but the Raspberry
Pi heats up.
…On Mon, Jan 30, 2017 at 6:32 PM, Thomas A Caswell ***@***.***> wrote:
Does it go down if you wait for a while? The first import may be searching
for fonts which can take a while.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7989 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACtOofRDLuZA-VEqgz9Loj7QoEBKSyumks5rXh6mgaJpZM4LxMoS>
.
--
Alexandru RADOVICI
Universitatea "Politehnica" din Bucuresti
e-mail: [email protected]
telefon: 0742061223
www.ipworkshop.ro
|
Were you running this test on the original raspberry pi? |
The test is running on a Raspberry Pi 3 B.
On Feb 2, 2017 00:58, "Ian Daniher" <[email protected]> wrote:
Were you running this test on the original raspberry pi?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7989 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACtOoVJMRs7iz22tIdvztSsHL3ZHlY_oks5rYRw-gaJpZM4LxMoS>
.
|
Can you also try just running |
Now I'm surprised. Thanks for clarifying, I'm curious as to the cause and will check out matplotlib on a comparable computer I have on hand. |
also |
I ran fc-list, here is the output pi@raspberrypi:~ $ fc-list |
The pip-freeze is here html5lib==0.999 |
@alexandruradovici You could run "top" to see which process is taking all the CPU. Then something like "strace -p pid" would show what system calls the process is making. |
I ran top, python is taking 300% cpu. I saw it forks 3 or 4 times when I
import the library. I will run strace and get back with the output.
…On Feb 11, 2017 19:50, "Jouni K. Seppänen" ***@***.***> wrote:
@alexandruradovici <https://github.com/alexandruradovici> You could run
"top" to see which process is taking all the CPU. Then something like
"strace -p *pid*" would show what system calls the process is making.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7989 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACtOoRUQJOh4uZETcoRFXOuQGJe1wEwWks5rbfTHgaJpZM4LxMoS>
.
|
The python process forks 3 times after import. The main REPL process stays in read () - as it should be |
Do you have any ideas about this? |
@alexandruradovici honestly, no. I'll try reproducing. It might be worth trying a pip install --upgrade matplotlib as 1.4.2 is a little behind what I've successfully used on the 'pi. |
@alexandruradovici depending upon what you're doing, https://pythonhosted.org/pycha/ may work. It's much smaller than mpl. |
Okay, finally got around to install Try |
I installed matplotlib 2.0.0 using
I get the same result using strace. I am testing using it in a REPL shell. The moment I import matplotlib, the CPU goes up and stays like that |
I have the same problem. Did anyone get to the bottom of this one. |
Additional information: python 3.4.3
|
Similar issue just importing numpy |
I can confirm there are no blatant issues with matplotlib or numpy on ARMv7. I have a full numpy / scipy / matplotlib stack working on armbian working on a 'pi competitor. |
Hi
The problem appeared to be with an installation of PyAudio which I previously had installed.
After removing this installation the Pi had normal behavioiur.
A bit strange that the problem happened without importing PyAudio, but when importing other modules (such as numpy)
Regards
Per Ove Husøy
Den 9. april 2017 kl. 21.25.09 +02.00 skrev Ian Daniher <[email protected]>:
… I can confirm there are no blatant issues with matplotlib or numpy on ARMv7. I have a full numpy / scipy / matplotlib stack working on armbian working on a 'pi competitor.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#7989 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AP4FsIkiaYYDAqSHFBEEIbZrpVY9bk96ks5ruTCVgaJpZM4LxMoS>.
|
Based on the conversation to date it seems most likely that this has nothing to do with matplotlib specifically, so I am closing this. |
Bug report
matplotlib (1.4.x and 2.0.0) make 300% CPU usage after import
Code for reproduction
Matplotlib version
Raspbian Jessie, 1.4.x or 2.0.0
Python 2.7 and Python 3
I installed it with
sudo apt-get install python-matplotlib
or
The text was updated successfully, but these errors were encountered: