This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: High CPU consumption while running a python based application.

Part Number: AM3358

Hi,

We have made a board using the AM3358 processor along with 1GB RAM. Currently we are running a python application (no GUI) that will be communicating with another board over UART and it handles a lot of data. But the CPU consumption just by running the python application itself peaks at 80% and stays at around 65% most of the time while the RAM peaks at 40% and remains at around 30% most of the time. Can someone help me why it is happening like this? What could be the possible cause for this, the same app when run on a pi works fine with minimal CPU consumption.. We are also intending to run another app along with this in a docker container.

  • Hi Abishek,

    Please provide more details, what Processor SDK version do you use? Have you done any investigation to narrow down in which routine of your python application the high CPU load happens? Please provide the log showing the CPU load.

  • Hi Bin Liu,

    Thanks for your response.

    1. Processor sdk version : 6.03 ( The latest release)

    2. Python application : Yes we did narrow down and optimize few routines that has shown a reduction in the CPU consumption. The application constantly polls data via UART (Modbus protocol) every second and also runs a TCP server. We don't notice the heavy CPU consumption for a specific code block.. it's persisting all the time at 65 and goes to 80 while accessing file system.

  • Hi Abishek,

    The information is still very broad, it doesn't have enough details for us to provide any guidance. Please investigate your application to show what exact routine or test case which causes the high CPU load, is it in anywhere in user space or kernel space.