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.

How to get ARM processor load?

Hi, I am running an ARM app that does some math calculations over data. I would like to know (if possible, easy) way to get CPU load when application runs. 

I am using evmDM8168, ezsdk-5_05_01_04.

I am thinking on:

an API the ezsdk offers so the application can colect CPU info at runtime,

or

some command-line utility that logs the CPU stats (for example into a file) before and after the application runs, so it can be inspected later.

What options do I have? , Thanks

- Jose L.

  • Hi,

    Needing additional shell prompt (to type there "top" for example) you could try to connect the board to your local network and to use SSH. Please, search the Internet for some SSH guides, if necessary.

    Thank you.

    BR
    Vladimir

  • Hi Vladimir, you are right. Now i have a setup so i can work with the filesystem via serial using termnet. 

    Happens that I used

    top -d 1 > dm81_log.txt 

    My ARM application appears on top command output, but it show that load is 0% (took several samples and all are the same). Maybe the time between each sample is not enough, alternatively i tried the command on Ubuntu PC, and I can run the command with the "d" delay option as float, 

    top -d 0.15 > ubuntu_log.txt

    This delay input format is not supported on the board, is there a particular package the board needs to support this input format? Or other way to have more samples for an specific time interval?  -Regards

    - Jose L.

  • Hi Jose,

    If such delay is really needed you could try to cross compile "top" (or "ps"), or different busybox (that could support it). Or maybe a shell script could be used, with short "sleep" and passing "-n 1" to "top". I don't know.

    Various things could be the cause, try to exclude possibilities.

    Thank you.

    BR
    Vladimir