How to specified one i.MX6 CPU core for running one Linux application?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to specified one i.MX6 CPU core for running one Linux application?

717 Views
m_c
Senior Contributor I

As title.

Labels (2)
0 Kudos
1 Reply

464 Views
Yuri
NXP Employee
NXP Employee

Hello,

   Basically Linux supports SMP architecture, that provides balanced load

for all cores in multicore systems.  In this sense running specific application

on separate core contradicts SMP.

  Nevertheless, it is possible to run a program or process on specific CPU cores on Linux :

to assign particular CPU cores to a program or process, one can use taskset, a command
line tool for retrieving or setting a process' CPU affinity on Linux.
Also, it is possible to restrict numbers of cores for Linux via kernel boot parameter

  “maxcpus”.


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------