Skip to main content
Visitor II
July 28, 2021
Question

How can I run two processes each on a CA7 core?

  • July 28, 2021
  • 1 reply
  • 947 views

Hi everyone,

I'm coding a C application on Linux which has 2 processes. In order to optimize performance, I would like to run each one on a differente core CA7 - as I'm working whit dual-core STM32MP157F MPU. How can I achieve this? Any useful framework?

Regards

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    July 29, 2021

    Hi,

    I'm not SW expert, but I expect this is automatically (and dynamically) managed by Linux scheduler depending on thread load (default weak affinity).

    There is probably some ways to force affinity to specific processor, but I'm not sure it is required except very specific cases.

    On Starter Package, you could already use 'top' command, then enable column 'P = Last Used Cpu ' (= Cortex-A7 core 0 or 1) to see real time core usage for each thread.

    Regards.